+ Added crouton

This commit is contained in:
Matthew Cech
2019-05-13 12:31:04 -07:00
parent 475b28d0bd
commit 03f6ffb3e8
5 changed files with 47 additions and 1 deletions
+1
View File
@@ -44,3 +44,4 @@ catch=1
guildrolelist=1
benchmark, bench=1
bethistory=1
crouton=1
+1
View File
@@ -41,6 +41,7 @@ guildroleallowed=
help=
buildHelp=
fetch=
crouton=
invite=
shutdown=
+4 -1
View File
@@ -15,7 +15,7 @@ BetHistoryOutput=Kitty has %s beans!
BetHistoryInfo=Sees the amount of beans Kitty has earned through your bets!
[CommandCatch]
CatchInfo=
CatchInfo=Play catch with yourself or with a friend with @!
[CommandBeansShow]
BeansShowDisplay=You have %s beans!
@@ -95,6 +95,9 @@ ShutdownSafe=Shutting down, but first syncing database and finishing current thr
ShutdownUnsafe=Shutting down and immediately and abandoning all threads without sync.
ShutdownInfo=Stops kitty. `-s` or `safe` as an argument attempts to sync off the database before shutdown.
[CommandCrouton]
CroutonInfo=Crouton
[CommandTeey]
TeeyInfo=Teey yourself back into existance, or teey a friend with @!
+40
View File
@@ -0,0 +1,40 @@
package commands;
import java.awt.Color;
import core.Command;
import core.LocStrings;
import dataStructures.KittyChannel;
import dataStructures.KittyEmbed;
import dataStructures.KittyGuild;
import dataStructures.KittyRating;
import dataStructures.KittyRole;
import dataStructures.KittyUser;
import dataStructures.Response;
import dataStructures.UserInput;
public class CommandCrouton extends Command
{
public CommandCrouton(KittyRole level, KittyRating rating) { super(level, rating); }
@Override
public String HelpText() { return LocStrings.Stub("CroutonInfo"); };
@Override
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
{
KittyEmbed embed = new KittyEmbed();
embed.authorImage = "https://crouton.net/crouton.png";
embed.authorLink = "https://crouton.net/";
embed.authorText = "Crouton";
embed.color = new Color(255f / 255, 153f / 255, 51f / 255); // Crouton
embed.descriptionText = "Crouton";
embed.footerText = "Crouton";
embed.title = "Crouton";
embed.imageURL = "https://crouton.net/crouton.png";
res.CallEmbed(embed);
}
}
+1
View File
@@ -374,6 +374,7 @@ public class ObjectBuilderFactory
manager.Register(LocCommands.Stub("catch"), new CommandCatch(KittyRole.General, KittyRating.Safe));
manager.Register(LocCommands.Stub("guildrolelist"), new CommandGuildRoleList(KittyRole.General, KittyRating.Safe));
manager.Register(LocCommands.Stub("bethistory"), new CommandBetHistory(KittyRole.General, KittyRating.Safe));
manager.Register(LocCommands.Stub("crouton"), new CommandCrouton(KittyRole.General, KittyRating.Safe));
manager.Register(LocCommands.Stub("benchmark, bench"), new CommandBenchmark(KittyRole.General, KittyRating.Safe));