mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
test
This commit is contained in:
parent
e5464a7fd2
commit
49a962295a
@ -16,18 +16,14 @@ import requests
|
|||||||
from fake_useragent import UserAgent
|
from fake_useragent import UserAgent
|
||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
|
|
||||||
class SpiceBot_DictComs_MainSection(StaticSection):
|
class SpiceBot_DictComs_MainSection(StaticSection):
|
||||||
extra = ListAttribute('extra')
|
extra = ListAttribute('extra')
|
||||||
|
|
||||||
|
|
||||||
class BotJSONCommands():
|
class BotJSONCommands():
|
||||||
"""This Logs all commands known to the bot"""
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
sys.stderr.write("[here] test 1 2 2")
|
|
||||||
self.setup_dictcoms()
|
self.setup_dictcoms()
|
||||||
self.header = {'User-Agent': str(UserAgent().chrome)}
|
self.header = {'User-Agent': str(UserAgent().chrome)}
|
||||||
self.valid_com_types = [
|
self.valid_com_types = [
|
||||||
@ -38,12 +34,10 @@ class BotJSONCommands():
|
|||||||
]
|
]
|
||||||
|
|
||||||
dir_to_scan = botread.get_config_dirs("SpiceBot_DictComs")
|
dir_to_scan = botread.get_config_dirs("SpiceBot_DictComs")
|
||||||
sys.stderr.write(dir_to_scan)
|
|
||||||
|
|
||||||
valid_dictcom_dict = botread.json_to_dict(dir_to_scan, "Dictionary Commands", "SpiceBot_DictComs")
|
self.valid_dictcom_dict = botread.json_to_dict(dir_to_scan, "Dictionary Commands", "SpiceBot_DictComs")
|
||||||
sys.stderr.write(valid_dictcom_dict)
|
|
||||||
|
|
||||||
for dict_from_file in list(valid_dictcom_dict.keys()):
|
for dict_from_file in list(self.valid_dictcom_dict.keys()):
|
||||||
|
|
||||||
dict_from_file["comtype"] = "prefix"
|
dict_from_file["comtype"] = "prefix"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user