Add demo clear-chat command
All checks were successful
continuous-integration/drone/push Build is passing

This command is very unoptimized (spawning 12 threads) and sometimes hits 429 errors, but it works until things get more serious. Also it's hardcoded to only delete 10 messages.
This commit is contained in:
2022-08-26 01:15:10 +02:00
parent a875053435
commit 59c5e09f14
2 changed files with 35 additions and 1 deletions

View File

@@ -16,7 +16,8 @@ import java.util.List;
public class HidekoBot
{
private static String botToken;
private static String standardInviteLink = "https://discord.com/oauth2/authorize?client_id=%userid%&scope=bot&permissions=8";
private static String standardInviteLink =
"https://discord.com/oauth2/authorize?client_id=%userid%&scope=bot&permissions=8";
private static String botUserId;
private static final String version = "0.0.1"; // we should probably find a way to make this consistent with Maven