mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
abandon code for now
This commit is contained in:
parent
0e11b5a588
commit
1a9f964612
@ -25,8 +25,8 @@ class SpiceBot_Channels_MainSection(StaticSection):
|
|||||||
def configure(config):
|
def configure(config):
|
||||||
config.define_section("SpiceBot_Channels", SpiceBot_Channels_MainSection, validate=False)
|
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 Announce New Channels')
|
||||||
config.SpiceBot_Channels.configure_setting('announcenew', 'SpiceBot_Channels JOIN New Channels')
|
config.SpiceBot_Channels.configure_setting('joinall', 'SpiceBot_Channels JOIN New Channels')
|
||||||
config.SpiceBot_Channels.configure_setting('announcenew', 'SpiceBot_Channels OPER ADMIN MODE')
|
config.SpiceBot_Channels.configure_setting('operadmin', 'SpiceBot_Channels OPER ADMIN MODE')
|
||||||
config.SpiceBot_Channels.configure_setting('chanignore', 'SpiceBot_Channels Ignore JOIN for channels')
|
config.SpiceBot_Channels.configure_setting('chanignore', 'SpiceBot_Channels Ignore JOIN for channels')
|
||||||
|
|
||||||
|
|
||||||
@ -45,6 +45,13 @@ def shutdown(bot):
|
|||||||
del bot.memory["SpiceBot_Channels"]
|
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.event(botevents.BOT_CONNECTED)
|
||||||
@sopel.module.rule('.*')
|
@sopel.module.rule('.*')
|
||||||
def trigger_channel_list_initial(bot, trigger):
|
def trigger_channel_list_initial(bot, trigger):
|
||||||
|
|||||||
@ -3,7 +3,7 @@ from __future__ import unicode_literals, absolute_import, division, print_functi
|
|||||||
|
|
||||||
from .Queue import *
|
from .Queue import *
|
||||||
from .Logs_Command import *
|
from .Logs_Command import *
|
||||||
from .IRC_Events import *
|
# from .IRC_Events import *
|
||||||
|
|
||||||
__author__ = 'Sam Zick'
|
__author__ = 'Sam Zick'
|
||||||
__email__ = 'sam@deathbybandaid.net'
|
__email__ = 'sam@deathbybandaid.net'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user