Respond to /addquote with a message containing the quote

This commit is contained in:
Rien Maertens 2019-02-13 23:50:48 +01:00
parent f8436cadd9
commit fbfdcfcfaf
No known key found for this signature in database
GPG key ID: 10C6D8C91DE58E4A

View file

@ -146,7 +146,7 @@ def add_quote():
quote = models.Quote(user, quote_text, channel)
db.session.add(quote)
db.session.commit()
return mattermost_response("Your quote has been added.")
return mattermost_response("{} added the quote {}".format(user, quote_text))
@app.route('/', methods=['GET'])
def list_quotes():