Sending initial changes, adding the concept of Handlers, Views, Exceptions and Result, these class will optimaze the code in terms of cleanliness and organizational

This commit is contained in:
Rafael Vargas
2022-03-21 16:11:38 -04:00
parent 2bd100a3e1
commit 5c4d09bf9d
13 changed files with 241 additions and 6 deletions

16
config/Singleton.py Normal file
View File

@@ -0,0 +1,16 @@
class Singleton(object):
__instance = None
__created = False
def __new__(cls, *args, **kwargs):
if cls.__instance is None:
cls.__instance = object.__new__(cls)
return cls.__instance
@property
def created(cls):
if cls.__created == False:
cls.__created = True
return False
else:
return True

View File

@@ -4,7 +4,7 @@ BOT_TOKEN = config('BOT_TOKEN')
SPOTIFY_ID = config('SPOTIFY_ID')
SPOTIFY_SECRET = config('SPOTIFY_SECRET')
BOT_PREFIX = '!'
BOT_PREFIX = '$'
VC_TIMEOUT = 600
STARTUP_MESSAGE = 'Starting Vulkan...'