Changing folders names and adding more concrete classes of controllers and viewers

This commit is contained in:
Rafael Vargas
2022-03-22 17:39:09 -04:00
parent 14705569c1
commit 2240c7535a
27 changed files with 488 additions and 188 deletions

34
config/Colors.py Normal file
View File

@@ -0,0 +1,34 @@
from Config.Singleton import Singleton
class Colors(Singleton):
def __init__(self) -> None:
self.__red = 0xDC143C
self.__green = 0x1F8B4C
self.__grey = 0x708090
self.__blue = 0x206694
self.__black = 0x23272A
@property
def RED(self) -> str:
return self.__red
@property
def GREEN(self) -> str:
return self.__green
@property
def GREY(self) -> str:
return self.__grey
@property
def BLUE(self) -> str:
return self.__blue
@property
def BLACK(self) -> str:
return self.__black
@property
def RED(self) -> str:
return self.__red

View File

@@ -1,5 +1,5 @@
from config.Singleton import Singleton
from config.Config import Config
from Config.Singleton import Singleton
from Config.Config import Config
class Helper(Singleton):

View File

@@ -1,5 +1,5 @@
from decouple import config
from config.Singleton import Singleton
from Config.Singleton import Singleton
class Config(Singleton):
@@ -77,11 +77,13 @@ class Config(Singleton):
self.MY_ERROR_BAD_COMMAND = 'This string serves to verify if some error was raised by myself on purpose'
self.BAD_COMMAND_TITLE = 'Misuse of command'
self.BAD_COMMAND = f'❌ Bad usage of this command, type {self.BOT_PREFIX}help "command" to understand the command better'
self.INVITE_URL = 'https://discordapp.com/oauth2/authorize?client_id={}&scope=bot>'
self.VIDEO_UNAVAILABLE = '❌ Sorry. This video is unavailable for download.'
self.COLOURS = {
'red': 0xDC143C,
'green': 0x1F8B4C,
'grey': 0x708090,
'blue': 0x206694,
'black': 0x23272A
}
self.COLOURS = {
'red': 0xDC143C,
'green': 0x1F8B4C,
'grey': 0x708090,
'blue': 0x206694,
'black': 0x23272A
}