Petit checkpoint

This commit is contained in:
Louis Chauvet 2020-04-21 10:46:36 +02:00
parent c8922cddca
commit 0ed718d6d4
Signed by: fomys
GPG Key ID: 1ECA046A9615ABA0
80 changed files with 830 additions and 829 deletions

View File

@ -1,11 +0,0 @@
{
"version":"0.1.0",
"type": "python",
"dependencies": {
},
"bot_version": {
"min": "0.1.0",
"max": "0.1.0"
}
}

View File

@ -1,11 +0,0 @@
{
"version":"0.1.0",
"type": "python",
"dependencies": {
},
"bot_version": {
"min": "0.1.0",
"max": "0.1.0"
}
}

View File

@ -1,11 +0,0 @@
{
"version":"0.1.0",
"type": "python",
"dependencies": {
},
"bot_version": {
"min": "0.1.0",
"max": "0.1.0"
}
}

View File

@ -1,11 +0,0 @@
{
"version":"0.1.0",
"type": "python",
"dependencies": {
},
"bot_version": {
"min": "0.1.0",
"max": "0.1.0"
}
}

View File

@ -1,11 +0,0 @@
{
"version":"0.1.0",
"type": "python",
"dependencies": {
},
"bot_version": {
"min": "0.1.0",
"max": "0.1.0"
}
}

View File

@ -1,11 +0,0 @@
{
"version":"0.1.0",
"type": "python",
"dependencies": {
},
"bot_version": {
"min": "0.1.0",
"max": "0.1.0"
}
}

View File

@ -1,11 +0,0 @@
{
"version":"0.1.0",
"type": "python",
"dependencies": {
},
"bot_version": {
"min": "0.1.0",
"max": "0.1.0"
}
}

View File

@ -1,11 +0,0 @@
{
"version":"0.1.0",
"type": "python",
"dependencies": {
},
"bot_version": {
"min": "0.1.0",
"max": "0.1.0"
}
}

View File

View File

@ -5,7 +5,8 @@ from typing import List, Union, Optional
import discord import discord
from config import Config, config_types from config import Config
from config import config_types
from config.config_types import factory from config.config_types import factory
from storage import Objects from storage import Objects
from utils import emojis from utils import emojis
@ -35,9 +36,9 @@ class BaseClass:
self.config.register("color", factory(config_types.Color)) self.config.register("color", factory(config_types.Color))
self.config.register("auth_everyone", factory(config_types.Bool)) self.config.register("auth_everyone", factory(config_types.Bool))
self.config.register("authorized_roles", self.config.register("authorized_roles",
factory(config_types.List, factory(config_types.discord_types.Role, client))) factory(config_types.List, factory(config.config_types.discord_types.Role, client)))
self.config.register("authorized_users", self.config.register("authorized_users",
factory(config_types.List, factory(config_types.discord_types.User, client))) factory(config_types.List, factory(config.config_types.discord_types.User, client)))
self.config.register("command_text", factory(config_types.Str)) self.config.register("command_text", factory(config_types.Str))
self.config.set({"help_active": True, self.config.set({"help_active": True,
"color": 0x000000, "color": 0x000000,

View File

@ -4,7 +4,7 @@ import asyncio
import discord import discord
import lupa import lupa
from modules.base.Base import BaseClass from modules import BaseClass
class BaseClassLua(BaseClass): class BaseClassLua(BaseClass):

View File

@ -1,6 +1,6 @@
"""Base class for module, never use directly !!!""" """Base class for module, never use directly !!!"""
from modules.base.Base import BaseClass from .Base import BaseClass
class BaseClassPython(BaseClass): class BaseClassPython(BaseClass):

View File

@ -0,0 +1,11 @@
{
"version":"0.1.0",
"type": "python",
"dependencies": {
},
"bot_version": {
"min": "0.1.0",
"max": "0.1.0"
}
}

View File

@ -0,0 +1,11 @@
{
"version":"0.1.0",
"type": "python",
"dependencies": {
},
"bot_version": {
"min": "0.1.0",
"max": "0.1.0"
}
}

View File

@ -0,0 +1,11 @@
{
"version":"0.1.0",
"type": "python",
"dependencies": {
},
"bot_version": {
"min": "0.1.0",
"max": "0.1.0"
}
}

View File

@ -0,0 +1,11 @@
{
"version":"0.1.0",
"type": "python",
"dependencies": {
},
"bot_version": {
"min": "0.1.0",
"max": "0.1.0"
}
}

View File

@ -0,0 +1,11 @@
{
"version":"0.1.0",
"type": "python",
"dependencies": {
},
"bot_version": {
"min": "0.1.0",
"max": "0.1.0"
}
}

View File

@ -0,0 +1,11 @@
{
"version":"0.1.0",
"type": "python",
"dependencies": {
},
"bot_version": {
"min": "0.1.0",
"max": "0.1.0"
}
}

View File

@ -0,0 +1,11 @@
{
"version":"0.1.0",
"type": "python",
"dependencies": {
},
"bot_version": {
"min": "0.1.0",
"max": "0.1.0"
}
}

View File

@ -0,0 +1,11 @@
{
"version":"0.1.0",
"type": "python",
"dependencies": {
},
"bot_version": {
"min": "0.1.0",
"max": "0.1.0"
}
}

0
src/utils/__init__.py Normal file
View File