fix a few warnings

This commit is contained in:
Chayapak 2023-08-18 17:34:33 +07:00
parent 7f99a31cbd
commit 7b161eac4b
3 changed files with 1 additions and 7 deletions

View file

@ -6,9 +6,6 @@ import land.chipmunk.chayapak.chomens_bot.command.CommandContext;
import land.chipmunk.chayapak.chomens_bot.command.TrustLevel; import land.chipmunk.chayapak.chomens_bot.command.TrustLevel;
import net.kyori.adventure.text.Component; import net.kyori.adventure.text.Component;
import java.util.ArrayList;
import java.util.List;
public class ClearChatQueueCommand extends Command { public class ClearChatQueueCommand extends Command {
public ClearChatQueueCommand () { public ClearChatQueueCommand () {
super( super(

View file

@ -28,13 +28,10 @@ public class HelpCommand extends Command {
); );
} }
private Bot bot;
private CommandContext context; private CommandContext context;
@Override @Override
public Component execute(CommandContext context, String[] args, String[] fullArgs) { public Component execute(CommandContext context, String[] args, String[] fullArgs) {
this.bot = context.bot;
this.context = context; this.context = context;
if (args.length == 0) { if (args.length == 0) {

View file

@ -30,7 +30,7 @@ public class Song {
private final Bot bot; private final Bot bot;
public Song (String originalName, Bot bot, String songName, String songAuthor, String songOriginalAuthor, String songDescription, boolean nbs) { public Song (String originalName, Bot bot, String songName, String songAuthor, String songOriginalAuthor, String songDescription, boolean nbs) {
String name = ""; String name;
// real ohio code // real ohio code
// TODO: clean this up // TODO: clean this up