-
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c15aea
commit cb0c20f
Showing
33 changed files
with
390 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# What is WildBeast? | ||
|
||
WildBeast is a wheels-attached Discord bot - meaning the heavy lifting is already done for you, making WildBeast easy to modify and extend to perfectly fit your use case. | ||
|
||
This documentation focusses on self-hosting and extending WildBeast. If you don't feel like hosting your own instance, we host a publicly available version of WildBeast known as [WildBot](https://invite.thesharks.xyz) which you can invite to your own server. | ||
|
||
## Getting Started | ||
|
||
Ready to get your hands dirty? Pick one of these guides to get started with WildBeast. | ||
|
||
{% content-ref url="guides/linux-guides/" %} | ||
[linux-guides](guides/linux-guides/) | ||
{% endcontent-ref %} | ||
|
||
### Fundamentals: Dive a little deeper | ||
|
||
Looking to write your own commands, or other custom features? Look below for our advanced guides. | ||
|
||
{% content-ref url="fundamentals/commands.md" %} | ||
[commands.md](fundamentals/commands.md) | ||
{% endcontent-ref %} | ||
|
||
{% content-ref url="fundamentals/events.md" %} | ||
[events.md](fundamentals/events.md) | ||
{% endcontent-ref %} | ||
|
||
{% content-ref url="fundamentals/buttons-and-menus.md" %} | ||
[buttons-and-menus.md](fundamentals/buttons-and-menus.md) | ||
{% endcontent-ref %} | ||
|
||
{% content-ref url="fundamentals/context-menu-actions.md" %} | ||
[context-menu-actions.md](fundamentals/context-menu-actions.md) | ||
{% endcontent-ref %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Table of contents | ||
|
||
* [What is WildBeast?](README.md) | ||
|
||
## Guides | ||
|
||
* [Linux guides](guides/linux-guides/README.md) | ||
* [Setup](guides/linux-guides/setup.md) | ||
* [Running as a service](guides/linux-guides/running-as-a-service.md) | ||
|
||
## Fundamentals | ||
|
||
* [Commands](fundamentals/commands.md) | ||
* [Events](fundamentals/events.md) | ||
* [Buttons and menus](fundamentals/buttons-and-menus.md) | ||
* [Context menu actions](fundamentals/context-menu-actions.md) | ||
|
||
## Extras | ||
|
||
* [VPS recommendations](extras/vps-recommendations.md) | ||
* [Creating a bot account](extras/creating-a-bot-account.md) | ||
* [Adding your bot to your server](extras/adding-your-bot-to-your-server.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
description: This page will show you how to invite your bot to your servers. | ||
--- | ||
|
||
# Adding your bot to your server | ||
|
||
{% hint style="info" %} | ||
Don’t have a bot account yet? Check out [this page](creating-a-bot-account.md) for instructions how to make one. | ||
{% endhint %} | ||
|
||
1. Once you have created a bot account, navigate to the OAuth2 page of your application![](../.gitbook/assets/wildebeest2.png) | ||
2. Scroll down to the OAuth2 URL Generator and check the "applications.commands" and "bot" scopes | ||
|
||
![](../.gitbook/assets/image.png) | ||
3. Copy the link it generates and open it in a new tab, choosing what server you want to add it to, and hit "Authorize" | ||
|
||
![](../.gitbook/assets/wildebeest1.png) | ||
|
||
{% hint style="warning" %} | ||
Don’t see the server you want to add the bot to? You need to have the ”Manage Server” permission in the server for it to show up. | ||
{% endhint %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
description: This page will describe, in detail, how to obtain a token for your bot. | ||
--- | ||
|
||
# Creating a bot account | ||
|
||
1. Navigate to your [Applications Page](https://discord.com/developers/applications) (you might need to login for this) | ||
2. Click "New Application" on the top right of the page | ||
|
||
![](<../.gitbook/assets/afbeelding (2).png>) | ||
3. Think of a name for your bot, and click "Create" | ||
|
||
![](<../.gitbook/assets/afbeelding (7).png>) | ||
4. Navigate to the "Bot" tab | ||
|
||
![](<../.gitbook/assets/afbeelding (3).png>) | ||
5. Click "Add Bot" on the left of the page | ||
|
||
![](../.gitbook/assets/afbeelding.png) | ||
6. Click "Yes, do it!" | ||
|
||
![](<../.gitbook/assets/afbeelding (4).png>) | ||
7. Optionally, set an avatar and change the username, and click "Save". | ||
8. Select the "Copy" button to copy your bot's token. | ||
|
||
![](<../.gitbook/assets/afbeelding (10).png>) | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
description: Need to run WildBeast 24/7? Get a cheap VPS. | ||
--- | ||
|
||
# VPS recommendations | ||
|
||
Need to run WildBeast 24/7? Get a cheap VPS. We recommend any of the below. | ||
|
||
### [Hetzner](https://hetzner.cloud/?ref=TrwA0pf5HM06) | ||
|
||
Cheap Finland and Germany-based VPSes. | ||
|
||
### [DigitalOcean](https://m.do.co/c/3ead1675d3af) | ||
|
||
The gold standard. Locations available worldwide. | ||
|
||
### [Scaleway](https://scaleway.com) | ||
|
||
Incredibly cheap but powerful VPSes, owned by online.net, based in France and The Netherlands. | ||
|
||
### [Xenyth](https://xenyth.net) | ||
|
||
A hosting solution made by Discord bot developers, aimed at a lower price range, starting from $2.49. | ||
|
||
### [OVH](https://ovh.com) | ||
|
||
Cheap VPSes, used by many people. France and Canadian locations available. | ||
|
||
### [Linode](https://linode.com) | ||
|
||
US-based VPS provider, locations available worldwide. | ||
|
||
### [Vultr](https://www.vultr.com/?ref=8379976) | ||
|
||
US-based VPS provider, locations available worldwide. | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
description: Add buttons and select menus to your custom commands | ||
--- | ||
|
||
# Buttons and menus | ||
|
||
WIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
description: Write your own custom commands | ||
--- | ||
|
||
# Commands | ||
|
||
WIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
description: Do cool stuff with right-click menu commands | ||
--- | ||
|
||
# Context menu actions | ||
|
||
WIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
description: Do cool stuff with your own event handlers | ||
--- | ||
|
||
# Events | ||
|
||
WIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Linux guides | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
--- | ||
description: Using systemd, run WildBeast as a service for automatic (re)starting | ||
--- | ||
|
||
# Running as a service | ||
|
||
{% hint style="info" %} | ||
**Good to know:** This guide uses `systemd`, we're assuming this is present on your system. | ||
|
||
If you're using Ubuntu 20.04, you're already using `systemd`. | ||
{% endhint %} | ||
|
||
## Making a new service | ||
|
||
Start creating a new service: | ||
|
||
``` | ||
sudo nano /etc/systemd/system/wildbeast.service | ||
``` | ||
|
||
Copy and paste the following example: | ||
|
||
```ini | ||
[Unit] | ||
After=network.target network-online.target | ||
Requires=network.target network-online.target | ||
StartLimitBurst=3 | ||
StartLimitIntervalSec=0 | ||
|
||
[Service] | ||
WorkingDirectory=/REPLACE THIS | ||
Type=simple | ||
Restart=on-failure | ||
RestartSec=1 | ||
User=REPLACE THIS | ||
ExecStart=/usr/bin/env npm start | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
``` | ||
|
||
{% hint style="warning" %} | ||
Pay attention to the `REPLACE THIS`, as you might've guessed you need to replace these values. | ||
|
||
* `WorkingDirectory` - The folder where you saved WildBeast | ||
|
||
For example: `/home/wildbeast/WildBeast` | ||
* `User` - The user that's going to run WildBeast | ||
|
||
Do **NOT **use `root`, [create a new user](https://www.digitalocean.com/community/tutorials/how-to-create-a-new-sudo-enabled-user-on-ubuntu-20-04-quickstart) for safety. | ||
{% endhint %} | ||
|
||
## Controlling the service | ||
|
||
### Starting | ||
|
||
``` | ||
sudo systemctl start wildbeast.service | ||
``` | ||
|
||
### Stopping | ||
|
||
``` | ||
sudo systemctl stop wildbeast.service | ||
``` | ||
|
||
### Start on boot | ||
|
||
``` | ||
sudo systemctl enable wildbeast.service | ||
``` | ||
|
||
To undo: | ||
|
||
``` | ||
sudo systemctl disable wildbeast.service | ||
``` | ||
|
||
### Restarting | ||
|
||
``` | ||
sudo systemctl restart wildbeast.service | ||
``` |
Oops, something went wrong.