mixxledyay

make my furry femboy discord bot with verification commands, etc

Kodari AI
KodariAug 1 at 3:31 am 1
FemboyFurGuard
FemboyFurGuard is a friendly Discord community bot for furry and femboy spaces. It provides one-click member verification, configurable verified-role assignment, administrator verification-panel publishing, role removal tools, permission checks, status reporting, help, rules, an about command, and a ping health check. The bot keeps its tone welcoming and non-explicit while making onboarding simple for new members and moderation controls clear for server staff.

Created FemboyFurGuard, a friendly Discord verification and community bot.

Included:

  • /verify command and one-click verification button

  • Configurable verified role assignment

  • /verification post, /verification status, and /verification remove

  • Permission checks for administrative commands

  • /help, /rules, /about, and /ping

  • Guild-specific command registration for development

  • Global command registration for production

  • Gradle Java 17 setup with JDA

  • Environment-based Discord token configuration

Set DISCORD_TOKEN and VERIFIED_ROLE_ID, then run:

Shell
gradle run
mixxledyay

make it look for the unverified role, and remove it, and the bot token is: <redacted>

Kodari AI
KodariAug 1 at 3:35 am 1
  1. Update verification to find the configured unverified role and remove it after assigning the verified role.

  2. Keep the bot token out of the project; revoke the exposed token and create a replacement before running the bot.

Updated verification so the bot now:

  • Finds the configured verified role.

  • Finds the configured unverified role.

  • Adds the verified role.

  • Removes the unverified role afterward.

  • Reports a clear error if either role is missing or unmanageable.

  • Shows both roles in /verification status.

Configure the unverified role ID in config.properties or through the environment:

Properties
verification.verified-role-id=YOUR_VERIFIED_ROLE_ID
verification.unverified-role-id=YOUR_UNVERIFIED_ROLE_ID

Or:

Shell
export DISCORD_TOKEN="YOUR_NEW_TOKEN"
export VERIFIED_ROLE_ID="YOUR_VERIFIED_ROLE_ID"
export UNVERIFIED_ROLE_ID="YOUR_UNVERIFIED_ROLE_ID"

The token you posted is exposed and must be revoked/regenerated immediately in the Discord Developer Portal. I did not save it in the project.

Kodari can make mistakes. Review important code before using.
Files
src
.gitignore
build.gradle
manifest.kod
settings.gradle
Code
9 600
src/main/java/com/kodari/femboybot/BotListener.java
package com.kodari.femboybot;

import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.Permission;
import net.dv8tion.jda.api.entities.Guild;
import net.dv8tion.jda.api.entities.Member;
import net.dv8tion.jda.api.entities.Role;
import net.dv8tion.jda.api.entities.channel.concrete.TextChannel;
import net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent;
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;
import net.dv8tion.jda.api.hooks.ListenerAdapter;
import net.dv8tion.jda.api.interactions.commands.build.CommandData;
import net.dv8tion.jda.api.interactions.commands.DefaultMemberPermissions;
import net.dv8tion.jda.api.interactions.commands.OptionType;
import net.dv8tion.jda.api.interactions.commands.build.Commands;
import net.dv8tion.jda.api.interactions.commands.build.OptionData;
import net.dv8tion.jda.api.interactions.commands.build.SubcommandData;
import net.dv8tion.jda.api.interactions.components.buttons.Button;
import net.dv8tion.jda.api.entities.channel.ChannelType;
import net.dv8tion.jda.api.EmbedBuilder;

import java.awt.Color;
import java.util.List;
import java.util.logging.Logger;

public final class BotListener extends ListenerAdapter {
    private static final String VERIFY_BUTTON_ID = "femboyfurguard:verify";
    private static final Color EMBED_COLOR = new Color(238, 143, 190);

    private final BotConfig config;
    private final VerificationService verificationService;
    private final Logger logger = Logger.getLogger(BotListener.class.getName());

    public BotListener(BotConfig config) {
        this.config = config;
        this.verificationService = new VerificationService(config);
    }

    public void registerCommands(JDA jda) {
        List<CommandData> commands = commandDefinitions();

        if (config.hasGuildId()) {
            Guild guild = jda.getGuildById(config.guildId());

            if (guild == null) {
                logger.warning("Configured guild was not found. Commands were not registered.");
                return;
            }

            guild.updateCommands()
                    .addCommands(commands)
                    .queue(ignored -> logger.info("Registered guild commands in " + guild.getName() + "."));
            return;
        }

        jda.updateCommands()
                .addCommands(commands)
                .queue(ignored -> logger.info("Registered global commands."));
    }

    @Override
    public void onSlashCommandInteraction(SlashCommandInteractionEvent event) {
        if ("ping".equals(event.getName())) {
            event.reply("Pong! FemboyFurGuard is online.").setEphemeral(true).queue();
            return;
        }

        if ("about".equals(event.getName())) {
            event.reply("FemboyFurGuard is a friendly verification and community helper bot for furry and femboy servers.")
                    .setEphemeral(true)
                    .queue();
            return;
        }

        if ("help".equals(event.getName())) {
            event.reply("""
                    **FemboyFurGuard commands**
                    `/verify` — receive the configured verified role
                    `/rules` — view the community rules
                    `/ping` — check bot health
                    `/about` — learn about the bot
                    `/verification post` — publish a verification panel
                    `/verification status` — inspect verification setup
                    `/verification remove` — remove verification from a member
                    """).setEphemeral(true).queue();
            return;
        }

        if ("rules".equals(event.getName())) {
            event.reply("""
                    **Community rules**
                    1. Be kind and respect names, pronouns, identities, and boundaries.
                    2. Keep content appropriate for this server and follow Discord's rules.
                    3. Do not harass, spam, dox, or share private information.
                    4. Ask staff if you are unsure whether something belongs in a channel.
                    """).setEphemeral(true).queue();
            return;
        }

        if ("verify".equals(event.getName())) {
            handleVerify(event);
            return;
        }

        if ("verification".equals(event.getName())) {
            handleVerificationAdminCommand(event);
        }
    }

    @Override
    public void onButtonInteraction(ButtonInteractionEvent event) {
        if (!VERIFY_BUTTON_ID.equals(event.getComponentId())) {
            return;
        }

        if (!event.isFromGuild() || event.getGuild() == null || event.getMember() == null) {
            event.reply("Verification is only available inside a server.").setEphemeral(true).queue();
            return;
        }

        verifyMember(event, event.getGuild(), event.getMember());
    }

    private void handleVerify(SlashCommandInteractionEvent event) {
        if (!event.isFromGuild() || event.getGuild() == null || event.getMember() == null) {
            event.reply("Use this command inside a server.").setEphemeral(true).queue();
            return;
        }

        verifyMember(event, event.getGuild(), event.getMember());
    }

    private void verifyMember(SlashCommandInteractionEvent event, Guild guild, Member member) {
        Role role = verificationService.findVerifiedRole(guild);
        Role unverifiedRole = verificationService.findUnverifiedRole(guild);

        if (role == null || unverifiedRole == null) {
            event.reply("Verification is not configured yet. Please contact a server staff member.")
                    .setEphemeral(true)
                    .queue();
            return;
        }

        if (hasRole(member, role)) {
            event.reply("You're already verified! Welcome to the community.").setEphemeral(true).queue();
            return;
        }

        if (!verificationService.canManageRole(guild, role) || !verificationService.canManageRole(guild, unverifiedRole)) {
            event.reply("I cannot manage the verification roles. Please move my bot role above both roles.")
                    .setEphemeral(true)
                    .queue();
            return;
        }

        event.deferReply(true).queue();
        verificationService.addVerifiedRole(guild, member, role, success -> {
            if (!success) {
                event.getHook().sendMessage("I couldn't assign the verified role. Please ask a moderator for help.").queue();
                return;
            }

            if (!hasRole(member, unverifiedRole)) {
                event.getHook().sendMessage("You're verified! Welcome to the community.").queue();
                return;
            }

            verificationService.removeVerifiedRole(guild, member, unverifiedRole, removed -> {
                if (removed) {
                    event.getHook().sendMessage("You're verified! Welcome to the community.").queue();
                } else {
                    event.getHook().sendMessage("You're verified, but I couldn't remove the unverified role. Please ask a moderator for help.").queue();
                }
            });
        });
    }

    private void verifyMember(ButtonInteractionEvent event, Guild guild, Member member) {
        Role role = verificationService.findVerifiedRole(guild);
        Role unverifiedRole = verificationService.findUnverifiedRole(guild);

        if (role == null || unverifiedRole == null) {
            event.reply("Verification is not configured yet. Please contact a server staff member.")
                    .setEphemeral(true)
                    .queue();
            return;
        }

        if (hasRole(member, role)) {
            event.reply("You're already verified! Welcome to the community.").setEphemeral(true).queue();
            return;
        }

        if (!verificationService.canManageRole(guild, role) || !verificationService.canManageRole(guild, unverifiedRole)) {
            event.reply("I cannot manage the verification roles. Please move my bot role above both roles.")
                    .setEphemeral(true)
                    .queue();
            return;
        }