tuxbot-bot/README.md

76 lines
1.7 KiB
Markdown
Raw Normal View History

2020-06-07 15:41:34 +00:00
![](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10-%23007ec6)
![](https://img.shields.io/badge/dynamic/json?color=%23dfb317&label=issues&query=%24.open_issues_count&suffix=%20open&url=https%3A%2F%2Fgit.gnous.eu%2Fapi%2Fv1%2Frepos%2FGnousEU%2Ftuxbot-bot%2F)
2020-06-02 23:10:47 +00:00
# Installing Tuxbot
It is preferable to install the bot on a dedicated user. If you don't know how to do it, please refer to [this guide](https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart)
## Installing the pre-requirements
- The pre-requirements are:
- Python 3.7 or greater
- Pip
- Git
### Operating systems
-----
### Arch Linux
```shell script
sudo pacman -Syu python python-pip python-virtualenv git
2020-06-02 23:10:47 +00:00
```
2020-06-07 16:45:50 +00:00
Continue to [create the venv](#creating-the-virtual-environnement).
2020-06-02 23:10:47 +00:00
-----
#### Debian
2020-06-02 23:10:47 +00:00
```shell script
sudo apt update
sudo apt -y install python3 python3-dev python3-pip python3-venv git
2020-06-02 23:10:47 +00:00
```
2020-06-07 16:45:50 +00:00
Continue to [create the venv](#creating-the-virtual-environnement).
2020-06-02 23:10:47 +00:00
-----
#### Windows
2020-08-26 15:15:38 +00:00
*not for now and not for the future*
2020-06-02 23:10:47 +00:00
2020-08-26 15:15:38 +00:00
## Creating the Virtual Environment
2020-06-02 23:10:47 +00:00
2020-08-26 15:15:38 +00:00
To set up the virtual environment and install the bot, simply run this two commands:
2020-06-02 23:10:47 +00:00
```shell script
make
make install
2020-06-02 23:10:47 +00:00
```
Now, switch your environment to the virtual one by run this single command:
2020-06-02 23:10:47 +00:00
```shell script
source ~/tuxvenv/bin/activate
2020-06-02 23:10:47 +00:00
```
## Configuration
2020-06-05 20:48:55 +00:00
It's time to set up your first instance, to do this, you can simply execute this command:
```shell script
tuxbot-setup [your instance name]
```
After following the instructions, you can run your instance by executing this command:
```shell script
tuxbot [your instance name]
```
## Update
*todo*