-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7107ed
commit b76e88a
Showing
3 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
bot/src/main/java/com/beanbeanjuice/cafebot/commands/interaction/HideCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
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.CommandCategory; | ||
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 HideCommand extends Command implements ICommand, ICommandInteraction { | ||
|
||
public HideCommand(final CafeBot cafeBot) { | ||
super(cafeBot); | ||
} | ||
|
||
@Override | ||
public void handle(SlashCommandInteractionEvent event) { | ||
this.handleInteraction(InteractionType.HIDE, event, this.cafeBot); | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "hide"; | ||
} | ||
|
||
@Override | ||
public String getDescription() { | ||
return "Hide from someone... ;^;"; | ||
} | ||
|
||
@Override | ||
public CommandCategory getCategory() { | ||
return CommandCategory.INTERACTION; | ||
} | ||
|
||
@Override | ||
public OptionData[] getOptions() { | ||
return new OptionData[] { | ||
new OptionData(OptionType.USER, "user", "The user you want to hide from..."), | ||
new OptionData(OptionType.STRING, "message", "An optional message you can 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 **hiding** for... no reason? What? <:kuromi_question:841921649132568576>"; | ||
} | ||
|
||
@Override | ||
public String getOtherString() { | ||
return "%s is **hiding** from %s! Um... what did you do? <:kuromi_question:841921649132568576>"; | ||
} | ||
|
||
@Override | ||
public String getBotString() { | ||
return "Why are you hiding from me?! Come back! <:cafeBot_angry:1171726164092518441>"; | ||
} | ||
|
||
@Override | ||
public String getFooterString() { | ||
return "%s hid from others %d times. %s caused others to hide %d times."; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters