Basic functionalities

This commit is contained in:
Juan 2023-05-22 18:45:01 -04:00
parent 680d29c7d2
commit ae759b9153
3 changed files with 61 additions and 0 deletions

16
responses.py Normal file
View 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".'