mirror of
https://github.com/nikdoof/dropbot.git
synced 2025-12-19 12:49:22 +00:00
Added a !rageping command
This commit is contained in:
@@ -711,4 +711,12 @@ class DropBot(ClientXMPP):
|
||||
self.map.get_system_name(target_office),
|
||||
min_route,
|
||||
)
|
||||
return 'No known offices.'
|
||||
return 'No known offices.'
|
||||
|
||||
def cmd_rageping(self, args, msg):
|
||||
"""Ping spams everyone's name in a room, use with caution"""
|
||||
if msg['type'] != 'groupchat':
|
||||
return 'This only works in MUC rooms'
|
||||
|
||||
names = self.plugin['xep_0045'].getRoster(msg['from'].bare)
|
||||
return 'RAGE PING: {} :frogsiren:'.format(', '.join(names))
|
||||
Reference in New Issue
Block a user