mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -05:00
migrate tools
This commit is contained in:
parent
c58adeec06
commit
c32859b3e6
@ -20,7 +20,7 @@ from pygit2 import clone_repository
|
|||||||
|
|
||||||
import spicemanip
|
import spicemanip
|
||||||
|
|
||||||
from sopel_modules.SpiceBot.Logs import botlogs
|
from .Logs import botlogs
|
||||||
|
|
||||||
|
|
||||||
"""Variable References"""
|
"""Variable References"""
|
||||||
@ -6,6 +6,7 @@ These are the core SpiceBot Classes
|
|||||||
This module contains references only for other modules to utilize.
|
This module contains references only for other modules to utilize.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from .Tools import *
|
||||||
from .Logs import *
|
from .Logs import *
|
||||||
from .Events import *
|
from .Events import *
|
||||||
from .Channels import *
|
from .Channels import *
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import sopel.module
|
|||||||
|
|
||||||
import spicemanip
|
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
|
from sopel_modules.SpiceBot.Events import botevents
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import sopel.module
|
|||||||
|
|
||||||
import spicemanip
|
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')
|
@sopel.module.nickname_commands('owners', 'owner')
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import spicemanip
|
|||||||
|
|
||||||
from sopel_modules.SpiceBot.Events import botevents
|
from sopel_modules.SpiceBot.Events import botevents
|
||||||
from sopel_modules.SpiceBot.Channels import botchannels
|
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])
|
@botevents.check_ready([botevents.BOT_LOADED])
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import sopel
|
|||||||
import sopel.module
|
import sopel.module
|
||||||
|
|
||||||
from sopel_modules.SpiceBot.Events import botevents
|
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
|
import spicemanip
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import sopel
|
|||||||
import sopel.module
|
import sopel.module
|
||||||
|
|
||||||
from sopel_modules.SpiceBot.Events import botevents
|
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
|
import spicemanip
|
||||||
|
|||||||
@ -4,7 +4,7 @@ from __future__ import unicode_literals, absolute_import, division, print_functi
|
|||||||
|
|
||||||
import sopel.module
|
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')
|
@sopel.module.nickname_commands('help', 'docs', 'wiki')
|
||||||
|
|||||||
@ -6,7 +6,7 @@ from sopel import module
|
|||||||
|
|
||||||
from .gifsearch import getGif
|
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
|
from sopel_modules.SpiceBot.Events import botevents
|
||||||
|
|
||||||
import spicemanip
|
import spicemanip
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import sopel.module
|
|||||||
|
|
||||||
import spicemanip
|
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
|
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.Logs import botlogs
|
||||||
from sopel_modules.SpiceBot.Events import botevents
|
from sopel_modules.SpiceBot.Events import botevents
|
||||||
from sopel_modules.SpiceBot_CommandsQuery.CommandsQuery import commandsquery_register
|
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
|
import spicemanip
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ from __future__ import unicode_literals, absolute_import, division, print_functi
|
|||||||
|
|
||||||
import sopel.module
|
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
|
from sopel_modules.SpiceBot.Events import botevents
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import spicemanip
|
|||||||
|
|
||||||
from sopel_modules.SpiceBot.Logs import botlogs
|
from sopel_modules.SpiceBot.Logs import botlogs
|
||||||
from sopel_modules.SpiceBot.Events import botevents
|
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])
|
@botevents.check_ready([botevents.BOT_LOGS])
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import sopel.module
|
|||||||
import spicemanip
|
import spicemanip
|
||||||
|
|
||||||
from sopel_modules.SpiceBot.Channels import botchannels
|
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')
|
@sopel.module.nickname_commands('action')
|
||||||
|
|||||||
@ -6,7 +6,7 @@ from __future__ import unicode_literals, absolute_import, print_function, divisi
|
|||||||
import sopel.module
|
import sopel.module
|
||||||
|
|
||||||
from sopel_modules.SpiceBot.Logs import botlogs
|
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')
|
@sopel.module.nickname_commands('restart')
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import sopel
|
|||||||
import sopel.module
|
import sopel.module
|
||||||
|
|
||||||
from sopel_modules.SpiceBot.Logs import botlogs
|
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):
|
def setup(bot):
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import sopel.module
|
|||||||
|
|
||||||
from sopel_modules.SpiceBot.Logs import botlogs
|
from sopel_modules.SpiceBot.Logs import botlogs
|
||||||
from sopel_modules.SpiceBot.Events import botevents
|
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
|
import time
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ from sopel.config.types import StaticSection, ValidatedAttribute
|
|||||||
import spicemanip
|
import spicemanip
|
||||||
|
|
||||||
from sopel_modules.SpiceBot.Logs import botlogs
|
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):
|
class SpiceBot_Update_MainSection(StaticSection):
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import sopel.module
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
from sopel_modules.SpiceBot.Logs import botlogs
|
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):
|
def setup(bot):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user