abandon code for now

This commit is contained in:
deathbybandaid 2019-05-18 14:57:56 -04:00
parent 0e11b5a588
commit 1a9f964612
3 changed files with 10 additions and 3 deletions

View File

@ -25,8 +25,8 @@ class SpiceBot_Channels_MainSection(StaticSection):
def configure(config):
config.define_section("SpiceBot_Channels", SpiceBot_Channels_MainSection, validate=False)
config.SpiceBot_Channels.configure_setting('announcenew', 'SpiceBot_Channels Announce New Channels')
config.SpiceBot_Channels.configure_setting('announcenew', 'SpiceBot_Channels JOIN New Channels')
config.SpiceBot_Channels.configure_setting('announcenew', 'SpiceBot_Channels OPER ADMIN MODE')
config.SpiceBot_Channels.configure_setting('joinall', 'SpiceBot_Channels JOIN New Channels')
config.SpiceBot_Channels.configure_setting('operadmin', 'SpiceBot_Channels OPER ADMIN MODE')
config.SpiceBot_Channels.configure_setting('chanignore', 'SpiceBot_Channels Ignore JOIN for channels')
@ -45,6 +45,13 @@ def shutdown(bot):
del bot.memory["SpiceBot_Channels"]
@sopel.module.event(botevents.BOT_CONNECTED)
@sopel.module.rule('.*')
def unkickable_bot(bot, trigger):
if bot.config.SpiceBot_Channels.operadmin:
bot.write(('SAMODE', bot.nick, '+q'))
@sopel.module.event(botevents.BOT_CONNECTED)
@sopel.module.rule('.*')
def trigger_channel_list_initial(bot, trigger):

View File

@ -3,7 +3,7 @@ from __future__ import unicode_literals, absolute_import, division, print_functi
from .Queue import *
from .Logs_Command import *
from .IRC_Events import *
# from .IRC_Events import *
__author__ = 'Sam Zick'
__email__ = 'sam@deathbybandaid.net'