A Discord bot that uses context menus to rewrite messages with the Undetectable AI API.
-
Click the above button
-
Edit the
keys.env
file:
BOT_TOKEN
: Your Discord bot tokenCLIENT_ID
: Your Discord bot's client ID
Guide to obtain these here: https://www.writebots.com/discord-bot-token/ You need the bot and applications.commands scopes.
GUILD_ID
: Your server's guild ID
Turn on Discord developer mode, right click the server you added it to and "Copy Server ID"
UNDETECTABLE_API_KEY
: Your Undetectable AI API key
Create an Undectable.AI Account and paste your API key here.
- Run the bot by clicking "Run" at the top.
If you want your bot to be always on, click the name in the top left and turn on always on.
- Clone the repository:
git clone https://github.com/Maclean-D/UndetectableAIDiscord.git
- Install the required dependencies:
cd UndetectableAIDiscord
npm install
You need Node.js version 14 or higher
- Configure the
keys.env
file:
BOT_TOKEN
: Your Discord bot tokenCLIENT_ID
: Your Discord bot's client ID
Guide to obtain these here: https://www.writebots.com/discord-bot-token/ You need the bot and applications.commands scopes.
GUILD_ID
: Your server's guild ID
Turn on Discord developer mode, right click the server you added it to and "Copy Server ID"
UNDETECTABLE_API_KEY
: Your Undetectable AI API key
Create an Undectable.AI Account and paste your API key here.
- Run the bot:
node index.js
Or run the bot using screen:
screen -S screen_name node index.js
The bot should now be running, and you can use the context menu commands to rewrite messages with the Undetectable AI API.
To use the bot, right-click on a message in your Discord server>Apps> and choose one of the following:
- Humanize General Writing: Rewrites the message using high school readability and general writing purpose.
- Humanize Essay: Rewrites the message using university readability and essay purpose.
- Humanise Story: Rewrites the message using university readability and story purpose.
The bot will process the selected message using the Undetectable AI API and send the rewritten text as a reply.
Remember that you need to have sufficient word balance in your Undetectable AI account for the bot to process the text. If you encounter any issues or errors, check the bot's console output for more information.
Purchases made through some links may provide some compensation to Maclean Dunkin.