mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -05:00
from .Tools import prerun_shared
This commit is contained in:
parent
b3b628a51d
commit
ed5615e1a9
@ -12,7 +12,7 @@ from .Config import config as botconfig
|
|||||||
from .Read import read as botread
|
from .Read import read as botread
|
||||||
from .Commands import commands as botcommands
|
from .Commands import commands as botcommands
|
||||||
from .Database import db as botdb
|
from .Database import db as botdb
|
||||||
from .Prerun import prerun_shared
|
from .Tools import prerun_shared
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import copy
|
import copy
|
||||||
|
|||||||
@ -21,40 +21,7 @@ from .MessageLog import messagelog as botmessagelog
|
|||||||
from .Config import config as botconfig
|
from .Config import config as botconfig
|
||||||
from .Users import users as botusers
|
from .Users import users as botusers
|
||||||
from .Events import events as botevents
|
from .Events import events as botevents
|
||||||
|
from .Tools import prerun_shared
|
||||||
|
|
||||||
class Botprerun_shared():
|
|
||||||
def __init__(self):
|
|
||||||
|
|
||||||
self.valid_hyphen_args = [
|
|
||||||
'check', 'view',
|
|
||||||
'count', 'special',
|
|
||||||
'enable', 'disable',
|
|
||||||
'block', 'unblock',
|
|
||||||
"activate", "deactivate",
|
|
||||||
"on", "off",
|
|
||||||
'multirun', 'multiruns',
|
|
||||||
'example', 'usage',
|
|
||||||
'filename', 'filepath',
|
|
||||||
'foldername', 'folderpath',
|
|
||||||
"author",
|
|
||||||
'contribs', 'contrib', "contributors",
|
|
||||||
'alias', 'aliases',
|
|
||||||
'random'
|
|
||||||
]
|
|
||||||
|
|
||||||
self.numdict = {
|
|
||||||
"last": -1
|
|
||||||
}
|
|
||||||
|
|
||||||
self.stockoptions = [
|
|
||||||
"?default", "validcoms", "contributors", "author", "type",
|
|
||||||
"filepath", "filename", "hardcoded_channel_block", "description",
|
|
||||||
"exampleresponse", "example", "usage", "privs"
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
prerun_shared = Botprerun_shared()
|
|
||||||
|
|
||||||
|
|
||||||
def prerun(t_command_type='module', t_command_subtype=None):
|
def prerun(t_command_type='module', t_command_subtype=None):
|
||||||
|
|||||||
@ -12,7 +12,7 @@ from fake_useragent import UserAgent
|
|||||||
|
|
||||||
from .Logs import logs
|
from .Logs import logs
|
||||||
from .Config import config as botconfig
|
from .Config import config as botconfig
|
||||||
from .Prerun import prerun_shared
|
from .Tools import prerun_shared
|
||||||
|
|
||||||
|
|
||||||
class BotRead():
|
class BotRead():
|
||||||
|
|||||||
@ -20,6 +20,40 @@ from .Logs import logs
|
|||||||
from .Config import config as botconfig
|
from .Config import config as botconfig
|
||||||
|
|
||||||
|
|
||||||
|
class Botprerun_shared():
|
||||||
|
def __init__(self):
|
||||||
|
|
||||||
|
self.valid_hyphen_args = [
|
||||||
|
'check', 'view',
|
||||||
|
'count', 'special',
|
||||||
|
'enable', 'disable',
|
||||||
|
'block', 'unblock',
|
||||||
|
"activate", "deactivate",
|
||||||
|
"on", "off",
|
||||||
|
'multirun', 'multiruns',
|
||||||
|
'example', 'usage',
|
||||||
|
'filename', 'filepath',
|
||||||
|
'foldername', 'folderpath',
|
||||||
|
"author",
|
||||||
|
'contribs', 'contrib', "contributors",
|
||||||
|
'alias', 'aliases',
|
||||||
|
'random'
|
||||||
|
]
|
||||||
|
|
||||||
|
self.numdict = {
|
||||||
|
"last": -1
|
||||||
|
}
|
||||||
|
|
||||||
|
self.stockoptions = [
|
||||||
|
"?default", "validcoms", "contributors", "author", "type",
|
||||||
|
"filepath", "filename", "hardcoded_channel_block", "description",
|
||||||
|
"exampleresponse", "example", "usage", "privs"
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
prerun_shared = Botprerun_shared()
|
||||||
|
|
||||||
|
|
||||||
"""Variable References"""
|
"""Variable References"""
|
||||||
|
|
||||||
github_dict = {
|
github_dict = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user