mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
Chaging the folders and creating a separeted class for messages
This commit is contained in:
14
Views/EmoteView.py
Normal file
14
Views/EmoteView.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from Views.AbstractView import AbstractView
|
||||
from Controllers.ControllerResponse import ControllerResponse
|
||||
|
||||
|
||||
class EmoteView(AbstractView):
|
||||
|
||||
def __init__(self, response: ControllerResponse) -> None:
|
||||
super().__init__(response)
|
||||
|
||||
async def run(self) -> None:
|
||||
if self.response.success:
|
||||
await self.message.add_reaction('✅')
|
||||
else:
|
||||
await self.message.add_reaction('❌')
|
||||
Reference in New Issue
Block a user