nickalaskreynolds / Star-Bot

Discord Bot written in Java using JDA, soon to be python
GNU General Public License v3.0
2 stars 0 forks source link

Bot Usability #29

Closed nickalaskreynolds closed 5 years ago

nickalaskreynolds commented 6 years ago

Allow for setting ignore channels command:

ignore #channel // must be a mentionable

nickalaskreynolds commented 6 years ago

the blacklist command should take username, userid, or nickname to blacklist the person

nickalaskreynolds commented 6 years ago

The ignore channel was set in the CommandHandler.java and a ignorechannelis a new function..

Probably should switch the ignore channel from the CommandHandler.java to Listeners,java just to match the blacklist function

nickalaskreynolds commented 6 years ago

Blacklist command:

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