Answer the question
In order to leave comments, you need to log in
How to organize the collection of statistics on the channels of the discord server?
I am not experienced in multithreading and do not know all the patterns when working with it, so a question arose when implementing statistics collection.
The task is to collect statistics on how many man-hours (seconds rather) the channel collects on the discord server.
I need a class that stores a field in itself and stores "how many seconds spent in this channel" in itself. According to the events of entry-exit to the channel, I want to write this to the class object. At some point, you still need to save it to the database.
Is there a healthy pattern or good solution for this?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question