Closed nickalaskreynolds closed 5 years ago
the blacklist command should take username, userid, or nickname to blacklist the person
The ignore channel was set in the CommandHandler.java
and a ignorechannel
is a new function..
Probably should switch the ignore channel from the CommandHandler.java
to Listeners,java
just to match the blacklist function
blacklist guild ID reason // only botowner...... this only adds blacklist user ID reason // >=admin...... this only adds blacklist remove guild ID // only botowner...... only removes blacklist remove user ID // >=admin...... only removes blacklist list // will list all Guilds and then list all users
Make a new table in GlobalDatabase.db
for blacklist_guilds
and blacklist_users
:
CREATE TABLE blacklist_guilds ( STRING blacklist_id NOT NULL, STRING creator NOT NULL, STRING reason NOT NULL, STRING date NOT NULL); CREATE TABLE blacklist_users ( STRING blacklist_id NOT NULL, STRING creator NOT NULL, STRING reason NOT NULL, STRING date NOT NULL);
Need to add a section in Listeners.java
:
for guilds: onGuildJoin // make sure not a blacklist for users: onMessageReceived // make sure not a blacklist
Allow for setting ignore channels command: