mirror of
https://github.com/JimenezJC/discord-7tv-emoji-app.git
synced 2025-12-05 23:39:55 -05:00
Basic functionalities
This commit is contained in:
parent
680d29c7d2
commit
ae759b9153
3 changed files with 61 additions and 0 deletions
16
responses.py
Normal file
16
responses.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import random
|
||||
|
||||
|
||||
def get_response(message: str) -> str:
|
||||
p_message = message.lower()
|
||||
|
||||
if p_message == 'hello':
|
||||
return 'Hey there!'
|
||||
|
||||
if message == 'roll':
|
||||
return str(random.randint(1, 6))
|
||||
|
||||
if p_message == '!help':
|
||||
return '`This is a help message that you can modify.`'
|
||||
|
||||
return 'I didn\'t understand what you wrote. Try typing "!help".'
|
||||
Loading…
Add table
Add a link
Reference in a new issue