Chaging the folders and creating a separeted class for messages

This commit is contained in:
Rafael Vargas
2022-03-22 17:53:21 -04:00
parent 2240c7535a
commit a828350201
27 changed files with 145 additions and 85 deletions

14
Views/EmoteView.py Normal file
View 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('')