Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
khanhfg edited this page Jul 28, 2023 · 2 revisions

Magpie Documentation

Magpie have weird hidden feature this is where they are recorded and document

How to host the bot yourself

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:

  1. Download Node
  2. Go to the Discord Developer Portal
  3. 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.
  4. Click on the Bot menu and choose Add Bot, you can change the name of the bot if you want here.
  5. Click the Copy button below Token.
  6. Click on the OAuth2 menu and choose URL Generator choose bot and application.commands option.
  7. In the Bot Permission section and choose Administrator(If you want a more specific list of permission go to). Now you can click Copy at the very bottom to get the bot.invite link. You must invite the bot to a server for future steps.
  8. Now download this repository, unzip the folder if it a zip file.
  9. Make a config.json file, in there type the following:
{
    "clientId": "Your Client ID here",
    "token": "Your Bot Token here",
}
  1. You can put the token that you copy and replace the text Your Bot Token here
  2. Go into your discord client Setting > Advance and turn on Developer Mode
  3. You can now copy the bot client ID by right clicking and select Copy ID. You can replace the text Your Client ID here in config.json with this ID. Save the file if you haven't already.
  4. Right click and choose Open in Terminal option or go to the path text box and type in cmd.
  5. Run the command npm setup to install all the necessary package for the bot and setup the slash commands.
  6. Finally run npm start to host the bot.

If you have any problem ask me on Discord my DM should be open. mouthless_stoat

Clone this wiki locally