This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Home
khanhfg edited this page Jul 28, 2023
·
2 revisions
Magpie have weird hidden feature this is where they are recorded and document
If you know how to set up a discord bot with discord.js already, then download all the package with npm setup
, then created a config.json
with these information:
{
"clientId": "Your Client ID here",
"token": "Your Bot Token here",
}
And running npm start
should start the bot
If you don't know how to setup a discord bot follow these step:
- Download Node
- Go to the Discord Developer Portal
- Click on
New Application
in the top right. Give the Application a name (This is not the name of your bot but it recommend to make it the same or similar name as your bot), accept the TOS and create it. - Click on the
Bot
menu and chooseAdd Bot
, you can change the name of the bot if you want here. - Click the
Copy
button belowToken
. - Click on the
OAuth2
menu and chooseURL Generator
choosebot
andapplication.commands
option. - In the
Bot Permission
section and chooseAdministrator
(If you want a more specific list of permission go to). Now you can clickCopy
at the very bottom to get the bot.invite link. You must invite the bot to a server for future steps. - Now download this repository, unzip the folder if it a zip file.
- Make a
config.json
file, in there type the following:
{
"clientId": "Your Client ID here",
"token": "Your Bot Token here",
}
- You can put the token that you copy and replace the text
Your Bot Token here
- Go into your discord client
Setting
>Advance
and turn onDeveloper Mode
- You can now copy the bot client ID by right clicking and select
Copy ID
. You can replace the textYour Client ID here
inconfig.json
with this ID. Save the file if you haven't already. - Right click and choose
Open in Terminal
option or go to the path text box and type incmd
. - Run the command
npm setup
to install all the necessary package for the bot and setup the slash commands. - Finally run
npm start
to host the bot.
If you have any problem ask me on Discord my DM should be open. mouthless_stoat