limit !settoday to mods
This commit is contained in:
parent
1515f163af
commit
b0587f1c68
4
bot.py
4
bot.py
|
|
@ -350,6 +350,10 @@ class SetTodayResponse(MessageResponse):
|
|||
|
||||
@handle_message('!settoday')
|
||||
def cmd_settoday(match: Match[str]) -> Response:
|
||||
if not _is_moderator(match) and match['user'] != match['channel']:
|
||||
return MessageResponse(
|
||||
match, 'https://www.youtube.com/watch?v=RfiQYRn7fBg',
|
||||
)
|
||||
_, _, rest = match['msg'].partition(' ')
|
||||
return SetTodayResponse(match, rest)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue