Merge branch 'master' of https://github.com/anthonywritescode/twitch-chat-bot into add_flags_to_handler
This commit is contained in:
commit
40fb42d620
|
|
@ -75,7 +75,7 @@ anthonywritescode: PING hello
|
|||
anthonywritescodebot: PONG hello
|
||||
```
|
||||
|
||||
### `!discord'
|
||||
### `!discord`
|
||||
|
||||
Show the discord url
|
||||
|
||||
|
|
|
|||
14
bot.py
14
bot.py
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue