ethanchristoff / Discord_Warn_Bot

This is a simple bot meant to moderate users in a server by issuing timeouts and other such events.
Apache License 2.0
0 stars 0 forks source link

Server side user session management #2

Open ethanchristoff opened 3 months ago

ethanchristoff commented 3 months ago

What is the issue?

The issue here is an enhancement. Each users session is to be cached and stored on the server it's being hosted on, so to do this there should be some form of data management for each users active session. For example, it may be seen that as a user is timed out from using a bot they are limited to accessing certain features on the server, so instead of actively applying these policies unto all the members on the server (to minimize the use of the servers processing power) it should only take effect on the mentioned user.

What is the solution?

Make it such that the server manages a data base of the registered and confirmed users in the servers that store the following details:

  1. Username/User ID
  2. Date in which the user joined the server
  3. The users status (online/offline)
  4. Users role
  5. Warn count, etc
ethanchristoff commented 1 month ago

First Update to the issue

Include the ability for a users data to be stored in a csv file on the hosts machine. The following details are what's currently stored:

Some of the features to be included later on include the following:

ethanchristoff commented 1 month ago

Reopened the issue to enhance the bot such that the users previous roles and current roles, etc, may be logged.