Merge branch 'master' of https://github.com/anthonywritescode/twitch-chat-bot into add_flags_to_handler

This commit is contained in:
Yoav Caspi 2019-10-19 21:09:21 +03:00
commit 40fb42d620
2 changed files with 15 additions and 1 deletions

View File

@ -75,7 +75,7 @@ anthonywritescode: PING hello
anthonywritescodebot: PONG hello
```
### `!discord'
### `!discord`
Show the discord url

14
bot.py
View File

@ -144,6 +144,11 @@ def cmd_discord(match: Match[str]) -> Response:
)
@handle_message('!homeland')
def cmd_russians(match: Match[str]) -> Response:
return MessageResponse(match, 'WE WILL PROTECT OUR HOMELAND!')
@handle_message('!emoji')
def cmd_emoji(match: Match[str]) -> Response:
return MessageResponse(match, 'anthon63DumpsterFire anthon63Pythonk')
@ -167,6 +172,15 @@ def keyboard(match: Match[str]) -> Response:
)
@handle_message('!github')
def github(match: Match[str]) -> Response:
return MessageResponse(
match,
"anthony's github is https://github.com/asottile -- stream github is "
"https://github.com/anthonywritescode",
)
@handle_message('!still')
def cmd_still(match: Match[str]) -> Response:
_, _, msg = match.groups()