Python backend for a Slack's kudos plugin.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update messages

+26 -8
+26 -8
kefi/routers/messages.py
··· 74 74 75 75 class NotEnoughKefiMessage(BaseMessage): 76 76 def text(self) -> str: 77 - return "NotEnoughKefiMessage" 77 + return ":money_with_wings: ¡Vaya! No tienes suficientes kefis para apuntarte." 78 78 79 79 def blocks(self) -> list[Block]: 80 - return [SectionBlock(text="NotEnoughKefiMessage")] 80 + return [ 81 + SectionBlock( 82 + text=MarkdownTextObject( 83 + text=":money_with_wings: ¡Vaya! No tienes suficientes kefis para apuntarte." 84 + ) 85 + ) 86 + ] 81 87 82 88 83 89 class AlreadyAttendingMessage(BaseMessage): 84 90 def text(self) -> str: 85 - return "AlreadyAttendingMessage" 91 + return "¡Ei! Estás intentando apuntarte al próximo evento pero ya estas apuntado. ¡Nos vemos el próximo viernes!" 86 92 87 93 def blocks(self) -> list[Block]: 88 - return [SectionBlock(text="AlreadyAttendingMessage")] 94 + return [ 95 + SectionBlock( 96 + text=MarkdownTextObject( 97 + text="¡Ei! Estás intentando apuntarte al próximo evento pero ya estas apuntado. ¡Nos vemos el próximo viernes!" 98 + ) 99 + ) 100 + ] 89 101 90 102 91 103 class NotAttendingMessage(BaseMessage): 92 - def text(self, *args, **kwargs) -> str: 93 - return "NotAttendingMessage" 104 + def text(self) -> str: 105 + return "Has intentado desapuntarte del próximo evento pero ya lo habías hecho antes. ¡Esperamos verte en los próximos eventos!" 94 106 95 - def blocks(self, *args, **kwargs) -> list[Block]: 96 - return [SectionBlock(text="NotAttendingMessage")] 107 + def blocks(self) -> list[Block]: 108 + return [ 109 + SectionBlock( 110 + text=MarkdownTextObject( 111 + text="Has intentado desapuntarte del próximo evento pero ya lo habías hecho antes. ¡Esperamos verte en los próximos eventos!" 112 + ) 113 + ) 114 + ]