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

Commit 6fa146e

Browse files
MrBartusekgitbook-bot
authored andcommitted
GitBook: [master] 9 pages and 3 assets modified
1 parent f5778f6 commit 6fa146e

11 files changed

+114
-12
lines changed
Loading
136 KB
Loading

.gitbook/assets/setup_command.png

23.8 KB
Loading

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
2-
description: Meet the ReplacementBot
2+
description: Get to know each other with the ReplacementBot
33
---
44

5-
# Introduction
5+
# What is ReplacementBot
66

7-
### About
7+
**ReplacementBot** is a feature-rich discord bot to fetch, parse, and display school substitutions right on your discord server!
88

9-
Meet the ReplacementBot a Discord bot made to make your school life easier. The Bot automatically fetches substitutions from your school website and shows them right on your discord server.
9+
## Meet the ReplacementBot
10+
11+
* 🧩 **Integrate with everything** that is online. ReplacementBot supports an ever-expanding base of fetchers. You can always create fetcher and submit it to the bot!
1012

1113
### Invite The Bot to your server
1214

SUMMARY.md

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
# Table of contents
22

3-
* [Introduction](README.md)
3+
* [What is ReplacementBot](README.md)
44

5-
## Setup the bot
5+
## 📡 Setup the bot
66

77
* [Self-Hosting](setup-the-bot/untitled.md)
8-
* [Begginier Guide](setup-the-bot/begginier-guide.md)
9-
* [Technical Guide](setup-the-bot/technical-guide.md)
108

11-
## Using The Bot
9+
## Using The Bot
1210

1311
* [Commands](using-the-bot/commands.md)
12+
* [Built-in fetchers](using-the-bot/built-in-fetchers.md)
1413

15-
## Creating Custom Fetchers
14+
## ⚙️ Development
1615

17-
* [Untitled](creating-custom-fetchers/untitled.md)
16+
* [Fetchers Introduction](development/fetchers-introduction.md)
17+
* [Fetcher Guidelines](development/fetcher-guidelines.md)
18+
* [How to Create a Fetcher](development/create-and-fetcher.md)
19+
20+
## ✋ contribute
21+
22+
* [Contributing Guidelines](contribute/contributing-guidelines.md)
23+
* [Report a Bug](https://github.com/ReplacementBot/ReplacementBot)
24+
* [Suggest a Feature](https://github.com/ReplacementBot/ReplacementBot)
1825

contribute/contributing-guidelines.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
description: A guide how to contribute to the project
3+
---
4+
5+
# Contributing Guidelines
6+
7+
**ReplacementBot is an Open Source Project** 💞 That means you can work to improve it. We greatly appreciate any work contributed, no matter how small! Pull Requests and Issues or Feature Requests are welcome ❤
8+
9+
### Reporting Issues and Feature Requests
10+
11+
If you find any bug or want something to be added to ReplacementBot please create an [issue](https://github.com/ReplacementBot/ReplacementBot/issues). We are offering a couple of templates to choose from so read their descriptions to chose a good one 😎
12+
13+
### Pull Request Process
14+
15+
If you want to make a codding contribution please make a pull request. If you don't know how to use Git and Github please reefer to [getting started guide](https://docs.github.com/en/github/getting-started-with-github). In ReplacementBot repository your pull request goes throught the following process:
16+
17+
1. Follow the [Setup Guide](%7B%7Bsite.baseurl%7D%7D/setup) to run your own fork and local instance of the bot.
18+
2. Make the changes
19+
3. Check if everything works correctly. After checking it manually please run automated tests `npm run test` and `npm run lint`
20+
4. If you can, write tests for changes that you made to don't lower coverage. If you don't know how to write tests please use `test.todo('Add tests for something blah blah')`
21+
5. Create a Pull Request
22+
6. CI will automatically check your PR. It will run build, testing, and linting tests
23+
7. Wait for a maintainer to review and merge your PR 🎉
24+

development/create-and-fetcher.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# How to Create a Fetcher
2+

development/fetcher-guidelines.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Fetcher Guidelines
2+

development/fetchers-introduction.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Fetchers Introduction
2+

setup-the-bot/untitled.md

+62-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,65 @@
11
# Self-Hosting
22

3-
Self-Hosting the bot can be very challenging or trivial for you depending on the level of your technical skills. This article will help to choose which guide to chose when setting up your instance of the bot.
3+
If you want to work on bot or host it somewhere you can setup it with this guide
4+
5+
### First of all, Bot Application
6+
7+
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. There are couple of good resources that will help you out
8+
9+
* [Setting up a bot application](https://discordjs.guide/preparations/setting-up-a-bot-application.html)
10+
* [Adding your bot to servers](discordjs.guide/preparations/adding-your-bot-to-servers.html)
11+
12+
### Local Setup Recommended
13+
14+
#### 1 - Install Required Software:
15+
16+
* [GIT](https://git-scm.com) \(GUI such [GitHub Desktop](https://desktop.github.com) can be helpful\)
17+
* [Node.JS](https://nodejs.org)
18+
19+
#### 2 - Clone The Repository
20+
21+
To clone the repository, either use the Git GUI if you have one installed or enter the following commands:
22+
23+
```bash
24+
# if you don't want to contribute, just host the bot, nothing else
25+
git clone https://github.com/ReplacementBot/ReplacementBot.git
26+
cd ReplacementBot
27+
```
28+
29+
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.
30+
31+
```bash
32+
# if you want to contribute, make changes and work on the bot
33+
git clone https://github.com/<username>/ReplacementBot.git
34+
cd ReplacementBot
35+
```
36+
37+
#### 3 - Install Dependencies And Build Project
38+
39+
That step will setup files on your local machine that are not copied from the repository.
40+
41+
```bash
42+
npm install
43+
npm run build
44+
```
45+
46+
#### 4 - That's It!
47+
48+
You can now run bot anytime by running
49+
50+
```bash
51+
npm start
52+
```
53+
54+
### Gitpod - Simple Cloud Development
55+
56+
If you don't want to mess with setup on local machine you can work on bot in the cloud in one click! Gitpod will serve you pre-build workspace in couple of seconds! **Note**: Free version allow for **50 hours / month** if you would like to work more, consider [Upgrade](https://www.gitpod.io/pricing/) or Manual Setup
57+
58+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/ReplacementBot/ReplacementBot)
59+
60+
### Heroku - Simple Cloud Hosting
61+
62+
You can easily setup bot to work 24/7 with heroku! Be sure to enter bot token when deploying, you can get it from the step above. After setup you need to disable `web` dyno and enable `woker` dyno from **Resources** tab or, your bot will [keep crashing](https://github.com/ReplacementBot/ReplacementBot/issues/60). This method require [ENV Configuration](https://replacementbot.github.io/docs/configuration.html#environmental-variable-env) if you want to use config.
63+
64+
[![Heroku Deploy](https://www.herokucdn.com/deploy/button.svg)](https://www.heroku.com/deploy/?template=https://github.com/ReplacementBot/ReplacementBot)
465

using-the-bot/built-in-fetchers.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Built-in fetchers
2+

0 commit comments

Comments
 (0)