- from random import choice, randint
- def get_response(user_input: str) -> str:
- lowered: str = user_input.lower()
- if lowered == '':
- return 'Silent treatment? Really?'
- elif 'hello' in lowered:
- return "Welcome to the channel!"
- elif 'what do we say to the god of death?' in lowered:
- return 'Not today!'
- elif 'kurwa' in lowered:
- return 'OI! Language!'
- elif 'hi' in lowered:
- return 'Welcome to the channel!'
- elif 'bye' in lowered:
- return 'See you later!'
- elif 'roll dice' in lowered:
- return f'You rolled: {randint(1, 6)}'
- else:
- return choice([''])
Recent Pastes