+ Added crouton
This commit is contained in:
@@ -44,3 +44,4 @@ catch=1
|
|||||||
guildrolelist=1
|
guildrolelist=1
|
||||||
benchmark, bench=1
|
benchmark, bench=1
|
||||||
bethistory=1
|
bethistory=1
|
||||||
|
crouton=1
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ guildroleallowed=
|
|||||||
help=
|
help=
|
||||||
buildHelp=
|
buildHelp=
|
||||||
fetch=
|
fetch=
|
||||||
|
crouton=
|
||||||
invite=
|
invite=
|
||||||
shutdown=
|
shutdown=
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -15,7 +15,7 @@ BetHistoryOutput=Kitty has %s beans!
|
|||||||
BetHistoryInfo=Sees the amount of beans Kitty has earned through your bets!
|
BetHistoryInfo=Sees the amount of beans Kitty has earned through your bets!
|
||||||
|
|
||||||
[CommandCatch]
|
[CommandCatch]
|
||||||
CatchInfo=
|
CatchInfo=Play catch with yourself or with a friend with @!
|
||||||
|
|
||||||
[CommandBeansShow]
|
[CommandBeansShow]
|
||||||
BeansShowDisplay=You have %s beans!
|
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.
|
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.
|
ShutdownInfo=Stops kitty. `-s` or `safe` as an argument attempts to sync off the database before shutdown.
|
||||||
|
|
||||||
|
[CommandCrouton]
|
||||||
|
CroutonInfo=Crouton
|
||||||
|
|
||||||
[CommandTeey]
|
[CommandTeey]
|
||||||
TeeyInfo=Teey yourself back into existance, or teey a friend with @!
|
TeeyInfo=Teey yourself back into existance, or teey a friend with @!
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -374,6 +374,7 @@ public class ObjectBuilderFactory
|
|||||||
manager.Register(LocCommands.Stub("catch"), new CommandCatch(KittyRole.General, KittyRating.Safe));
|
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("guildrolelist"), new CommandGuildRoleList(KittyRole.General, KittyRating.Safe));
|
||||||
manager.Register(LocCommands.Stub("bethistory"), new CommandBetHistory(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));
|
manager.Register(LocCommands.Stub("benchmark, bench"), new CommandBenchmark(KittyRole.General, KittyRating.Safe));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user