yeet touka

This commit is contained in:
nora 2022-09-05 18:51:30 +02:00
parent 6912d71f24
commit de0a891ef9
2 changed files with 0 additions and 34 deletions

View file

@ -1,32 +0,0 @@
package com.github.nilstrieb.commands.info;
import com.github.nilstrieb.cofig.Config;
import com.github.nilstrieb.core.command.Command;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.entities.User;
public class ToukaCommand extends Command {
private static final String TOUKA_INVITE =
"(https://discord.com/oauth2/authorize?client_id=783720725848129566&permissions=8192&scope=bot)";
public ToukaCommand() {
super("touka", "Get the invite link for the Touka bot");
}
@Override
public void called(String args) {
User yuki = event.getJDA().retrieveUserById(Config.YUKI_ID).complete();
User touka = event.getJDA().retrieveUserById(783720725848129566L).complete();
EmbedBuilder builder = Config.getDefaultEmbed()
.setTitle("Invite the Touka bot")
.setFooter("The Touka bot was made by " + yuki.getAsTag(), yuki.getAvatarUrl())
.setThumbnail(touka.getAvatarUrl())
.addField("Invite link", "[Invite]" + TOUKA_INVITE, false);
reply(builder.build());
}
}

View file

@ -6,7 +6,6 @@ import com.github.nilstrieb.commands.fun.trivia.TriviaCommand;
import com.github.nilstrieb.commands.info.EvalCommand; import com.github.nilstrieb.commands.info.EvalCommand;
import com.github.nilstrieb.commands.info.HelpCommand; import com.github.nilstrieb.commands.info.HelpCommand;
import com.github.nilstrieb.commands.info.InviteCommand; import com.github.nilstrieb.commands.info.InviteCommand;
import com.github.nilstrieb.commands.info.ToukaCommand;
import com.github.nilstrieb.commands.util.EmoteAddCommand; import com.github.nilstrieb.commands.util.EmoteAddCommand;
import com.github.nilstrieb.core.command.CommandListener; import com.github.nilstrieb.core.command.CommandListener;
import com.github.nilstrieb.core.reactions.ReactionEventListener; import com.github.nilstrieb.core.reactions.ReactionEventListener;
@ -83,7 +82,6 @@ public class Main {
private static void setupCommands() { private static void setupCommands() {
new HelpCommand(); new HelpCommand();
new EvalCommand(); new EvalCommand();
new ToukaCommand();
new SayCommand(); new SayCommand();
new InviteCommand(); new InviteCommand();
new QuoteCommand(); new QuoteCommand();