# Welcome

SeedBot Documentation

## [Installing SeedBot](/bot-install/guide-directory)

SeedBot is compatible with many operating systems, we suggest using a \*nix operating system that can support Node.JS and the Node Package Manager, If you would like to check if your operating system is compatible then look at the Guide Directory!

## [API Documentation](/api/api-directory)

If you want more information about the SeedBot Bot API then just click on the title above!

\ <br>


# SeedBot Install Guide

APT Package Manager (Debian Based Distros)\
Brew \[Darwin/macOS]\
MacPorts \[Darwin/macOS]\
PacMan Package Manager (Arch-based, etc...)\
Portage Package Manager (Gentoo-based,  etc...)\
Zypper Package Manager (openSUSE/SUSE-based)\
YUM Package Manager (Fedora, RedHat, CentOS, etc...)


# APT Package Manager

Debian-based

## Installing SeedBot and its Dependencies

To Install and Download everything you need put this into your console first:

```
$ sudo apt-get install curl -y
```

**Before you put this command in make sure you are in the directory that you want SeedBot in!**

```
$ curl -sL http://install.cdn.seedbot.xyz/apt | sudo -E bash -
```

Now, Once you have executed that this should show in your console, if this does not show then you have done something wrong or I have done something wrong, If you need any help feel free to Join my [Discord Server](https://discord.gg/VMszsux) to get some help!

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqanhyGHL-jTCfT7gZN%2Fimg1.PNG?alt=media\&token=41c02cae-c542-4ad4-8d7a-c9a01ae15190)

Once you have ran this you can start getting your tokens for the bot!

## Configuring SeedBot

The first thing you need to do is Create a Discord Application and a Bot User to get your Bot Token, to do this I suggest [this guide](https://www.digitaltrends.com/gaming/how-to-make-a-discord-bot/).

Now to get your bot token you need to go onto your Application Page, Click Bot on the left, then click `Copy` below `Click to Reveal Token`

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8XRUDhaBbfg3q3%2Fguide1.png?alt=media\&token=9a0b225b-f9dd-43d8-a7e0-3528fe74078d)

Once you have your Bot Token Go into the folder where you installed SeedBot and open the file `config.json` in your perfered text editor, I'll be using GNU Nano, now replace `token-here` on the second like with your token that you just copied!

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqaqOK_C78JDPm3E1U-%2Fimg2.PNG?alt=media\&token=baa88b1c-a8ab-47a5-a223-f5bff271c1f6)

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqaqOKcq6lAOe592zTk%2Fimg3.PNG?alt=media\&token=48cda8fa-a967-41cb-979a-5f64e397a21a)

After you have done that you now need to get your Youtube API v3 Token if you want the music commands to work.

To go to your credential page [click here](https://console.developers.google.com/apis/credentials), then click on `Create Project`

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8_dsxbJE81mIJ7%2Fguide4.png?alt=media\&token=ddbf8290-7780-4478-b817-718213cefdea)

Enter a Project Name of your choice

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8aN8_XogfMi5FH%2Fguide5.png?alt=media\&token=2380448d-069a-4825-bc38-21cae25474ae)

Now it is time to enable the YouTube Data API, First off you need to click on Library on the left hand side of the website.

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8bWir4BXNu2eKK%2Fguide6.png?alt=media\&token=7da29246-1172-47ca-80b5-0257ad0b1c19)

After you have done that search for `YouTube Data API v3`

Once you have done that, Click on `YouTube Data API v3` and click on the Enable Button

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8c1EY-yYUJgrgf%2Fguide7.png?alt=media\&token=ea046f08-d929-4061-b70b-edcc36d0fee2)

And Select the YouTube API with the Web Server Setting under `Where will you be calling the API from?`

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8STV2yEGQpsISA%2Fguide9.png?alt=media\&token=9a895963-23de-481d-8d1c-59a8472d3e25)

Now you can Copy your API Key by clicking on the copy button on the far right side of the text box where the API Key is (circled in red).

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqasCCu_gSyBWzrf1cR%2Fimg4.PNG?alt=media\&token=5ca67b6c-2cb7-44b8-a292-f4f5bc13f3f5)

Now you can go back into your perfered text editor of choice then open back up the `config.json` file, then replace `youtube-api-token` on line 3 with the token you just copied.

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqaqOKcq6lAOe592zTk%2Fimg3.PNG?alt=media\&token=48cda8fa-a967-41cb-979a-5f64e397a21a)

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-Lqast8fzwqJRVWmkdMX%2Fimg5.PNG?alt=media\&token=8ed9298f-b639-4ccc-a83b-7b4993334340)

Now once you have done that you can start SeedBot!

To start SeedBot just type in your terminal

```
$ node bot.js
```

Now this should show in your console if you have done everything correctly.

```bash
jyles@JylesDesktop:~/seedbot$ node bot.js
ℹ  INFO        Starting SeedBot...
ℹ  INFO        Copyright 2018-2019, jyles.club and DARiOX.club
ℹ  INFO        Branch: Stable
ℹ  INFO        Running SeedBot Stable (1.3.0, build856)
ℹ  INFO        Bot started at Mon Oct 07 2019 23:47:12 GMT+0800 (GMT+08:00)
ℹ  INFO        Bot has started, with 21251 users, in 679 channels of 27 guilds.
------- Music Bot -------
> Version: 13.8.1
> Extra Logging: false.
> Node.js Version: v12.10.0
------- Music Bot -------
```

Congratulations! You have successfully installed SeedBot!

If you have any problems feel free to join my [Support Discord Server](https://discord.gg/VMszsux) or send us an [E-mail!](mailto:contact@dariox.club)


# Brew

macOS/Darwin

## Installing SeedBot and its Dependencies

To Install and Download everything you need put this into your console first:

```
$ /usr/bin/ruby -e "$(curl -fsSL http://install.cdn.seedbot.xyz/darwin-brew)"
```

Now, Once you have executed that this should show in your console, if this does not show then you have done something wrong or I have done something wrong, If you need any help feel free to Join my [Discord Server](https://discord.gg/VMszsux) to get some help!

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqanhyGHL-jTCfT7gZN%2Fimg1.PNG?alt=media\&token=41c02cae-c542-4ad4-8d7a-c9a01ae15190)

Once you have ran this you can start getting your tokens for the bot!

## Configuring SeedBot

The first thing you need to do is Create a Discord Application and a Bot User to get your Bot Token, to do this I suggest [this guide](https://www.digitaltrends.com/gaming/how-to-make-a-discord-bot/).

Now to get your bot token you need to go onto your Application Page, Click Bot on the left, then click `Copy` below `Click to Reveal Token`

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8XRUDhaBbfg3q3%2Fguide1.png?alt=media\&token=9a0b225b-f9dd-43d8-a7e0-3528fe74078d)

Once you have your Bot Token Go into the folder where you installed SeedBot and open the file `config.json` in your perfered text editor, I'll be using GNU Nano, now replace `token-here` on the second like with your token that you just copied!

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqaqOK_C78JDPm3E1U-%2Fimg2.PNG?alt=media\&token=baa88b1c-a8ab-47a5-a223-f5bff271c1f6)

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqaqOKcq6lAOe592zTk%2Fimg3.PNG?alt=media\&token=48cda8fa-a967-41cb-979a-5f64e397a21a)

After you have done that you now need to get your Youtube API v3 Token if you want the music commands to work.

To go to your credential page [click here](https://console.developers.google.com/apis/credentials), then click on `Create Project`

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8_dsxbJE81mIJ7%2Fguide4.png?alt=media\&token=ddbf8290-7780-4478-b817-718213cefdea)

Enter a Project Name of your choice

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8aN8_XogfMi5FH%2Fguide5.png?alt=media\&token=2380448d-069a-4825-bc38-21cae25474ae)

Now it is time to enable the YouTube Data API, First off you need to click on Library on the left hand side of the website.

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8bWir4BXNu2eKK%2Fguide6.png?alt=media\&token=7da29246-1172-47ca-80b5-0257ad0b1c19)

After you have done that search for `YouTube Data API v3`

Once you have done that, Click on `YouTube Data API v3` and click on the Enable Button

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8c1EY-yYUJgrgf%2Fguide7.png?alt=media\&token=ea046f08-d929-4061-b70b-edcc36d0fee2)

And Select the YouTube API with the Web Server Setting under `Where will you be calling the API from?`

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8STV2yEGQpsISA%2Fguide9.png?alt=media\&token=9a895963-23de-481d-8d1c-59a8472d3e25)

Now you can Copy your API Key by clicking on the copy button on the far right side of the text box where the API Key is (circled in red).

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqasCCu_gSyBWzrf1cR%2Fimg4.PNG?alt=media\&token=5ca67b6c-2cb7-44b8-a292-f4f5bc13f3f5)

Now you can go back into your perfered text editor of choice then open back up the `config.json` file, then replace `youtube-api-token` on line 3 with the token you just copied.

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqaqOKcq6lAOe592zTk%2Fimg3.PNG?alt=media\&token=48cda8fa-a967-41cb-979a-5f64e397a21a)

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-Lqast8fzwqJRVWmkdMX%2Fimg5.PNG?alt=media\&token=8ed9298f-b639-4ccc-a83b-7b4993334340)

Now once you have done that you can start SeedBot!

To start SeedBot just type in your terminal

```
$ node bot.js
```

Now this should show in your console if you have done everything correctly.

```bash
jyles@JylesLaptop:~/seedbot$ node bot.js
ℹ  INFO        Starting SeedBot...
ℹ  INFO        Copyright 2018-2019, jyles.club and DARiOX.club
ℹ  INFO        Branch: Stable
ℹ  INFO        Running SeedBot Stable (1.3.0, build856)
ℹ  INFO        Bot started at Mon Oct 07 2019 23:47:12 GMT+0800 (GMT+08:00)
ℹ  INFO        Bot has started, with 21251 users, in 679 channels of 27 guilds.
------- Music Bot -------
> Version: 13.8.1
> Extra Logging: false.
> Node.js Version: v12.10.0
------- Music Bot -------
```

Congratulations! You have successfully installed SeedBot!

If you have any problems feel free to join my [Support Discord Server](https://discord.gg/VMszsux) or send us an [E-mail!](mailto:contact@dariox.club)


# MacPorts

macOS/Darwin


# PacMan Package Manager \[WIP]

Arch-based

## Installing SeedBot and its Dependencies

To Install and Download everything you need put this into your console first:

```
$ sudo pacman -S --noconfirm curl
```

**Before you put this command in make sure you are in the directory that you want SeedBot in!**

```
$ curl -sL http://install.cdn.seedbot.xyz/pacman | sudo -E bash -
```

Now, Once you have executed that this should show in your console, if this does not show then you have done something wrong or I have done something wrong, If you need any help feel free to Join my [Discord Server](https://discord.gg/VMszsux) to get some help!

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqanhyGHL-jTCfT7gZN%2Fimg1.PNG?alt=media\&token=41c02cae-c542-4ad4-8d7a-c9a01ae15190)

Once you have ran this you can start getting your tokens for the bot!

## Configuring SeedBot

The first thing you need to do is Create a Discord Application and a Bot User to get your Bot Token, to do this I suggest [this guide](https://www.digitaltrends.com/gaming/how-to-make-a-discord-bot/).

Now to get your bot token you need to go onto your Application Page, Click Bot on the left, then click `Copy` below `Click to Reveal Token`

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8XRUDhaBbfg3q3%2Fguide1.png?alt=media\&token=9a0b225b-f9dd-43d8-a7e0-3528fe74078d)

Once you have your Bot Token Go into the folder where you installed SeedBot and open the file `config.json` in your preferred text editor, I'll be using GNU Nano, now replace `token-here` on the second like with your token that you just copied!

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LrJ5NErFZ3jqOKv420a%2F-LrJANwiuGKp_HKKVIRw%2Fyum-1.PNG?alt=media\&token=47a8e8ca-85ea-4858-a56c-047856aa584b)

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LrJ5NErFZ3jqOKv420a%2F-LrJBo8B5jYHtqZtOmpP%2Fyum02.PNG?alt=media\&token=2dec89fa-ec4e-41b4-8beb-c408d01bb972)

To Exit and Save the Config File hold down this following Key Combination `Ctl + X`

After you have done that you now need to get your Youtube API v3 Token if you want the music commands to work.

To go to your credential page [click here](https://console.developers.google.com/apis/credentials), then click on `Create Project`

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8_dsxbJE81mIJ7%2Fguide4.png?alt=media\&token=ddbf8290-7780-4478-b817-718213cefdea)

Enter a Project Name of your choice

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8aN8_XogfMi5FH%2Fguide5.png?alt=media\&token=2380448d-069a-4825-bc38-21cae25474ae)

Now it is time to enable the YouTube Data API, First off you need to click on Library on the left hand side of the website.

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8bWir4BXNu2eKK%2Fguide6.png?alt=media\&token=7da29246-1172-47ca-80b5-0257ad0b1c19)

After you have done that search for `YouTube Data API v3`

Once you have done that, Click on `YouTube Data API v3` and click on the Enable Button

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8c1EY-yYUJgrgf%2Fguide7.png?alt=media\&token=ea046f08-d929-4061-b70b-edcc36d0fee2)

And Select the YouTube API with the Web Server Setting under `Where will you be calling the API from?`

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8STV2yEGQpsISA%2Fguide9.png?alt=media\&token=9a895963-23de-481d-8d1c-59a8472d3e25)

Now you can Copy your API Key by clicking on the copy button on the far right side of the text box where the API Key is (circled in red).

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqasCCu_gSyBWzrf1cR%2Fimg4.PNG?alt=media\&token=5ca67b6c-2cb7-44b8-a292-f4f5bc13f3f5)

Now you can go back into your perfered text editor of choice then open back up the `config.json` file, then replace `youtube-api-token` on line 3 with the token you just copied.

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LrJ5NErFZ3jqOKv420a%2F-LrJBo8B5jYHtqZtOmpP%2Fyum02.PNG?alt=media\&token=2dec89fa-ec4e-41b4-8beb-c408d01bb972)

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LrJ5NErFZ3jqOKv420a%2F-LrJBvnIR6w6F2o5HB-a%2Fyum-3.PNG?alt=media\&token=5cf927e9-5e1b-491d-89be-a8ebc391c41f)

Now once you have done that you can start SeedBot!

To start SeedBot just type in your terminal

```
$ node bot.js
```

Now this should show in your console if you have done everything correctly.

```bash
[jyles@SeedBot-Yum-Dev seedbot]$ node bot.js
ℹ  INFO        Starting SeedBot...
ℹ  INFO        Copyright 2018-2019, jyles.club and DARiOX.club
ℹ  INFO        Branch: Stable
ℹ  INFO        Running SeedBot Stable (1.3.0, build856)
ℹ  INFO        Bot started at Mon Oct 07 2019 23:47:12 GMT+0800 (GMT+08:00)
ℹ  INFO        Bot has started, with 21251 users, in 679 channels of 27 guilds.
------- Music Bot -------
> Version: 13.8.1
> Extra Logging: false.
> Node.js Version: v12.10.0
------- Music Bot -------
```

Congratulations! You have successfully installed SeedBot!

If you have any problems feel free to join my [Support Discord Server](https://discord.gg/VMszsux) or send us an [E-mail!](mailto:contact@dariox.club)


# YUM Package Manager

Fedora, RedHat, CentOS, etc...

## Installing SeedBot and its Dependencies

To Install and Download everything you need put this into your console first:

```
$ sudo yum install curl -y
```

**Before you put this command in make sure you are in the directory that you want SeedBot in!**

```
$ curl -sL http://install.cdn.seedbot.xyz/yum | sudo -E bash -
```

Now, Once you have executed that this should show in your console, if this does not show then you have done something wrong or I have done something wrong, If you need any help feel free to Join my [Discord Server](https://discord.gg/VMszsux) to get some help!

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqanhyGHL-jTCfT7gZN%2Fimg1.PNG?alt=media\&token=41c02cae-c542-4ad4-8d7a-c9a01ae15190)

Once you have ran this you can start getting your tokens for the bot!

## Configuring SeedBot

The first thing you need to do is Create a Discord Application and a Bot User to get your Bot Token, to do this I suggest [this guide](https://www.digitaltrends.com/gaming/how-to-make-a-discord-bot/).

Now to get your bot token you need to go onto your Application Page, Click Bot on the left, then click `Copy` below `Click to Reveal Token`

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8XRUDhaBbfg3q3%2Fguide1.png?alt=media\&token=9a0b225b-f9dd-43d8-a7e0-3528fe74078d)

Once you have your Bot Token Go into the folder where you installed SeedBot and open the file `config.json` in your preferred text editor, I'll be using GNU Nano, now replace `token-here` on the second like with your token that you just copied!

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LrJ5NErFZ3jqOKv420a%2F-LrJANwiuGKp_HKKVIRw%2Fyum-1.PNG?alt=media\&token=47a8e8ca-85ea-4858-a56c-047856aa584b)

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LrJ5NErFZ3jqOKv420a%2F-LrJBo8B5jYHtqZtOmpP%2Fyum02.PNG?alt=media\&token=2dec89fa-ec4e-41b4-8beb-c408d01bb972)

To Exit and Save the Config File hold down this following Key Combination `Ctl + X`

After you have done that you now need to get your Youtube API v3 Token if you want the music commands to work.

To go to your credential page [click here](https://console.developers.google.com/apis/credentials), then click on `Create Project`

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8_dsxbJE81mIJ7%2Fguide4.png?alt=media\&token=ddbf8290-7780-4478-b817-718213cefdea)

Enter a Project Name of your choice

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8aN8_XogfMi5FH%2Fguide5.png?alt=media\&token=2380448d-069a-4825-bc38-21cae25474ae)

Now it is time to enable the YouTube Data API, First off you need to click on Library on the left hand side of the website.

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8bWir4BXNu2eKK%2Fguide6.png?alt=media\&token=7da29246-1172-47ca-80b5-0257ad0b1c19)

After you have done that search for `YouTube Data API v3`

Once you have done that, Click on `YouTube Data API v3` and click on the Enable Button

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8c1EY-yYUJgrgf%2Fguide7.png?alt=media\&token=ea046f08-d929-4061-b70b-edcc36d0fee2)

And Select the YouTube API with the Web Server Setting under `Where will you be calling the API from?`

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8STV2yEGQpsISA%2Fguide9.png?alt=media\&token=9a895963-23de-481d-8d1c-59a8472d3e25)

Now you can Copy your API Key by clicking on the copy button on the far right side of the text box where the API Key is (circled in red).

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqasCCu_gSyBWzrf1cR%2Fimg4.PNG?alt=media\&token=5ca67b6c-2cb7-44b8-a292-f4f5bc13f3f5)

Now you can go back into your perfered text editor of choice then open back up the `config.json` file, then replace `youtube-api-token` on line 3 with the token you just copied.

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LrJ5NErFZ3jqOKv420a%2F-LrJBo8B5jYHtqZtOmpP%2Fyum02.PNG?alt=media\&token=2dec89fa-ec4e-41b4-8beb-c408d01bb972)

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LrJ5NErFZ3jqOKv420a%2F-LrJBvnIR6w6F2o5HB-a%2Fyum-3.PNG?alt=media\&token=5cf927e9-5e1b-491d-89be-a8ebc391c41f)

Now once you have done that you can start SeedBot!

To start SeedBot just type in your terminal

```
$ node bot.js
```

Now this should show in your console if you have done everything correctly.

```bash
[jyles@SeedBot-Yum-Dev seedbot]$ node bot.js
ℹ  INFO        Starting SeedBot...
ℹ  INFO        Copyright 2018-2019, jyles.club and DARiOX.club
ℹ  INFO        Branch: Stable
ℹ  INFO        Running SeedBot Stable (1.3.0, build856)
ℹ  INFO        Bot started at Mon Oct 07 2019 23:47:12 GMT+0800 (GMT+08:00)
ℹ  INFO        Bot has started, with 21251 users, in 679 channels of 27 guilds.
------- Music Bot -------
> Version: 13.8.1
> Extra Logging: false.
> Node.js Version: v12.10.0
------- Music Bot -------
```

Congratulations! You have successfully installed SeedBot!

If you have any problems feel free to join my [Support Discord Server](https://discord.gg/VMszsux) or send us an [E-mail!](mailto:contact@dariox.club)


# Portage Package Manager


# Zypper Package Manager

openSUSE/SUSE-based

## Installing SeedBot and its Dependencies

To Install and Download everything you need put this into your console first:

```
> sudo zypper -n install nano curl
```

**Before you put this command in make sure you are in the directory that you want SeedBot in!**

```
> curl -sL http://install.cdn.seedbot.xyz/zypper | sudo -E bash -
```

Now, Once you have executed that this should show in your console, if this does not show then you have done something wrong or I have done something wrong, If you need any help feel free to Join my [Discord Server](https://discord.gg/VMszsux) to get some help!

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqanhyGHL-jTCfT7gZN%2Fimg1.PNG?alt=media\&token=41c02cae-c542-4ad4-8d7a-c9a01ae15190)

Once you have ran this you can start getting your tokens for the bot!

## Configuring SeedBot

The first thing you need to do is Create a Discord Application and a Bot User to get your Bot Token, to do this I suggest [this guide](https://www.digitaltrends.com/gaming/how-to-make-a-discord-bot/).

Now to get your bot token you need to go onto your Application Page, Click Bot on the left, then click `Copy` below `Click to Reveal Token`

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8XRUDhaBbfg3q3%2Fguide1.png?alt=media\&token=9a0b225b-f9dd-43d8-a7e0-3528fe74078d)

Once you have your Bot Token Go into the folder where you installed SeedBot and open the file `config.json` in your preferred text editor, I'll be using GNU Nano, now replace `token-here` on the second like with your token that you just copied!

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LrIvPr_gft_iYaadEsv%2F-LrJ40b8lhNsP17tMnZk%2Fsuse-1.PNG?alt=media\&token=3a166f42-c901-4f88-92d6-aa7b771ede2c)

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LrIvPr_gft_iYaadEsv%2F-LrJ4Gr7znYyq3cv2YNJ%2Fsuse-2.PNG?alt=media\&token=8cd583c2-e7df-4352-9286-ca0d47f392bd)

To Exit and Save the Config File hold down this following Key Combination `Ctl + X`

After you have done that you now need to get your Youtube API v3 Token if you want the music commands to work.

To go to your credential page [click here](https://console.developers.google.com/apis/credentials), then click on `Create Project`

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8_dsxbJE81mIJ7%2Fguide4.png?alt=media\&token=ddbf8290-7780-4478-b817-718213cefdea)

Enter a Project Name of your choice

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8aN8_XogfMi5FH%2Fguide5.png?alt=media\&token=2380448d-069a-4825-bc38-21cae25474ae)

Now it is time to enable the YouTube Data API, First off you need to click on Library on the left hand side of the website.

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8bWir4BXNu2eKK%2Fguide6.png?alt=media\&token=7da29246-1172-47ca-80b5-0257ad0b1c19)

After you have done that search for `YouTube Data API v3`

Once you have done that, Click on `YouTube Data API v3` and click on the Enable Button

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8c1EY-yYUJgrgf%2Fguide7.png?alt=media\&token=ea046f08-d929-4061-b70b-edcc36d0fee2)

And Select the YouTube API with the Web Server Setting under `Where will you be calling the API from?`

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqapB8STV2yEGQpsISA%2Fguide9.png?alt=media\&token=9a895963-23de-481d-8d1c-59a8472d3e25)

Now you can Copy your API Key by clicking on the copy button on the far right side of the text box where the API Key is (circled in red).

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LqakEXnU9695diMne-s%2F-LqasCCu_gSyBWzrf1cR%2Fimg4.PNG?alt=media\&token=5ca67b6c-2cb7-44b8-a292-f4f5bc13f3f5)

Now you can go back into your perfered text editor of choice then open back up the `config.json` file, then replace `youtube-api-token` on line 3 with the token you just copied.

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LrIvPr_gft_iYaadEsv%2F-LrJ4Gr7znYyq3cv2YNJ%2Fsuse-2.PNG?alt=media\&token=8cd583c2-e7df-4352-9286-ca0d47f392bd)

![](https://3066300672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqaZ1Xi4ZeXvVaPLZg6%2F-LrIvPr_gft_iYaadEsv%2F-LrJ4iQwDzxAZcyngrKP%2Fsuse-3.PNG?alt=media\&token=6451133a-cfcb-46c1-b868-5b1de2a3ea19)

Now once you have done that you can start SeedBot!

To start SeedBot just type in your terminal

```
> node bot.js
```

Now this should show in your console if you have done everything correctly.

```bash
jyles@SeedBot-Zypper-Dev:~/seedbot> node bot.js
ℹ  INFO        Starting SeedBot...
ℹ  INFO        Copyright 2018-2019, jyles.club and DARiOX.club
ℹ  INFO        Branch: Stable
ℹ  INFO        Running SeedBot Stable (1.3.0, build856)
ℹ  INFO        Bot started at Mon Oct 07 2019 23:47:12 GMT+0800 (GMT+08:00)
ℹ  INFO        Bot has started, with 21251 users, in 679 channels of 27 guilds.
------- Music Bot -------
> Version: 13.8.1
> Extra Logging: false.
> Node.js Version: v12.10.0
------- Music Bot -------
```

Congratulations! You have successfully installed SeedBot!

If you have any problems feel free to join my [Support Discord Server](https://discord.gg/VMszsux) or send us an [E-mail!](mailto:contact@dariox.club)


# API Directory

Hi All! Welcome to the Bot API Directory, if you want to learn about how to use the API in your own website then [>> click here <<](/api/api-usage)


# API Usage

When using the API you need to give the Server a GET Request otherwise it will return a Error 400 Bad Request Message, this will also display if there is to request provided.

If you want to make a request to the server the URI would be `http://[server address]/?req=[request]` In the table below is a list of requests and the expected output.

| Request            | Description                                                                | Expected Output                                                                                                                                                                           |
| ------------------ | -------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| test               | Test Response                                                              | `<h1>It Works!</h1>`                                                                                                                                                                      |
| userCount          | Will Respond with the latest user count from the bot                       | `18906`                                                                                                                                                                                   |
| channelCount       | Latest channel count from the bot                                          | `627`                                                                                                                                                                                     |
| guildCount         | Latest Guild/Server Count from the Bot                                     | `27`                                                                                                                                                                                      |
| botBranch          | Bot branch defined in `package.json`                                       | `stable`                                                                                                                                                                                  |
| packageName        | Package Name defined in `package.json`                                     | `SeedBot`                                                                                                                                                                                 |
| botBuild           | Build number defined in `package.json`                                     | `859`                                                                                                                                                                                     |
| packageDescription | Description defined in `package.json`                                      | `A Discord Bot for Developers by Developers, and some basic functions that every bot has.`                                                                                                |
| botOwnerID         | ownerID Defined in `package.json`                                          | `230485481773596672`                                                                                                                                                                      |
| botEngines         | Replies with `engines` defined in `package.json`                           | `{ "node": "8.16.0" }`                                                                                                                                                                    |
| packageScripts     | Replies with `scripts` defined in `package.json`                           | `{ "start": "node bot.js" }`                                                                                                                                                              |
| botDependencies    | Replies with `dependencies` defined in `package.json`                      | `{ "child_process": "^1.0.2", "discord.js": "^11.5.1", "discord.js-musicbot-addon": "^13.5.2", "external-ip": "^2.1.1", "figlet": "^1.2.3", "opusscript": "0.0.6", "signale": "^1.4.0" }` |
| packageRepository  | Replies with `repository` defined in `package.json`                        | `{ "type": "git", "url": "git+`[`https://github.com/discordseedbot/stable.git`](https://github.com/discordseedbot/stable.git)`" }`                                                        |
| author             | Replies with `author` defined in `package.json`                            | `Jyles Coad-Ward [jyles@dariox.club]`                                                                                                                                                     |
| botLicense         | Replies with the Licence that the Bot/Current Branch Uses                  | `GPL-3.0-or-later`                                                                                                                                                                        |
| botBugReportUrl    | Replies with the Issues Github Page                                        | [`https://github.com/discordseedbot/stable/issues`](https://github.com/discordseedbot/stable/issues)                                                                                      |
| botHomepage        | Replies with `homepage` defined in `package.json`                          | `https://seedbot.xyz`                                                                                                                                                                     |
| apiVersion         | Replies with the varaible `apiVersion` near the top of the API PHP script. | `1.1`                                                                                                                                                                                     |
|                    |                                                                            |                                                                                                                                                                                           |
|                    | When no request is made                                                    | `400 Bad Request Please look at the source code of the API to grasp a better understanding!`                                                                                              |


