Continue import logic

This commit is contained in:
deathbybandaid 2019-05-22 11:28:42 -04:00
parent 417d941bfe
commit 74177e4372
7 changed files with 16 additions and 8 deletions

View File

@ -70,3 +70,6 @@ class BotChannels():
bot.write(('SAMODE', channel, "+a", bot.nick))
else:
bot.part(channel)
botchannels = BotChannels()

View File

@ -51,3 +51,6 @@ class BotCommands():
for comalias in comaliases:
if comalias not in self.SpiceBot_Commands['commands'][command_type].keys():
self.SpiceBot_Commands['commands'][command_type][comalias] = {"aliasfor": aliasfor}
botcommands = BotCommands()

View File

@ -246,3 +246,6 @@ class BotDatabase():
bot.db.set_channel_value(channel, sorting_key, self.SpiceBot_Database["channels"][channel][sorting_key])
self.lock.release()
botdb = BotDatabase()

View File

@ -124,3 +124,6 @@ class BotEvents(object):
return function(*args, **kwargs)
return _nop
return actual_decorator
botevents = BotEvents()

View File

@ -101,3 +101,6 @@ class BotLogs():
pidnum = e
pidnum = str(os.popen("systemctl show " + str(bot.nick) + " --property=MainPID").read()).split("=")[-1]
return pidnum
botlogs = BotLogs()

View File

@ -20,7 +20,7 @@ from pygit2 import clone_repository
import spicemanip
import sopel_modules.SpiceBot as SpiceBot
from .Logs import botlogs
"""Variable References"""

View File

@ -16,10 +16,3 @@ from .Database import *
__author__ = 'Sam Zick'
__email__ = 'sam@deathbybandaid.net'
__version__ = '0.1.1'
botdb = BotDatabase()
botchannels = BotChannels()
botcommands = BotCommands()
botevents = BotEvents()
botlogs = BotLogs()