From 6ddb0fc532aaee0b1dc2a161cf098225837a39da Mon Sep 17 00:00:00 2001 From: Alex Stewart Date: Tue, 29 Sep 2020 02:42:01 -0400 Subject: [PATCH] =Update for Beans Fixes and updates for beans --- src/commands/general/CommandBeansShow.java | 2 +- src/commands/general/CommandBetBeans.java | 3 +- src/commands/guildrole/CommandWipeRoles.java | 35 -------------------- 3 files changed, 3 insertions(+), 37 deletions(-) delete mode 100644 src/commands/guildrole/CommandWipeRoles.java diff --git a/src/commands/general/CommandBeansShow.java b/src/commands/general/CommandBeansShow.java index 36c7b82..7cbd40b 100644 --- a/src/commands/general/CommandBeansShow.java +++ b/src/commands/general/CommandBeansShow.java @@ -33,7 +33,7 @@ public class CommandBeansShow extends Command { if(input.mentions == null) { - res.send("" + user.getBeans()); + //res.send("" + user.getBeans()); try { res.sendFile(combineImages(user.getBeans()), "png"); } catch (IOException e) { diff --git a/src/commands/general/CommandBetBeans.java b/src/commands/general/CommandBetBeans.java index 29b65ad..daafec0 100644 --- a/src/commands/general/CommandBetBeans.java +++ b/src/commands/general/CommandBetBeans.java @@ -36,7 +36,8 @@ public class CommandBetBeans extends Command } catch (Exception e) { - GlobalLog.log(LogFilter.Command, "Betting took place, but a value was not specified in the config file so 50 was used as the minimum bet threshold. Consider specifying BetBeansMinThreshold."); + GlobalLog.log(LogFilter.Command, "Betting took place, but a value was not specified in the config file " + + "so 50 was used as the minimum bet threshold. Consider specifying BetBeansMinThreshold."); } try diff --git a/src/commands/guildrole/CommandWipeRoles.java b/src/commands/guildrole/CommandWipeRoles.java deleted file mode 100644 index 0e27586..0000000 --- a/src/commands/guildrole/CommandWipeRoles.java +++ /dev/null @@ -1,35 +0,0 @@ -package commands.guildrole; - -import java.util.ArrayList; - -import core.Command; -import core.ObjectBuilderFactory; -import dataStructures.KittyChannel; -import dataStructures.KittyGuild; -import dataStructures.KittyRating; -import dataStructures.KittyRole; -import dataStructures.KittyUser; -import dataStructures.Response; -import dataStructures.UserInput; -import net.dv8tion.jda.core.JDA; - -public class CommandWipeRoles extends Command -{ - - public CommandWipeRoles(KittyRole roleLevel, KittyRating contentRating) {super(roleLevel, contentRating); - // TODO Auto-generated constructor stub - } - - @Override - public void onRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res) - { - JDA kitty = res.getKitty(); - ArrayList guilds = (ArrayList) kitty.getGuilds(); - KittyGuild guildx; - - for(int i = 0; i < guilds.size(); i ++) - { - guildx = ObjectBuilderFactory.extractGuild - } - } -} \ No newline at end of file