mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
remove test!
This commit is contained in:
@@ -158,12 +158,10 @@ class UrlBot(IdleBot):
|
|||||||
|
|
||||||
@cached
|
@cached
|
||||||
def get_bots_present(room):
|
def get_bots_present(room):
|
||||||
print("test!")
|
|
||||||
other_bots = conf_load().get("other_bots", ())
|
other_bots = conf_load().get("other_bots", ())
|
||||||
users = self.plugin['xep_0045'].getRoster(room)
|
users = self.plugin['xep_0045'].getRoster(room)
|
||||||
return set(users).intersection(set(other_bots))
|
return set(users).intersection(set(other_bots))
|
||||||
|
|
||||||
|
|
||||||
def _prevent_panic(message, room):
|
def _prevent_panic(message, room):
|
||||||
"""check other bots, add nospoiler with urls"""
|
"""check other bots, add nospoiler with urls"""
|
||||||
if 'http' in message:
|
if 'http' in message:
|
||||||
|
|||||||
Reference in New Issue
Block a user