This commit is contained in:
deathbybandaid 2019-05-31 12:12:21 -04:00
parent fc875dbf3a
commit faa1eeb864

View File

@ -23,12 +23,12 @@ def nickname_comand_channels(bot, trigger):
trigger.sb['args'] = spicemanip.main(trigger.sb['args'], '2+', 'list') trigger.sb['args'] = spicemanip.main(trigger.sb['args'], '2+', 'list')
if commandused == 'list': if commandused == 'list':
chanlist = spicemanip.main(bot.SpiceBot.channels.keys(), 'andlist') chanlist = spicemanip.main(bot.channels.keys(), 'andlist')
bot.osd("You can find me in " + chanlist) bot.osd("You can find me in " + chanlist)
return return
elif commandused == 'total': elif commandused == 'total':
botcount = len(bot.SpiceBot.channels.keys()) botcount = len(bot.channels.keys())
servercount = len(SpiceBot.channels.dict['list'].keys()) servercount = len(SpiceBot.channels.dict['list'].keys())
bot.osd("I am in " + str(botcount) + " of " + str(servercount) + " channel(s) available on this server.") bot.osd("I am in " + str(botcount) + " of " + str(servercount) + " channel(s) available on this server.")
return return
@ -84,7 +84,7 @@ def nickname_comand_channels(bot, trigger):
if not SpiceBot.inlist(channel.lower(), SpiceBot.channels.dict['list'].keys()): if not SpiceBot.inlist(channel.lower(), SpiceBot.channels.dict['list'].keys()):
bot.osd("Channel name {} not valid.".format(channel)) bot.osd("Channel name {} not valid.".format(channel))
return return
if not SpiceBot.inlist(channel.lower(), bot.SpiceBot.channels.keys()): if not SpiceBot.inlist(channel.lower(), bot.channels.keys()):
bot.osd("I need to be in {} to see nick privileges.".format(channel)) bot.osd("I need to be in {} to see nick privileges.".format(channel))
return return
@ -104,7 +104,7 @@ def nickname_comand_channels(bot, trigger):
if not SpiceBot.inlist(channel.lower(), SpiceBot.channels.dict['list'].keys()): if not SpiceBot.inlist(channel.lower(), SpiceBot.channels.dict['list'].keys()):
bot.osd("Channel name {} not valid.".format(channel)) bot.osd("Channel name {} not valid.".format(channel))
return return
if not SpiceBot.inlist(channel.lower(), bot.SpiceBot.channels.keys()): if not SpiceBot.inlist(channel.lower(), bot.channels.keys()):
bot.osd("I need to be in {} to see user list.".format(channel)) bot.osd("I need to be in {} to see user list.".format(channel))
return return
dispmsg = [] dispmsg = []