Starting using multiprocessing module in Vulkan, now creating a new bot for each guild when played, multiple issues yet

This commit is contained in:
Rafael Vargas
2022-07-22 16:03:51 -03:00
parent 7a51c22709
commit fc7de9cb4f
13 changed files with 367 additions and 20 deletions

23
Parallelism/Commands.py Normal file
View File

@@ -0,0 +1,23 @@
from enum import Enum
from typing import Tuple
class VCommandsType(Enum):
PLAY_PREV = 'Play Prev'
SKIP = 'Skip'
PAUSE = 'Pause'
RESUME = 'Resume'
CONTEXT = 'Context'
PLAY = 'Play'
class VCommands:
def __init__(self, type: VCommandsType, args=None) -> None:
self.__type = type
self.__args = args
def getType(self) -> VCommandsType:
return self.__type
def getArgs(self) -> Tuple:
return self.__args