acmfi / acm_bot

The brand new bot for ACM
5 stars 0 forks source link

Enhance the /armario command #6

Closed Ironjanowar closed 5 years ago

Ironjanowar commented 5 years ago

The problem The bot sends the same document every time you ask for it.

Suggestion Use an application env variable to store (in execution) the file id sent with ExGram.send_document( ... )

Ironjanowar commented 5 years ago

@Alfedi, @rockneurotiko suggested not ussing an env variable for this. Insead you could create a GenServer to store the file_id, and it could be used as a cache later.

Thanks @rockneurotiko

Alfedi commented 5 years ago

Wow. Serious business. I don't know anything about GenServer but I'll try my best.