sjstein / R8DIUM

A discord bot to manage individual run8 users
GNU General Public License v3.0
2 stars 0 forks source link

add feature to keep track of number of users #62

Closed sjstein closed 8 months ago

sjstein commented 8 months ago

Using a remoted db and some RESTful calls, track the number of users that the bot currently has in it's database.

Likely the only time to update the db is after a user is added or deleted

When either of those functions are executed, send a new record to the db

record is:

server id can be a hashed version of the host machine's MAC address bot_ver will be an new addition (see issue regarding version tracking) number_of_users is simply the len(userDb)
sjstein commented 8 months ago

comment from @jackfruh - it would be better to have the server id be a hash of a concatenation of the mac address and the hostSecurity file name