mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
migrate tools
This commit is contained in:
parent
c58adeec06
commit
c32859b3e6
@ -20,7 +20,7 @@ from pygit2 import clone_repository
|
||||
|
||||
import spicemanip
|
||||
|
||||
from sopel_modules.SpiceBot.Logs import botlogs
|
||||
from .Logs import botlogs
|
||||
|
||||
|
||||
"""Variable References"""
|
||||
@ -6,6 +6,7 @@ These are the core SpiceBot Classes
|
||||
This module contains references only for other modules to utilize.
|
||||
"""
|
||||
|
||||
from .Tools import *
|
||||
from .Logs import *
|
||||
from .Events import *
|
||||
from .Channels import *
|
||||
|
||||
@ -6,7 +6,7 @@ import sopel.module
|
||||
|
||||
import spicemanip
|
||||
|
||||
from sopel_modules.SpiceBot_SBTools import sopel_triggerargs, googlesearch, bot_privs, inlist, inlist_match, similar_list
|
||||
from sopel_modules.SpiceBot.Tools import sopel_triggerargs, googlesearch, bot_privs, inlist, inlist_match, similar_list
|
||||
from sopel_modules.SpiceBot.Events import botevents
|
||||
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ import sopel.module
|
||||
|
||||
import spicemanip
|
||||
|
||||
from sopel_modules.SpiceBot_SBTools import sopel_triggerargs, bot_privs
|
||||
from sopel_modules.SpiceBot.Tools import sopel_triggerargs, bot_privs
|
||||
|
||||
|
||||
@sopel.module.nickname_commands('owners', 'owner')
|
||||
|
||||
@ -8,7 +8,7 @@ import spicemanip
|
||||
|
||||
from sopel_modules.SpiceBot.Events import botevents
|
||||
from sopel_modules.SpiceBot.Channels import botchannels
|
||||
from sopel_modules.SpiceBot_SBTools import sopel_triggerargs, inlist, channel_privs
|
||||
from sopel_modules.SpiceBot.Tools import sopel_triggerargs, inlist, channel_privs
|
||||
|
||||
|
||||
@botevents.check_ready([botevents.BOT_LOADED])
|
||||
|
||||
@ -6,7 +6,7 @@ import sopel
|
||||
import sopel.module
|
||||
|
||||
from sopel_modules.SpiceBot.Events import botevents
|
||||
from sopel_modules.SpiceBot_SBTools import sopel_triggerargs, similar_list, letters_in_string
|
||||
from sopel_modules.SpiceBot.Tools import sopel_triggerargs, similar_list, letters_in_string
|
||||
|
||||
|
||||
import spicemanip
|
||||
|
||||
@ -6,7 +6,7 @@ import sopel
|
||||
import sopel.module
|
||||
|
||||
from sopel_modules.SpiceBot.Events import botevents
|
||||
from sopel_modules.SpiceBot_SBTools import sopel_triggerargs, similar_list, letters_in_string
|
||||
from sopel_modules.SpiceBot.Tools import sopel_triggerargs, similar_list, letters_in_string
|
||||
|
||||
|
||||
import spicemanip
|
||||
|
||||
@ -4,7 +4,7 @@ from __future__ import unicode_literals, absolute_import, division, print_functi
|
||||
|
||||
import sopel.module
|
||||
|
||||
from sopel_modules.SpiceBot_SBTools import github_dict
|
||||
from sopel_modules.SpiceBot.Tools import github_dict
|
||||
|
||||
|
||||
@sopel.module.nickname_commands('help', 'docs', 'wiki')
|
||||
|
||||
@ -6,7 +6,7 @@ from sopel import module
|
||||
|
||||
from .gifsearch import getGif
|
||||
|
||||
from sopel_modules.SpiceBot_SBTools import sopel_triggerargs
|
||||
from sopel_modules.SpiceBot.Tools import sopel_triggerargs
|
||||
from sopel_modules.SpiceBot.Events import botevents
|
||||
|
||||
import spicemanip
|
||||
|
||||
@ -8,7 +8,7 @@ import sopel.module
|
||||
|
||||
import spicemanip
|
||||
|
||||
from sopel_modules.SpiceBot_SBTools import sopel_triggerargs
|
||||
from sopel_modules.SpiceBot.Tools import sopel_triggerargs
|
||||
from sopel_modules.SpiceBot.Events import botevents
|
||||
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@ from sopel.config.types import StaticSection, ValidatedAttribute
|
||||
from sopel_modules.SpiceBot.Logs import botlogs
|
||||
from sopel_modules.SpiceBot.Events import botevents
|
||||
from sopel_modules.SpiceBot_CommandsQuery.CommandsQuery import commandsquery_register
|
||||
from sopel_modules.SpiceBot_SBTools import read_directory_json_to_dict
|
||||
from sopel_modules.SpiceBot.Tools import read_directory_json_to_dict
|
||||
|
||||
import spicemanip
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ from __future__ import unicode_literals, absolute_import, division, print_functi
|
||||
|
||||
import sopel.module
|
||||
|
||||
from sopel_modules.SpiceBot_SBTools import sopel_triggerargs
|
||||
from sopel_modules.SpiceBot.Tools import sopel_triggerargs
|
||||
from sopel_modules.SpiceBot.Events import botevents
|
||||
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ import spicemanip
|
||||
|
||||
from sopel_modules.SpiceBot.Logs import botlogs
|
||||
from sopel_modules.SpiceBot.Events import botevents
|
||||
from sopel_modules.SpiceBot_SBTools import sopel_triggerargs, command_permissions_check, inlist, inlist_match, similar_list
|
||||
from sopel_modules.SpiceBot.Tools import sopel_triggerargs, command_permissions_check, inlist, inlist_match, similar_list
|
||||
|
||||
|
||||
@botevents.check_ready([botevents.BOT_LOGS])
|
||||
|
||||
@ -7,7 +7,7 @@ import sopel.module
|
||||
import spicemanip
|
||||
|
||||
from sopel_modules.SpiceBot.Channels import botchannels
|
||||
from sopel_modules.SpiceBot_SBTools import sopel_triggerargs, command_permissions_check, inlist
|
||||
from sopel_modules.SpiceBot.Tools import sopel_triggerargs, command_permissions_check, inlist
|
||||
|
||||
|
||||
@sopel.module.nickname_commands('action')
|
||||
|
||||
@ -6,7 +6,7 @@ from __future__ import unicode_literals, absolute_import, print_function, divisi
|
||||
import sopel.module
|
||||
|
||||
from sopel_modules.SpiceBot.Logs import botlogs
|
||||
from sopel_modules.SpiceBot_SBTools import spicebot_reload
|
||||
from sopel_modules.SpiceBot.Tools import spicebot_reload
|
||||
|
||||
|
||||
@sopel.module.nickname_commands('restart')
|
||||
|
||||
@ -7,7 +7,7 @@ import sopel
|
||||
import sopel.module
|
||||
|
||||
from sopel_modules.SpiceBot.Logs import botlogs
|
||||
from sopel_modules.SpiceBot_SBTools import stock_modules_begone
|
||||
from sopel_modules.SpiceBot.Tools import stock_modules_begone
|
||||
|
||||
|
||||
def setup(bot):
|
||||
|
||||
@ -6,7 +6,7 @@ import sopel.module
|
||||
|
||||
from sopel_modules.SpiceBot.Logs import botlogs
|
||||
from sopel_modules.SpiceBot.Events import botevents
|
||||
from sopel_modules.SpiceBot_SBTools import humanized_time
|
||||
from sopel_modules.SpiceBot.Tools import humanized_time
|
||||
|
||||
import time
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ from sopel.config.types import StaticSection, ValidatedAttribute
|
||||
import spicemanip
|
||||
|
||||
from sopel_modules.SpiceBot.Logs import botlogs
|
||||
from sopel_modules.SpiceBot_SBTools import sopel_triggerargs, command_permissions_check, spicebot_reload, spicebot_update
|
||||
from sopel_modules.SpiceBot.Tools import sopel_triggerargs, command_permissions_check, spicebot_reload, spicebot_update
|
||||
|
||||
|
||||
class SpiceBot_Update_MainSection(StaticSection):
|
||||
|
||||
@ -7,7 +7,7 @@ import sopel.module
|
||||
import time
|
||||
|
||||
from sopel_modules.SpiceBot.Logs import botlogs
|
||||
from sopel_modules.SpiceBot_SBTools import humanized_time
|
||||
from sopel_modules.SpiceBot.Tools import humanized_time
|
||||
|
||||
|
||||
def setup(bot):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user