File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ def create_endpoints(plugin):
1717 plugin .on_message (".*\<\!channel\>" , here_bad )
1818 plugin .on_message (".*@here" , here_bad )
1919 plugin .on_message (".*@channel" , here_bad )
20- plugin .on_message (".*codervets" , not_named )
2120
2221
2322def not_bot_message (event : Message ):
@@ -28,11 +27,6 @@ def not_bot_delete(event: Message):
2827 return 'previous_message' not in event or 'bot_id' not in event ['previous_message' ]
2928
3029
31- async def not_named (event : Message , app : SirBot ):
32- response = {'channel' : event ['channel' ], 'text' : f'<@{ event ["user" ]} > - How dare you utter the Dark Lord\' s name' }
33- await app .plugins ["slack" ].api .query (methods .CHAT_POST_MESSAGE , data = response )
34-
35-
3630async def here_bad (event : Message , app : SirBot ):
3731 response = {'channel' : event ['channel' ],
3832 'text' : f'<@{ event ["user" ]} > - you are a very bad person for using that command' }
You can’t perform that action at this time.
0 commit comments