This commit is contained in:
0xd3d0c3d 2022-08-24 04:25:00 -05:00
parent a75c2fa4ef
commit 2fc031208e

@ -16,7 +16,7 @@ class Plugin:
self.bot = bot
#######################################################################################
@irc3.extend
@command(permission='admin',show_in_help_list=False)
@command(permission='admin',show_in_help_list=True)
async def listrooms(self,sender_netroomchan,sender_user,target,):
"""listrooms - lists rooms/channels/groups this bot is currently in
%%listrooms
@ -38,7 +38,7 @@ class Plugin:
return results
#######################################################################################
@irc3.extend
@command(permission='admin',show_in_help_list=False)
@command(permission='admin',show_in_help_list=True)
async def listbridges(self,sender_netroomchan,sender_user,target,):
"""listbridges - lists rooms/channels/groups this bot is currently in
%%listbridges
@ -71,7 +71,7 @@ class Plugin:
return results
#######################################################################################
@irc3.extend
@command(permission='admin',show_in_help_list=False)
@command(permission='admin',show_in_help_list=True)
async def addbridge(self,mask,target,args):
"""addbridge - add a bridge rule for a netspan channel/room/group. use ?listrooms, ?listbridges for information. usage: ?addbridge #b0tsh0p ^χιϛ
%%addbridge <noise>...
@ -91,7 +91,7 @@ class Plugin:
return results
#######################################################################################
@irc3.extend
@command(permission='admin',show_in_help_list=False)
@command(permission='admin',show_in_help_list=True)
async def delbridge(self,mask,target,args):
"""delbridge - delete a bridge rule for a netspan channel/room/group. use ?listrooms, ?listbridges for information. usage: ?delbridge #b0tsh0p ^χιϛ
%%delbridge <noise>...
@ -111,9 +111,9 @@ class Plugin:
return results
#######################################################################################
@irc3.extend
@command(permission='admin',show_in_help_list=False)
@command(permission='admin',show_in_help_list=True)
async def blackhole(self,mask,target,args):
"""blackhole - prevents maple from reverberating on bridges. usage: ?blackhole ?blackhole !asdfasdfasdfsad:pcriot.org add or ?blackhole !asdfasdfasd del
"""blackhole - prevents maple from reverberating on bridges. usage: ?blackhole !asdfasdfasdfsad:pcriot.org add or ?blackhole !asdfasdfasd del
%%blackhole <noise>...
"""
noise=' '.join(args['<noise>']).strip()
@ -137,7 +137,7 @@ class Plugin:
return results
#######################################################################################
@irc3.extend
@command(permission='admin',show_in_help_list=False)
@command(permission='admin',show_in_help_list=True)
async def purgebridges(self, mask=None, target=None, data=None, sender_user=None, sender_netroomchan=None, **kw):
"""purgebridges - erases channel/room message history across nets
%%purgebridges