remove old code

This commit is contained in:
deathbybandaid 2019-05-05 14:13:40 -04:00
parent 612f2bc29b
commit 617619ddaa

View File

@ -6,6 +6,9 @@ from __future__ import unicode_literals, absolute_import, print_function, divisi
import sopel import sopel
from sopel.module import OP, ADMIN, VOICE, OWNER, HALFOP from sopel.module import OP, ADMIN, VOICE, OWNER, HALFOP
from sopel.tools import stderr from sopel.tools import stderr
from sopel import coretasks, config
from sopel.trigger import PreTrigger, Trigger
from sopel.bot import SopelWrapper
HOP = HALFOP HOP = HALFOP
import collections import collections
@ -48,6 +51,12 @@ def sopel_triggerargs(bot, trigger, command_type='module_command'):
return triggerargs, command return triggerargs, command
def bot_trigger_create(bot):
pretrigger = PreTrigger(bot.nick, ":test.example.com 7777 Foo #test ~Admin adminhost test.example.com Admin Hr~ :0 Admin",)
trigger = Trigger(bot.config, pretrigger, None)
coretasks.recv_who(SopelWrapper(bot, trigger), trigger)
def bot_privs(bot, privtype): def bot_privs(bot, privtype):
if privtype == 'owners': if privtype == 'owners':
privtype = 'owner' privtype = 'owner'
@ -242,7 +251,6 @@ def channel_list_current(bot):
bot.memory['SpiceBot_Channels']['channels'][str(channel).lower()] = dict() bot.memory['SpiceBot_Channels']['channels'][str(channel).lower()] = dict()
bot.memory['SpiceBot_Channels']['channels'][str(channel).lower()]['name'] = str(channel) bot.memory['SpiceBot_Channels']['channels'][str(channel).lower()]['name'] = str(channel)
bot.memory['SpiceBot_Channels']['channels'][str(channel).lower()]['topic'] = topic_compile(topic) bot.memory['SpiceBot_Channels']['channels'][str(channel).lower()]['topic'] = topic_compile(topic)
channel_privs(bot, channel)
if "*" in bot.memory['SpiceBot_Channels']: if "*" in bot.memory['SpiceBot_Channels']:
bot.memory['SpiceBot_Channels'].remove("*") bot.memory['SpiceBot_Channels'].remove("*")