Anon.y is a Discord bot built in TypeScript that allows users to send anonymous messages to Discord servers. This README file provides instructions on how to set up and run the bot, as well as an overview of the bot's features and architecture.
Invite Anon.y to your discord server now!
Anon.y provides the following features:
- Allow users to send anonymous messages to any server the bot is added to
Upcoming features:
- The bot automatically deletes messages after a set period of time to ensure privacy
- The bot uses unique message IDs to ensure that users can only delete their own messages
- The bot uses a custom command prefix that can be easily changed
- The bot supports multiple languages
Just like any other bot, Anon.y needs some basic discord permissions to function properly:
- Read Messages/View Channels
- Read Message History
- Send Messages
- Send Messages in Threads
- Use Slash Commands
- Create Public Threads
- Create Private Threads
- applications.commands
To install and set up Anon.y, follow these steps:
-
Clone the repository from GitHub
-
Install dependencies by running
npm install -
Create a
.envfile with the following environment variables:DISCORD_SECRET_TOKEN=<your Discord bot token> BOT_PREFIX=!anonDISCORD_SECRET_TOKENis the token for your Discord bot. You can obtain this token from the Discord Developer Portal.BOT_PREFIXis the command prefix for the bot. This can be changed to any prefix of your choosing.
-
Start the bot by running
npm run dev
To use Anon.y, users can send messages in the following format:
/anon <message>
messageis the message that the user wishes to send anonymously
For example:
/anon This is an anonymous message.
The bot will send the message to the specified channel, and the bot will notify the user that the message was sent
Finding the slash command
Sending the slash command
Bot is computing the response
Bot has successfully sent the message anonymously

To delete an anonymous message that you have sent, use the following command:
/anondelete <message ID>
message IDis the unique ID assigned to the anonymous message when it was sent
For example:
/anondelete 123123123123
Anon.y is built using the following technologies:
- TypeScript for code organization and type safety
- Discord.js library for interacting with the Discord API
- dotenv library for loading environment variables from a
.envfile
The bot follows a simple architecture where messages are sent to Discord channels by calling the discord.js API, and anonymous messages are not currently stored on a database. In the near future, the bot will use unique message IDs to allow users to delete their own messages, and messages are automatically deleted after a set period of time to ensure privacy.
If you wish to contribute to Anon.y, feel free to fork the repository and submit a pull request. All contributions are welcome!
This project is licensed under the MIT License - see the LICENSE file for details.