Compare commits
8 Commits
d529cc8f71
...
bc22c73cb2
| Author | SHA1 | Date | |
|---|---|---|---|
| bc22c73cb2 | |||
| 076c9bdd4c | |||
| 5f4b568641 | |||
| 30fc36a461 | |||
| 63409e6725 | |||
| 4702afe2a8 | |||
| 310c9ed759 | |||
| 04b4f0ec01 |
@ -2,4 +2,5 @@
|
||||
deployment:
|
||||
tasks:
|
||||
- export DEPLOYPATH=/home/benjamyntesting/chatbot/
|
||||
- cp -Rfv * $DEPLOYPATH
|
||||
- cp -Rfv * $DEPLOYPATH
|
||||
- touch $DEPLOYPATH/tmp/restart.txt
|
||||
@ -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}
|
||||
|
||||
|
||||
@ -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 %}
|
||||
Reference in New Issue
Block a user