I'm creating a discord bot that I would host with my PC so only some hours per day and I'm searching something that allows the bot to read all dms that he received while offline or similar.
I had two ideas to do this.
The first and simpler
- call an iphotetic function that collect all the messages that the bot received when it was offline
The second
- save the date when the bot goes offline
- when it goes back online take all the 'open' private chats (so the ones that contains at least one message)
- parse all the messages received from when it went offline to when it came back online
Right now I couldn't find anything on how to do this, any ideas?