Skip to content

Selfhosted

raf edited this page Jan 9, 2022 · 2 revisions

🖥️ Self-Hosting BrayanBot

Hosting the bot on a local machine or a remote server is the recommended way to host the bot. You may choose to use a Discord Bot Host but it will be a lot easier to debug and edit your bot on a local/remote server that you have direct access to.

P.S: This page assumes that you have already completed the Pre-Installation Steps If you haven't, go back and complete them because the bot cannot function without them..

💻 Installation

Now that we have installed the prerequisites, let's clone the source code and move into the bot's directory.

  1. git clone https://github.com/DakshNamdev/BrayanBot.git
  2. cd BrayanBot

Now copy example.config.yml to config.yml, install dependencies and run the bot. You will need to enter your bot token in config.yml for the bot to start.

  1. cp example.config.yml config.yml(Linux) or copy example.config.yml config.yml (Windows)
  2. npm install or yarn
  3. npm run start or yarn start

And that's it, you have successfully started your bot! Now you may proceed to create amazing addons for your bot :)

💡 Ran into a problem? Join our support server

⚙️ Customizing

To see the instructions on customizing BrayanBot, please see the Customizing Page of the Wiki.