Compare commits
8 Commits
d529cc8f71
...
bc22c73cb2
| Author | SHA1 | Date | |
|---|---|---|---|
| bc22c73cb2 | |||
| 076c9bdd4c | |||
| 5f4b568641 | |||
| 30fc36a461 | |||
| 63409e6725 | |||
| 4702afe2a8 | |||
| 310c9ed759 | |||
| 04b4f0ec01 |
@ -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