Merge pull request 'feat/9-login-system' (#15) from feat/9-login-system into main
Reviewed-on: #15
This commit is contained in:
commit
bc22c73cb2
@ -3,3 +3,4 @@ deployment:
|
|||||||
tasks:
|
tasks:
|
||||||
- export DEPLOYPATH=/home/benjamyntesting/chatbot/
|
- export DEPLOYPATH=/home/benjamyntesting/chatbot/
|
||||||
- cp -Rfv * $DEPLOYPATH
|
- cp -Rfv * $DEPLOYPATH
|
||||||
|
- touch $DEPLOYPATH/tmp/restart.txt
|
||||||
@ -104,6 +104,10 @@ def format_response(event):
|
|||||||
text = 'Thanks for adding me to a DM, {}!'.format(sender_name)
|
text = 'Thanks for adding me to a DM, {}!'.format(sender_name)
|
||||||
|
|
||||||
elif event_type == 'MESSAGE':
|
elif event_type == 'MESSAGE':
|
||||||
|
slash_command = event['message'].get('slashCommand')
|
||||||
|
if slash_command:
|
||||||
|
text = f"You used a slash command with ID {slash_command['commandId']}"
|
||||||
|
else:
|
||||||
text = 'Your message, {}: "{}"'.format(sender_name, event['message']['text'])
|
text = 'Your message, {}: "{}"'.format(sender_name, event['message']['text'])
|
||||||
|
|
||||||
response = {'text': text}
|
response = {'text': text}
|
||||||
|
|||||||
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
Flask Login Example
|
Welcome to the future.
|
||||||
</h1>
|
</h1>
|
||||||
<h2 class="subtitle">
|
<h2 class="subtitle">
|
||||||
Easy authentication and authorization in Flask.
|
PriceyBot2.0 ready and listening.
|
||||||
</h2>
|
</h2>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user