Merge pull request 'feat/9-login-system' (#15) from feat/9-login-system into main

Reviewed-on: #15
This commit is contained in:
Benjamyn Love 2023-03-09 01:52:01 -05:00
commit bc22c73cb2
3 changed files with 9 additions and 4 deletions

View File

@ -2,4 +2,5 @@
deployment: deployment:
tasks: tasks:
- export DEPLOYPATH=/home/benjamyntesting/chatbot/ - 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) text = 'Thanks for adding me to a DM, {}!'.format(sender_name)
elif event_type == 'MESSAGE': 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} response = {'text': text}

View File

@ -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 %}