Add nomad function

This commit is contained in:
minerobber 2018-12-15 07:04:02 +00:00
parent 55ce1a2ef3
commit e054c87db3
1 changed files with 13 additions and 0 deletions

13
plugins/nomad.py Normal file
View File

@ -0,0 +1,13 @@
import plugin
@plugin.command("minomad","<GO AWAY DINKLEBERG>")
def minomad(bot,channel,nick,*args):
if not bot.is_admin: return
args = list(args)
command = args.pop(0)
if command == "join":
for channel in args:
bot._bot.conn.join(channel)
elif command == "part":
for channel in args:
bot._bot.conn.part(channel,"Leaving...")