Code Cleanup

This commit is contained in:
deathbybandaid 2019-05-05 21:29:20 -04:00
parent 14481bff13
commit 072d4167ed
16 changed files with 1 additions and 139 deletions

View File

@ -9,18 +9,6 @@ import spicemanip
from sopel_modules.SpiceBot_SBTools import sopel_triggerargs, bot_privs
def configure(config):
pass
def setup(bot):
pass
def shutdown(bot):
pass
@sopel.module.nickname_commands('owners', 'owner')
def bot_command_owners(bot, trigger):
bot_command_process(bot, trigger)

View File

@ -7,17 +7,13 @@ import sopel.module
import os
from sopel_modules.SpiceBot_LoadOrder.LoadOrder import set_bot_event, check_bot_events, startup_bot_event
from sopel_modules.SpiceBot_LoadOrder.LoadOrder import set_bot_event, startup_bot_event
from sopel_modules.SpiceBot_Events.System import bot_events_startup_register, bot_events_recieved, bot_events_trigger
from sopel_modules.SpiceBot_SBTools import bot_logging
import spicemanip
def configure(config):
pass
def setup(bot):
bot_logging(bot, 'SpiceBot_CommandsQuery', "Starting setup procedure")
bot_events_startup_register(bot, ['2002'])

View File

@ -21,10 +21,6 @@ def setup(bot):
SopelDB._create_table = SopelDBCache._create_table
def shutdown(bot):
pass
class SopelDBCache:
"""Dynamic Table Creation"""

View File

@ -6,18 +6,6 @@ from __future__ import unicode_literals, absolute_import, print_function, divisi
import sopel.module
def configure(config):
pass
def setup(bot):
pass
def shutdown(bot):
pass
"""Dyanmic Table Creation"""

View File

@ -9,18 +9,6 @@ import spicemanip
from sopel_modules.SpiceBot_SBTools import sopel_triggerargs, bot_privs, github_dict
def configure(config):
pass
def setup(bot):
pass
def shutdown(bot):
pass
@sopel.module.nickname_commands('help', 'docs', 'wiki')
def bot_command_owners(bot, trigger):
bot.osd(["IRC Modules Repository", str(github_dict["url_main"] + github_dict["repo_owner"] + "/" + github_dict["repo_name"] + github_dict["url_path_wiki"])])

View File

@ -8,10 +8,6 @@ import sopel
from sopel_modules.SpiceBot_SBTools import bot_logging
def configure(config):
pass
def setup(bot):
bot_logging(bot, 'SpiceBot_Events', "Starting setup procedure")
bot_events_setup_check(bot)

View File

@ -7,18 +7,6 @@ import sopel.module
import spicemanip
def configure(config):
pass
def setup(bot):
pass
def shutdown(bot):
pass
@sopel.module.rule(r'(?i)(hi|hello|hey),? $nickname[ \t]*$')
def bot_command_hello(bot, trigger):
hello = spicemanip.main(['Hi', 'Hey', 'Hello'], "random")

View File

@ -5,18 +5,6 @@ from __future__ import unicode_literals, absolute_import, division, print_functi
import sopel.module
def configure(config):
pass
def setup(bot):
pass
def shutdown(bot):
pass
@sopel.module.nickname_commands('gender')
def bot_command_gender(bot, trigger):
bot.osd("If societal genders are binary, my gender is female")

View File

@ -5,18 +5,6 @@ from __future__ import unicode_literals, absolute_import, division, print_functi
import sopel.module
def configure(config):
pass
def setup(bot):
pass
def shutdown(bot):
pass
@sopel.module.rule(r'(?i)(Fuck|Screw) (you|off),? $nickname[ \t]*$')
def bot_command_srewyou(bot, trigger):
bot.osd("Watch your mouth, " + trigger.nick + ", or I'll tell your mother!")

View File

@ -10,12 +10,7 @@ from sopel_modules.SpiceBot_SBTools import bot_logging
import threading
def configure(config):
pass
def setup(bot):
# TODO add custom pretrigger events
bot_logging(bot, 'Sopel_LoadOrder', "Starting Module Events Logging")
threading.Thread(target=setup_thread, args=(bot,)).start()

View File

@ -9,18 +9,6 @@ import spicemanip
from sopel_modules.SpiceBot_SBTools import sopel_triggerargs, command_permissions_check, inlist
def configure(config):
pass
def setup(bot):
pass
def shutdown(bot):
pass
@sopel.module.nickname_commands('action')
def bot_command_action(bot, trigger):
bot_command_process(bot, trigger)

View File

@ -8,18 +8,6 @@ import sopel.module
from sopel_modules.SpiceBot_SBTools import bot_logging, spicebot_reload
def configure(config):
pass
def setup(bot):
pass
def shutdown(bot):
pass
@sopel.module.nickname_commands('restart')
def nickname_comand_restart(bot, trigger):

View File

@ -10,18 +10,6 @@ from sopel_modules.SpiceBot_SBTools import humanized_time, bot_logging
import time
def configure(config):
pass
def setup(bot):
pass
def shutdown(bot):
pass
@module.event('001')
@module.rule('.*')
@module.thread(True)

View File

@ -29,10 +29,6 @@ def setup(bot):
bot.config.define_section("SpiceBot_Update", SpiceBot_Update_MainSection, validate=False)
def shutdown(bot):
pass
@sopel.module.nickname_commands('update')
def nickname_comand_update(bot, trigger):

View File

@ -11,10 +11,6 @@ from sopel_modules.SpiceBot_SBTools import humanized_time
from sopel_modules.SpiceBot_SBTools import bot_logging
def configure(config):
pass
def setup(bot):
if 'SpiceBot_Uptime' not in bot.memory:
now = time.time()

View File

@ -54,11 +54,6 @@ def setup(bot):
bot.config.define_section("MAXTARGCONFIG", MAXTARGCONFIG, validate=False)
def shutdown(bot):
pass
# RPL_ISUPPORT = '005'
@module.event('005')
@module.rule('.*')
def parse_event_005(bot, trigger):