Update Gachabot to only announce on net gains of cards.

master
sigonasr2 6 years ago
parent 5493ba3ceb
commit 1063e1f25a
  1. BIN
      BandoriBot/BandoriBot.jar
  2. 2
      BandoriBot/src/sig/GachaBot.java

Binary file not shown.

@ -389,7 +389,7 @@ public class GachaBot {
oldcardcount = cardcount;
}
}
if (cardcount != oldcardcount) {
if (cardcount != oldcardcount && cardcount>oldcardcount) {
int newCards = (cardcount-oldcardcount);
BandoriBot.bot.getTextChannelById(509845287284768801l).sendMessage("**"+newCards+" new cards are now available! Good Luck!** ("+(Card.star2total+Card.star3total+Card.star4total)+" total)").queue();
String[] newdata = new String[]{Integer.toString(cardcount)};

Loading…
Cancel
Save