Compare commits

...

8 Commits

Author SHA1 Message Date
bc22c73cb2 Merge pull request 'feat/9-login-system' (#15) from feat/9-login-system into main
Reviewed-on: #15
2023-03-09 01:52:01 -05:00
076c9bdd4c Test 2023-03-09 15:13:08 +11:00
5f4b568641 Updated deployment script and changed the index
template
2023-03-09 15:02:15 +11:00
30fc36a461 Should work now 2023-03-09 13:43:12 +11:00
63409e6725 x 2023-03-09 13:41:56 +11:00
4702afe2a8 Fixed JSON path again 2023-03-09 13:41:00 +11:00
310c9ed759 Changed JSON path 2023-03-09 13:35:52 +11:00
04b4f0ec01 Added test slash command 2023-03-09 13:32:33 +11:00
3 changed files with 9 additions and 4 deletions

View File

@ -2,4 +2,5 @@
deployment:
tasks:
- export DEPLOYPATH=/home/benjamyntesting/chatbot/
- cp -Rfv * $DEPLOYPATH
- cp -Rfv * $DEPLOYPATH
- touch $DEPLOYPATH/tmp/restart.txt

View File

@ -104,7 +104,11 @@ def format_response(event):
text = 'Thanks for adding me to a DM, {}!'.format(sender_name)
elif event_type == 'MESSAGE':
text = 'Your message, {}: "{}"'.format(sender_name, event['message']['text'])
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'])
response = {'text': text}

View File

@ -2,9 +2,9 @@
{% block content %}
<h1 class="title">
Flask Login Example
Welcome to the future.
</h1>
<h2 class="subtitle">
Easy authentication and authorization in Flask.
PriceyBot2.0 ready and listening.
</h2>
{% endblock %}