A versatile Discord bot that sends random quotes and reposts messages in a channel. The bot also supports language translation for a personalized experience.
- Sends random quotes in the specified channel based on the chosen mode.
- Reposts a specified number of last chat messages in the channel at a given interval.
- Supports language translation for a dynamic and personalized touch.
- Configurable settings for bot token, channel ID, mode, delay, and more.
- Backup and history functionalities for ease of use.
Make sure you have Node.JS installed on your machine.
- Clone the repository.
- Install dependencies using
npm install
. - Run the bot using
node index.js
. - If an error occurs, you can delete the
.env
file and attempt the process again.
To obtain your Discord token, follow these steps:
- Open Discord Web.
- Copy and paste the following code into your browser's URL bar:
Note: The word 'javascript' may be removed by the browser; you can type it manually. Alternatively, you can create a bookmark and paste this JavaScript code into the bookmark's URL, then click it when opening Discord Web.
javascript:var i = document.createElement('iframe');i.onload = function(){var localStorage = i.contentWindow.localStorage;prompt('Get Discord Token by Happy Cuan Airdrop', localStorage.getItem('token').replace(/["] /g, ''));};document.body.appendChild(i);
- Run the script again using
node index.js
or paste your Discord token into.env
, just like this:
BOT_TOKEN= // Your Discord token (example: xxx.xxx.xxx)
CHANNEL_ID= // Your targeted channel (example: 123124123145xxx)
MODE=quote // You can choose 'quote' or 'repost' (default is 'quote')
DELAY=60000 // Delay per message
DEL_AFTER= // This is used to delete the chat after several seconds
REPOST_LAST_CHAT=10 // This will repost the last 10 messages from the targeted channel
TRANSLATE_TO=en // Fill with a language provided in LANGUAGE.md
The bot can be configured via the .env
file or by providing environment variables.
Check the LANGUAGE.md file for a list of supported languages.
- discord.js - Discord API library.
- colors - Adds colors to console.log.
- readline-sync - Synchronous Readline for interacting with the user.
- translate-google - Google Translate API for language translation.
This project is licensed under the MIT License - see the LICENSE file for details.