A simple discord bot writed in nodejs
WORKING IN 2023
NOTE: if you don't have nodejs installed in your pc, install it here
Go on a terminal and write :
git clone https://github.com/qsasha/qRose.git
cd qRose
or download by clicking on CODE at the top and then DOWNLOAD ZIP
npm install discord, restcreate a config.json file and write it until you get something like this:
NOTE: serverId is optional, use it only you don't want to register a certain command in all servers where the bot is present but only in certain servers
If u want to use the server id, u must add some things:
In slash.js, when you find:
const data = await rest.put(
Routes.applicationCommands(clientId),
{ body: commands },
);you have to add guildId :
const data = await rest.put(
Routes.applicationCommands(clientId, guildId),
{ body: commands },
);First, u have to setup package.json and package-lock.json
npm initPackage-lock.json appears when u download discord library
Then, u have to run start.js
node slash.js
It register the slash commands.
Now, for run the bot, just tipe
node index.jsThis is an old reps, so it may have problems.
Also, there aren't many commands, so you can create your own based on mine, by searching for a specific template on github or by contacting me.
You could also check out the discordjs support site if you want.
(if the bot isn't working check if all the intents are abilitated)
Discord : qs4sh
Discord Server : https://discord.gg/u4RJ36Vq33
Instagram : prpd3v



