Added a !rageping command

This commit is contained in:
2014-08-28 20:27:59 +01:00
parent b3249418a2
commit ee4ad2b57e

View File

@@ -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))