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

Configure Feed

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

messages

+6 -8
+6 -8
kefi/routers/messages.py
··· 59 59 60 60 class NotEnoughKefiMessage(BaseMessage): 61 61 def text(self) -> str: 62 - return "" 62 + return "NotEnoughKefiMessage" 63 63 64 64 def blocks(self) -> list[Block]: 65 - return [] 65 + return [SectionBlock(text="NotEnoughKefiMessage")] 66 66 67 67 68 68 class AlreadyAttendingMessage(BaseMessage): 69 69 def text(self) -> str: 70 - return "" 70 + return "AlreadyAttendingMessage" 71 71 72 72 def blocks(self) -> list[Block]: 73 - return [] 73 + return [SectionBlock(text="AlreadyAttendingMessage")] 74 74 75 75 76 76 class NotAttendingMessage(BaseMessage): 77 77 def text(self) -> str: 78 - return "Test" 78 + return "NotAttendingMessage" 79 79 80 80 def blocks(self) -> list[Block]: 81 - return [ 82 - SectionBlock(text=MarkdownTextObject(text="Test")), 83 - ] 81 + return [SectionBlock(text="NotAttendingMessage")]