mirror of
https://github.com/JimenezJC/discord-7tv-emoji-app.git
synced 2025-12-05 23:39:55 -05:00
16 lines
No EOL
376 B
Python
16 lines
No EOL
376 B
Python
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".' |