Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Commit f8bfde0

Browse files
MrBartusekgitbook-bot
authored andcommitted
GitBook: [master] 9 pages modified
1 parent 5227f7b commit f8bfde0

9 files changed

+147
-67
lines changed

β€ŽREADME.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Unfortunately, the current version of the bot doesn't allow for us to host one p
1616

1717
### Self-Host the Bot
1818

19-
{% page-ref page="setup-the-bot/self-hosting.md" %}
19+
{% page-ref page="setup-the-bot/own-instancie-setup.md" %}
2020

2121

2222

β€ŽSUMMARY.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,22 @@
44

55
## πŸ“‘ Setup the bot
66

7-
* [Self-Hosting](setup-the-bot/self-hosting.md)
7+
* [Own Instance Setup](setup-the-bot/own-instancie-setup.md)
8+
* [Setup Discord App](https://discordpy.readthedocs.io/en/latest/discord.html)
9+
* [Manual Setup](setup-the-bot/manual-setup.md)
10+
* [Cloud Development with Gitpod](setup-the-bot/cloud-development-with-gitpod.md)
11+
* [Hosting with Heroku](setup-the-bot/hosting-with-heroku.md)
12+
* [Hosting with PM2](setup-the-bot/hosting-with-pm2.md)
813

914
## ✨ Using The Bot
1015

1116
* [Commands](using-the-bot/commands.md)
1217
* [Built-in fetchers](using-the-bot/built-in-fetchers.md)
1318

19+
## πŸ—³οΈ configure the bot
20+
21+
* [Untitled](configure-the-bot/untitled.md)
22+
1423
## βš™οΈ Development
1524

1625
* [Fetchers Introduction](development/fetchers-introduction.md)

β€Žconfigure-the-bot/untitled.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Untitled
2+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Cloud Development with Gitpod
2+
3+
{% hint style="info" %}
4+
Before choosing an approach you need to [register the discord app!](https://discordpy.readthedocs.io/en/latest/discord.html)
5+
{% endhint %}
6+
7+
If you don't want to mess with setup on the local machine you can work on the bot in the cloud in one click! **Gitpod** will serve you pre-build workspace in a couple of seconds! Just click the button and everything will be set up for you!
8+
9+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/ReplacementBot/ReplacementBot)
10+
11+
12+
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Hosting with Heroku
2+
3+
{% hint style="info" %}
4+
Before choosing an approach you need to [register the discord app!](https://discordpy.readthedocs.io/en/latest/discord.html)
5+
{% endhint %}
6+
7+
We provide full support for **Heroku**. It's an extremely easy to use cloud hosting service, and **free tier is enough** to keep the bot running. This guide will show you how to set up the hosting for the bot in a couple of minutes.
8+
9+
### Register a [Heroku Account](https://heroku.com)
10+
11+
If you don't have one, please register a free account.
12+
13+
### Use Heroku Deploy Button
14+
15+
[![Heroku Deploy](https://www.herokucdn.com/deploy/button.svg)](https://www.heroku.com/deploy/?template=https://github.com/ReplacementBot/ReplacementBot)
16+
17+
18+

β€Žsetup-the-bot/hosting-with-pm2.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Hosting with PM2
2+
3+
{% hint style="info" %}
4+
Before choosing an approach you need to [register the discord app!](https://discordpy.readthedocs.io/en/latest/discord.html)
5+
{% endhint %}
6+

β€Žsetup-the-bot/manual-setup.md

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
description: Manual setup is the best approach when you run the bot on your local machine
3+
---
4+
5+
# Manual Setup
6+
7+
{% hint style="info" %}
8+
Before choosing an approach you need to [register the discord app!](https://discordpy.readthedocs.io/en/latest/discord.html)
9+
{% endhint %}
10+
11+
### ⬇ Install Required Software:
12+
13+
* [GIT](https://git-scm.com) \(GUI such [GitHub Desktop](https://desktop.github.com) can be helpful\)
14+
* [Node.JS](https://nodejs.org)
15+
16+
### πŸ—³ Clone The Repository
17+
18+
To clone the repository, either use the Git GUI if you have one installed or enter the following commands:
19+
20+
```bash
21+
# if you don't want to contribute, just host the bot, nothing else
22+
git clone https://github.com/ReplacementBot/ReplacementBot.git
23+
cd ReplacementBot
24+
```
25+
26+
If you want to contribute, first [fork the original repository](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) and clone the **forked** repository into your local machine. If you don't do this, you will not be able to make commits or change any files.
27+
28+
```bash
29+
# if you want to contribute, make changes and work on the bot
30+
git clone https://github.com/<username>/ReplacementBot.git
31+
cd ReplacementBot
32+
```
33+
34+
### βš™ **Install Dependencies And Build Project**
35+
36+
That step will setup files on your local machine that are not copied from the repository.
37+
38+
```bash
39+
npm install
40+
npm run build
41+
```
42+
43+
### βœ… That's It!
44+
45+
You can now run bot anytime by running this command in the project directory
46+
47+
```bash
48+
npm start
49+
```
50+
+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
description: >-
3+
If you wish to setup ReplacementBot to contribute or to host it. This guide
4+
will walk you thought how to do it.
5+
---
6+
7+
# Own Instance Setup
8+
9+
## Setup the Discord Application
10+
11+
To run an instance of any of Discord Bots you must first create the app on [Discord Developer Portal](https://discordapp.com/developers/applications) first.
12+
13+
## Chose your approach
14+
15+
While setting up bot you may choose a couple of approaches. There are a couple of them but, they are straightforward to choose because of how specific they are. They are, of course, not of all the options you can choose but they are recommended.
16+
17+
* βœ… Recommended Approach
18+
* β˜‘ Possible Approach
19+
* ❌ Not Recommended
20+
21+
| What do you want to do with the bot | Manual Setup | Heroku | PM2 | Gitpod |
22+
| :--- | :--- | :--- | :--- | :--- |
23+
| ✨ Use it | β˜‘ | βœ… | βœ… | ❌ |
24+
| πŸ” Check it out | ❌ | βœ… | β˜‘ | ❌ |
25+
| πŸ‘¨πŸ’» Contribute to it | βœ… | ❌ | ❌ | β˜‘ |
26+
27+
### ✨ I want to use the bot
28+
29+
If you want to use the bot it would be best it will be up 24/7. You need to put it on the hosting service or craft your own. We provide full support for **Heroku**. It isn't best service but it's extremely easy to use, and **free tier is enough** to keep the bot running. Alternatively, If you have any device that can run all day long like [Raspberry Pi](https://www.raspberrypi.org) you can use **PM2** to handle processes programs on your device easily.
30+
31+
{% page-ref page="hosting-with-heroku.md" %}
32+
33+
### πŸ” I want to check how the bot is working
34+
35+
If you want to quickly check if ReplacementBot is something that you are looking for you can use **Heroku**, it will handle all the technical stuff and will be the fastest approach.\
36+
37+
{% page-ref page="hosting-with-heroku.md" %}
38+
39+
{% page-ref page="hosting-with-pm2.md" %}
40+
41+
### πŸ‘¨πŸ’» I want to contribute to the bot
42+
43+
That's great ❀ReplacementBot is Open-Source project hosted on [GitHub](https://github.com/ReplacementBot?type=source). You will probably be interested in the **Manal Setup** on your machine or, you can the cloud development platform - **Gitpod**.
44+
45+
{% page-ref page="manual-setup.md" %}
46+
47+
{% page-ref page="cloud-development-with-gitpod.md" %}
48+

β€Žsetup-the-bot/self-hosting.md

-65
This file was deleted.

0 commit comments

Comments
Β (0)