mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
Continue import logic
This commit is contained in:
parent
417d941bfe
commit
74177e4372
@ -70,3 +70,6 @@ class BotChannels():
|
|||||||
bot.write(('SAMODE', channel, "+a", bot.nick))
|
bot.write(('SAMODE', channel, "+a", bot.nick))
|
||||||
else:
|
else:
|
||||||
bot.part(channel)
|
bot.part(channel)
|
||||||
|
|
||||||
|
|
||||||
|
botchannels = BotChannels()
|
||||||
|
|||||||
@ -51,3 +51,6 @@ class BotCommands():
|
|||||||
for comalias in comaliases:
|
for comalias in comaliases:
|
||||||
if comalias not in self.SpiceBot_Commands['commands'][command_type].keys():
|
if comalias not in self.SpiceBot_Commands['commands'][command_type].keys():
|
||||||
self.SpiceBot_Commands['commands'][command_type][comalias] = {"aliasfor": aliasfor}
|
self.SpiceBot_Commands['commands'][command_type][comalias] = {"aliasfor": aliasfor}
|
||||||
|
|
||||||
|
|
||||||
|
botcommands = BotCommands()
|
||||||
|
|||||||
@ -246,3 +246,6 @@ class BotDatabase():
|
|||||||
bot.db.set_channel_value(channel, sorting_key, self.SpiceBot_Database["channels"][channel][sorting_key])
|
bot.db.set_channel_value(channel, sorting_key, self.SpiceBot_Database["channels"][channel][sorting_key])
|
||||||
|
|
||||||
self.lock.release()
|
self.lock.release()
|
||||||
|
|
||||||
|
|
||||||
|
botdb = BotDatabase()
|
||||||
|
|||||||
@ -124,3 +124,6 @@ class BotEvents(object):
|
|||||||
return function(*args, **kwargs)
|
return function(*args, **kwargs)
|
||||||
return _nop
|
return _nop
|
||||||
return actual_decorator
|
return actual_decorator
|
||||||
|
|
||||||
|
|
||||||
|
botevents = BotEvents()
|
||||||
|
|||||||
@ -101,3 +101,6 @@ class BotLogs():
|
|||||||
pidnum = e
|
pidnum = e
|
||||||
pidnum = str(os.popen("systemctl show " + str(bot.nick) + " --property=MainPID").read()).split("=")[-1]
|
pidnum = str(os.popen("systemctl show " + str(bot.nick) + " --property=MainPID").read()).split("=")[-1]
|
||||||
return pidnum
|
return pidnum
|
||||||
|
|
||||||
|
|
||||||
|
botlogs = BotLogs()
|
||||||
|
|||||||
@ -20,7 +20,7 @@ from pygit2 import clone_repository
|
|||||||
|
|
||||||
import spicemanip
|
import spicemanip
|
||||||
|
|
||||||
import sopel_modules.SpiceBot as SpiceBot
|
from .Logs import botlogs
|
||||||
|
|
||||||
|
|
||||||
"""Variable References"""
|
"""Variable References"""
|
||||||
|
|||||||
@ -16,10 +16,3 @@ from .Database import *
|
|||||||
__author__ = 'Sam Zick'
|
__author__ = 'Sam Zick'
|
||||||
__email__ = 'sam@deathbybandaid.net'
|
__email__ = 'sam@deathbybandaid.net'
|
||||||
__version__ = '0.1.1'
|
__version__ = '0.1.1'
|
||||||
|
|
||||||
|
|
||||||
botdb = BotDatabase()
|
|
||||||
botchannels = BotChannels()
|
|
||||||
botcommands = BotCommands()
|
|
||||||
botevents = BotEvents()
|
|
||||||
botlogs = BotLogs()
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user