ESN-Trondheim / ESNbot

A Slack bot for ESN Trondheim
MIT License
3 stars 1 forks source link

Refactor upload api call, should be a function in main.BotClient() #63

Open LaiAlexander opened 10 months ago

LaiAlexander commented 10 months ago

DRY

watermark: https://github.com/ESN-Trondheim/ESNbot/blob/cfc0bd24ae3d89333d7ce434d639fd7794e00cbb/esnbot/commands.py#L178-L180

coverphoto: https://github.com/ESN-Trondheim/ESNbot/blob/cfc0bd24ae3d89333d7ce434d639fd7794e00cbb/esnbot/commands.py#L253-L255

These should be a function that is a part of main.BotClient(). If we want to do any changes, we will then only have to change the function itself instead of in two places.