added unmute command to end all mutes, and remove the current one, this also cancels all running jobs, so we need to store the triggers

enabled voice state cache, as its necessary for voice state operations
kick user out of voice chat, if they are in any
changed unmute date to the the effective date of the unmute, instead of the planned date
added possibility to stop a job via the trigger key
This commit is contained in:
Sheldan
2020-04-25 11:10:59 +02:00
parent d4eeb2dadb
commit 7ac2f2ce08
14 changed files with 174 additions and 16 deletions

View File

@@ -32,7 +32,7 @@ public class BotServiceBean implements BotService {
public void login() throws LoginException {
JDABuilder builder = new JDABuilder(System.getenv("TOKEN"));
builder.setDisabledCacheFlags(EnumSet.of(CacheFlag.ACTIVITY, CacheFlag.VOICE_STATE));
builder.setDisabledCacheFlags(EnumSet.of(CacheFlag.ACTIVITY));
builder.setBulkDeleteSplittingEnabled(false);
this.instance = builder.build();