diff --git a/src/main/java/tech/nevets/constelliabot/commands/CommandManager.java b/src/main/java/tech/nevets/constelliabot/commands/CommandManager.java index f292492..2a7565f 100644 --- a/src/main/java/tech/nevets/constelliabot/commands/CommandManager.java +++ b/src/main/java/tech/nevets/constelliabot/commands/CommandManager.java @@ -12,10 +12,7 @@ import tech.nevets.constelliabot.commands.pictures.CatCmd; import tech.nevets.constelliabot.commands.pictures.DogCmd; import tech.nevets.constelliabot.commands.pictures.FoxCmd; import tech.nevets.constelliabot.commands.pictures.PandaCmd; -import tech.nevets.constelliabot.commands.strings.GoodMorningCmd; -import tech.nevets.constelliabot.commands.strings.EbieKonRenCmd; -import tech.nevets.constelliabot.commands.strings.JangoTheSovietCmd; -import tech.nevets.constelliabot.commands.strings.BlueSpruceCmd; +import tech.nevets.constelliabot.commands.strings.*; import javax.annotation.Nullable; import java.util.ArrayList; @@ -42,6 +39,7 @@ public class CommandManager { //addCommand(new JoinCmd()); addCommand(new PandaCmd()); addCommand(new PingCmd()); + addCommand(new SpooktoberCmd()); } private void addCommand(ICommand cmd) { diff --git a/src/main/java/tech/nevets/constelliabot/commands/strings/SpooktoberCmd.java b/src/main/java/tech/nevets/constelliabot/commands/strings/SpooktoberCmd.java new file mode 100644 index 0000000..a0bd292 --- /dev/null +++ b/src/main/java/tech/nevets/constelliabot/commands/strings/SpooktoberCmd.java @@ -0,0 +1,31 @@ +package tech.nevets.constelliabot.commands.strings; + +import tech.nevets.constelliabot.Bot; +import tech.nevets.constelliabot.commands.CommandContext; +import tech.nevets.constelliabot.commands.ICommand; + +import java.util.List; + +public class SpooktoberCmd implements ICommand { + @Override + public void handle(CommandContext ctx) { + ctx.getChannel().sendTyping().queue(); + ctx.getChannel().sendMessage("Happy Spooktober!").queue(); + } + + @Override + public String getName() { + return "spooktober"; + } + + @Override + public String getHelp() { + return "Sends a good morning message\n" + + "Usage: `" + Bot.prefix + "spooktober`"; + } + + @Override + public List getAliases() { + return List.of("spook", "spooky", "october"); + } +}