Skip to content

Commit a02a3d5

Browse files
committed
removed voldemort message handler (sorry Will)
1 parent b6ce4fc commit a02a3d5

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

pybot/endpoints/slack/messages.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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

2322
def 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-
3630
async 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'}

0 commit comments

Comments
 (0)