add spooktober
This commit is contained in:
parent
58874b200d
commit
9e0d68172e
@ -12,10 +12,7 @@ import tech.nevets.constelliabot.commands.pictures.CatCmd;
|
|||||||
import tech.nevets.constelliabot.commands.pictures.DogCmd;
|
import tech.nevets.constelliabot.commands.pictures.DogCmd;
|
||||||
import tech.nevets.constelliabot.commands.pictures.FoxCmd;
|
import tech.nevets.constelliabot.commands.pictures.FoxCmd;
|
||||||
import tech.nevets.constelliabot.commands.pictures.PandaCmd;
|
import tech.nevets.constelliabot.commands.pictures.PandaCmd;
|
||||||
import tech.nevets.constelliabot.commands.strings.GoodMorningCmd;
|
import tech.nevets.constelliabot.commands.strings.*;
|
||||||
import tech.nevets.constelliabot.commands.strings.EbieKonRenCmd;
|
|
||||||
import tech.nevets.constelliabot.commands.strings.JangoTheSovietCmd;
|
|
||||||
import tech.nevets.constelliabot.commands.strings.BlueSpruceCmd;
|
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -42,6 +39,7 @@ public class CommandManager {
|
|||||||
//addCommand(new JoinCmd());
|
//addCommand(new JoinCmd());
|
||||||
addCommand(new PandaCmd());
|
addCommand(new PandaCmd());
|
||||||
addCommand(new PingCmd());
|
addCommand(new PingCmd());
|
||||||
|
addCommand(new SpooktoberCmd());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addCommand(ICommand cmd) {
|
private void addCommand(ICommand cmd) {
|
||||||
|
@ -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<String> getAliases() {
|
||||||
|
return List.of("spook", "spooky", "october");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user