Discord bot warning system with database?

I am currently programming a Discord bot and would like to add a warning system to it, this should run via a SQLite database

My bot is written with pycord version 2.5.0
and each warning should be assigned an "ID"

Which command do I need
/warn add <user> <reason> <duration>
(<duration> does not have to be specified and only administrators should be able to do this)
/warn remove <id> <reason>
(<reason> does not have to be specified and only administrators should be able to do this)
/warn list <user>
(if a <user> is specified, only this user should display the warnings
otherwise the warnings from all users, from all users or from other
users other than themselves should only be allowed to display the warnings (admin)

Can someone help me develop such a code?
Important this should not be in the main code but in a crog

Thanks in advance

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
1 Answer
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
HelferHan
9 months ago

I can’t fully follow your question. All of the commands you mentioned are very helpful and will be used regularly on activated servers.
Before adding more commands, make sure that the already planned commands write out enough information, that is, each warning has entered and from whom for what reason, just as the total number of warnings and possibly. Evidence if you add a warning (better to the organization and appeals).