Skip to content

Commit

Permalink
Added Interaction Commands
Browse files Browse the repository at this point in the history
  • Loading branch information
beanbeanjuice committed Jul 2, 2024
1 parent b03e10d commit 663dfa3
Show file tree
Hide file tree
Showing 37 changed files with 2,830 additions and 8 deletions.
41 changes: 36 additions & 5 deletions src/main/java/com/beanbeanjuice/cafebot/CafeBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
import com.beanbeanjuice.cafebot.commands.games.game.GameCommand;
import com.beanbeanjuice.cafebot.commands.generic.PingCommand;
import com.beanbeanjuice.cafebot.commands.generic.*;
import com.beanbeanjuice.cafebot.commands.interaction.AmazedCommand;
import com.beanbeanjuice.cafebot.commands.interaction.AskCommand;
import com.beanbeanjuice.cafebot.commands.interaction.BiteCommand;
import com.beanbeanjuice.cafebot.commands.interaction.BlushCommand;
import com.beanbeanjuice.cafebot.commands.interaction.*;
import com.beanbeanjuice.cafebot.commands.social.MemberCountCommand;
import com.beanbeanjuice.cafebot.commands.social.vent.VentCommand;
import com.beanbeanjuice.cafebot.utility.commands.CommandHandler;
Expand Down Expand Up @@ -195,7 +192,41 @@ private void setupCommands() {
new AmazedCommand(this),
new AskCommand(this),
new BiteCommand(this),
new BlushCommand(this)
new BlushCommand(this),
new BonkCommand(this),
new BoopCommand(this),
new CryCommand(this),
new CuddleCommand(this),
new DabCommand(this),
new DanceCommand(this),
new DieCommand(this),
new GreetCommand(this),
new HeadPatCommand(this),
new HmphCommand(this),
new HugCommand(this),
new KissCommand(this),
new LickCommand(this),
new LoveCommand(this),
new NomCommand(this),
new NoseBleedCommand(this),
new OkCommand(this),
new PokeCommand(this),
new PoutCommand(this),
new PunchCommand(this),
new RageCommand(this),
new ShootCommand(this),
new ShushCommand(this),
new SlapCommand(this),
new SleepCommand(this),
new SmileCommand(this),
new StabCommand(this),
new StareCommand(this),
new ThrowCommand(this),
new TickleCommand(this),
new UWUCommand(this),
new WaveCommand(this),
new WinkCommand(this),
new YellCommand(this)

// new EmbedCommand(this)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ public String getBotString() {
public String getFooterString() {
return "%s was amazed %d times. %s caused others to be amazed %d times.";
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
package com.beanbeanjuice.cafebot.commands.interaction;

import com.beanbeanjuice.cafeapi.wrapper.endpoints.interactions.InteractionType;
import com.beanbeanjuice.cafebot.CafeBot;
import com.beanbeanjuice.cafebot.utility.commands.Command;
import com.beanbeanjuice.cafebot.utility.commands.ICommand;
import com.beanbeanjuice.cafebot.utility.sections.interactions.ICommandInteraction;
import net.dv8tion.jda.api.Permission;
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;
import net.dv8tion.jda.api.interactions.commands.OptionType;
import net.dv8tion.jda.api.interactions.commands.build.OptionData;

public class BonkCommand extends Command implements ICommand, ICommandInteraction {

public BonkCommand(final CafeBot cafeBot) {
super(cafeBot);
}

@Override
public void handle(SlashCommandInteractionEvent event) {
this.handleInteraction(InteractionType.BONK, event, cafeBot);
}

@Override
public String getName() {
return "bonk";
}

@Override
public String getDescription() {
return "Bonk someone!";
}

@Override
public OptionData[] getOptions() {
return new OptionData[] {
new OptionData(OptionType.USER, "user", "The person you want to bonk!"),
new OptionData(OptionType.STRING, "message", "An optional message to send!")
};
}

@Override
public Permission[] getPermissions() {
return new Permission[0];
}

@Override
public boolean isEphemeral() {
return false;
}

@Override
public boolean isNSFW() {
return false;
}

@Override
public boolean allowDM() {
return true;
}

@Override
public String getSelfString() {
return "%s just... **bonked** themself. <:disgusted:1257142116539301909>";
}

@Override
public String getOtherString() {
return "%s just **bonked** %s?! <:gasp:1257142832230170674>";
}

@Override
public String getBotString() {
return "Ow! Th- that.. that hurt! <:cafeBot_sad:1171726165040447518>";
}

@Override
public String getFooterString() {
return "%s bonked others %d times. %s was bonked %d times.";
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
package com.beanbeanjuice.cafebot.commands.interaction;

import com.beanbeanjuice.cafeapi.wrapper.endpoints.interactions.InteractionType;
import com.beanbeanjuice.cafebot.CafeBot;
import com.beanbeanjuice.cafebot.utility.commands.Command;
import com.beanbeanjuice.cafebot.utility.commands.ICommand;
import com.beanbeanjuice.cafebot.utility.sections.interactions.ICommandInteraction;
import net.dv8tion.jda.api.Permission;
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;
import net.dv8tion.jda.api.interactions.commands.OptionType;
import net.dv8tion.jda.api.interactions.commands.build.OptionData;

public class BoopCommand extends Command implements ICommand, ICommandInteraction {

public BoopCommand(final CafeBot cafeBot) {
super(cafeBot);
}

@Override
public void handle(SlashCommandInteractionEvent event) {
this.handleInteraction(InteractionType.BOOP, event, cafeBot);
}

@Override
public String getName() {
return "boop";
}

@Override
public String getDescription() {
return "Boop someone!";
}

@Override
public OptionData[] getOptions() {
return new OptionData[] {
new OptionData(OptionType.USER, "user", "The person you want to boop! :3"),
new OptionData(OptionType.STRING, "message", "An optional message you want to send.")
};
}

@Override
public Permission[] getPermissions() {
return new Permission[0];
}

@Override
public boolean isEphemeral() {
return false;
}

@Override
public boolean isNSFW() {
return false;
}

@Override
public boolean allowDM() {
return true;
}

@Override
public String getSelfString() {
return "%s just **booped** themself... 😭";
}

@Override
public String getOtherString() {
return "%s just **booped** %s! Awww~ <:aww:1257143681878593727>";
}

@Override
public String getBotString() {
return "hehe~ what do you need? <:pleading_blush:1257143682776432731>";
}

@Override
public String getFooterString() {
return "%s booped others %d times. %s was booped %d times.";
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
package com.beanbeanjuice.cafebot.commands.interaction;

import com.beanbeanjuice.cafeapi.wrapper.endpoints.interactions.InteractionType;
import com.beanbeanjuice.cafebot.CafeBot;
import com.beanbeanjuice.cafebot.utility.commands.Command;
import com.beanbeanjuice.cafebot.utility.commands.ICommand;
import com.beanbeanjuice.cafebot.utility.sections.interactions.ICommandInteraction;
import net.dv8tion.jda.api.Permission;
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;
import net.dv8tion.jda.api.interactions.commands.OptionType;
import net.dv8tion.jda.api.interactions.commands.build.OptionData;

public class CryCommand extends Command implements ICommand, ICommandInteraction {

public CryCommand(final CafeBot cafeBot) {
super(cafeBot);
}

@Override
public void handle(SlashCommandInteractionEvent event) {
this.handleInteraction(InteractionType.CRY, event, cafeBot);
}

@Override
public String getName() {
return "cry";
}

@Override
public String getDescription() {
return "Cry because of someone... :(";
}

@Override
public OptionData[] getOptions() {
return new OptionData[] {
new OptionData(OptionType.USER, "user", "The user who made you cry... :("),
new OptionData(OptionType.STRING, "message", "An optional message to send.")
};
}

@Override
public Permission[] getPermissions() {
return new Permission[0];
}

@Override
public boolean isEphemeral() {
return false;
}

@Override
public boolean isNSFW() {
return false;
}

@Override
public boolean allowDM() {
return true;
}

@Override
public String getSelfString() {
return "%s is **crying**! S- someone get a tissue! 😓";
}

@Override
public String getOtherString() {
return "%s is **crying** because of %s! What did you do?! <:cafeBot_angry:1171726164092518441>";
}

@Override
public String getBotString() {
return "D- did I do something wrong?! Don't cry please... <a:b_cry:1178932384436060220>";
}

@Override
public String getFooterString() {
return "%s cried because of others %d times. %s was the reason for others crying %d times.";
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
package com.beanbeanjuice.cafebot.commands.interaction;

import com.beanbeanjuice.cafeapi.wrapper.endpoints.interactions.InteractionType;
import com.beanbeanjuice.cafebot.CafeBot;
import com.beanbeanjuice.cafebot.utility.commands.Command;
import com.beanbeanjuice.cafebot.utility.commands.ICommand;
import com.beanbeanjuice.cafebot.utility.sections.interactions.ICommandInteraction;
import net.dv8tion.jda.api.Permission;
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;
import net.dv8tion.jda.api.interactions.commands.OptionType;
import net.dv8tion.jda.api.interactions.commands.build.OptionData;

public class CuddleCommand extends Command implements ICommand, ICommandInteraction {

public CuddleCommand(final CafeBot cafeBot) {
super(cafeBot);
}

@Override
public void handle(SlashCommandInteractionEvent event) {
this.handleInteraction(InteractionType.CUDDLE, event, cafeBot);
}

@Override
public String getName() {
return "cuddle";
}

@Override
public String getDescription() {
return "Cuddle someone!";
}

@Override
public OptionData[] getOptions() {
return new OptionData[] {
new OptionData(OptionType.USER, "user", "The user you want to cuddle!~"),
new OptionData(OptionType.STRING, "message", "An optional message you want to send")
};
}

@Override
public Permission[] getPermissions() {
return new Permission[0];
}

@Override
public boolean isEphemeral() {
return false;
}

@Override
public boolean isNSFW() {
return false;
}

@Override
public boolean allowDM() {
return true;
}

@Override
public String getSelfString() {
return "%s is **cuddling** themself... um.. that's sad... <:you_are_embarassing:1081417389532528660>";
}

@Override
public String getOtherString() {
return "%s is **cuddling** %s~ Awww <a:aww_dance:1257143681044054066>";
}

@Override
public String getBotString() {
return "Ugh. Only a few people are allowed to touch me and you're not one of them. Don't touch me. <:disgusted:1257142116539301909>";
}

@Override
public String getFooterString() {
return "%s cuddled others %d times. %s was cuddled %d times.";
}

}
Loading

0 comments on commit 663dfa3

Please sign in to comment.