JaJS Bot (Just another JavaScript Bot) is a simple and modular Discord bot developed in JavaScript.
Before starting, make sure you have Node.js and npm installed on your machine.
Make sure you have the following requirements before configuring the bot:
- Node.js version 22 or higher
- npm (comes with Node.js)
-
Clone this repository:
git clone https://github.com/your-username/JaJS-Bot.git // ~~ -------------------- or -------------------- ~~ \\ git clone git@github.com:your-username/JaJS-Bot.git cd JaJS-Bot
-
Run the installation script:
./install.sh
This script will automatically install the necessary dependencies.
After installation, configure your bot by filling in the config.json and settings.json files with your Discord token and other required settings.
In the Discord Developer Portal, navigate to the OAuth2 section of your bot. Under OAuth2 > URL Generator, make sure to check the following scopes:
identifyguildsguilds.members.readbotapplications.commands
And the following permissions :
View Audit LogManage RolesKick MembersBan MembersView ChannelsModerate MembersSend MessagesSend Messages in ThreadsManage MessagesEmbed LinksAttach FilesRead Message HistoryMention EveryoneUse Slash Commands
These are required to generate the correct invitation link for your bot. Copy the generated URL and use it to invite the bot to your server.
By default, staff commands to be visible require the Manage Nicknames permission (PermissionFlagsBits.ManageNicknames) but to use it you will also need the indicated role in the settings file (ban/kick = MODERATION_ROLE | holiday/clear/timeout = STAFF_ROLE). If you prefer to use a different permission, you can modify the required permission in the code.
To start the bot, use the following command:
npm startContributions are welcome! Feel free to suggest improvements via issues or pull requests.
This project is licensed under the MIT License.