mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
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:
16
config/Singleton.py
Normal file
16
config/Singleton.py
Normal 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
|
||||
@@ -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...'
|
||||
|
||||
Reference in New Issue
Block a user