Skip to content

qsasha/qRose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qRose

A simple discord bot writed in nodejs

WORKING IN 2023

Authors

Installation

Install Nodejs

nodejs

NOTE: if you don't have nodejs installed in your pc, install it here

Download folder

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

Download packages

  npm install discord, rest

Configuration

create a config.json file and write it until you get something like this:

config

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

Server id Config

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 },
);

Usage/Examples

First, u have to setup package.json and package-lock.json

npm init

Package-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.js

Notes

This 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)

Support

Discord : qs4sh

Discord Server : https://discord.gg/u4RJ36Vq33

Instagram : prpd3v

About

discord bot

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors