+ 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
+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));