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

Configure Feed

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

feat: reduce size of images

+5 -5
+3 -3
kefi/models/helpers.py
··· 129 129 "header_template": "¡Gracias {receiver_name}!", 130 130 "message_template": "Mensaje de {sender_name}:\n _{message}_", 131 131 "context_template": "*{sender_name}* le da a *{receiver_name}* {amount} kefis.", 132 - "image": "https://storage.staging.dekaside.com/kefi/static/images/kudos.png", 132 + "image": "https://storage.staging.dekaside.com/kefi/static/images/kudos_400.png", 133 133 }, 134 134 { 135 135 "keyword": Command.CONGRATS, ··· 137 137 "header_template": "¡Enhorabuena {receiver_name}! :trophy:", 138 138 "message_template": "Mensaje de {sender_name}:\n _{message}_", 139 139 "context_template": "*{sender_name}* le da a *{receiver_name}* {amount} kefis.", 140 - "image": "https://storage.staging.dekaside.com/kefi/static/images/congrats.png", 140 + "image": "https://storage.staging.dekaside.com/kefi/static/images/congrats_400.png", 141 141 }, 142 142 { 143 143 "keyword": Command.HIGH_FIVE, ··· 145 145 "header_template": "¡{sender_name} le envía un high five a {receiver_name}! :hand:", 146 146 "message_template": "_{message}_", 147 147 "context_template": "*{sender_name}* le da a *{receiver_name}* {amount} kefis.", 148 - "image": "https://storage.staging.dekaside.com/kefi/static/images/highfive.png", 148 + "image": "https://storage.staging.dekaside.com/kefi/static/images/highfive_400.png", 149 149 }, 150 150 ] 151 151 for action_data in actions:
+2 -2
kefi/routers/responses.py
··· 50 50 MarkDown(text=f"*Recibidos:*\n {received_amount} kefis"), 51 51 ], 52 52 accessory=Image( 53 - image_url="https://storage.staging.dekaside.com/kefi/static/images/kefis.png", 53 + image_url="https://storage.staging.dekaside.com/kefi/static/images/kefis_400.png", 54 54 alt_text="Mis Kefis", 55 55 ), 56 56 ) ··· 111 111 Context( 112 112 elements=[ 113 113 Image( 114 - image_url="https://storage.staging.dekaside.com/kefi/static/images/coin.png", 114 + image_url="https://storage.staging.dekaside.com/kefi/static/images/coin_20.png", 115 115 alt_text="Kefis", 116 116 ), 117 117 MarkDown(
kefi/static/images/coin_20.png

This is a binary file and will not be displayed.

kefi/static/images/congrats_400.png

This is a binary file and will not be displayed.

kefi/static/images/highfive_400.png

This is a binary file and will not be displayed.

kefi/static/images/kefis_400.png

This is a binary file and will not be displayed.

kefi/static/images/kudos_400.png

This is a binary file and will not be displayed.