A Discord bot that handles modmail and anonymous messaging functionality.
- DM to Modmail: Automatically creates channels for users who DM the bot
- Anonymous Messaging: Allows users to send anonymous messages via slash command
- Persistent Threads: Maintains conversation history in dedicated channels
- Staff Responses: Staff can respond to modmail messages directly
-
Clone the repository
-
Install dependencies:
npm install
-
Copy
.env.example
to.env
and fill in your configuration:cp .env.example .env
-
Configure your
.env
file with:DISCORD_TOKEN
: Your bot's tokenCLIENT_ID
: Your bot's client IDGUILD_ID
: The ID of your serverMODMAIL_CATEGORY_ID
: The ID of the category where modmail channels will be createdANONYMOUS_CHANNEL_ID
: The ID of the channel where anonymous messages will be sentLOG_CHANNEL_ID
(optional): The ID of a channel for logging
-
Register slash commands:
npm run build node dist/commands.js
-
Start the bot:
npm start
- Build the project:
npm run build
- Run in development mode:
npm run dev
- Watch for changes:
npm run watch
/anonymous <message>
- Send an anonymous message to the designated channel
- Node.js 16.9.0 or higher
- Discord.js v14
- TypeScript