Compare commits

...

11 Commits
main ... main

  1. BIN
      static/img/dcbot/connect.png
  2. BIN
      static/img/dcbot/upload.gif
  3. 54
      wiki/extras/discord-bot-setup.md
  4. 23
      wiki/software-installation/debian-nodejs-installieren.md
  5. 28
      wiki/software-installation/debian-python3-installieren.md

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

@ -0,0 +1,54 @@
---
id: debian-discord-bot-setup
title: Python Discord Bot hosten
sidebar_label: Python Discord Bot hosten
---
Hosten eines Discord Bots auf einem Debian VPS
## Informationen
In diesem Tutorial wird dir gezeigt, wie du einen Discord Bot auf einem VPS, root oder Dedicated Server hostest. Du benötigst dafür eine beliebige Debian basierende Distro und Root Rechte.
Melde dich zunächst als root mit dem SSH Client deiner Wahl an, z.B. PuTTY, Termius oder Tabby.
### Installation
1. Als erstes lädst du Python und screen herunter:
```sh
sudo apt update && sudo apt install python3 pip3 screen
```
2. Nun überträgst du mit WinSCP deine Bot source auf den server.
![img](../../static/img/dcbot/connect.png)
![img](../../static/img/dcbot/upload.gif)
3. Dann installierst du mit pip die benötigten Python Pakete:
```sh
pip3 install paket1 paket2
```
4. Teste ob dein Bot richtig funktioniert:
```sh
python3 /pfad/zum/bot.py
```
5. Wenn alles geklappt hat starte den Bot mit screen, damit du die SSH Sitzung schließen kannst:
```sh
screen -dmS bot python3 /pfad/zum/bot.py
```
6. (optional) Als letztes kannst du wenn du willst einen cronjob einrichten, damit der Bot automatisch beim hochfahren des Servers startet:
```sh
crontab -e
```
Wähle wenn du danach gefragt wirst einen Editor aus. Ich empfehle nano oder vim. Nun trage den cronjob ein.
```sh
@reboot /usr/bin/screen -dmS userbot /usr/bin/python3 /pfad/zum/bot.py
```

@ -0,0 +1,23 @@
---
id: debian-nodejs-installieren
title: Node JS installieren (Debian based distros)
sidebar_label: Node JS installieren
---
Installation von Node JS auf Linux Debian Server
## Informationen
In diesem Tutorial wird dir gezeigt, wie du Node JS auf einem VPS, root oder Dedicated Server installierst. Du benötigst dafür eine beliebige Debian basierende distro, curl und Root Rechte.
Melde dich zunächst als root mit dem SSH Client deiner Wahl an, z.B. PuTTY, Termius oder Tabby.
### Installation
1. Als erstes fügst du die offiziellen Node JS Paketquellen hinzu:
```sh
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
```
2. Nun updatest du deine Paketquellen und installierst Node JS.
```sh
sudo apt-get update && sudo apt-get install nodejs
```

@ -0,0 +1,28 @@
---
id: debian-python-installieren
title: Python installieren (Debian based distros)
sidebar_label: Python installieren
---
Installation von Python auf Linux Debian Server
## Informationen
In diesem Tutorial wird dir gezeigt, wie du Python auf einem VPS, root oder Dedicated Server installierst. Du benötigst dafür eine beliebige Debian basierende distro und Root Rechte.
Melde dich zunächst als root mit dem SSH Client deiner Wahl an, z.B. PuTTY oder Terminus.
### Installation
1. Als erstes aktualisierst du deine Paketquellen:
```sh
sudo apt-get update
```
2. Nun installierst du python und pip.
```sh
sudo apt-get install python3 pip3
```
3. Wenn du es von Windows gewohnt bist, statt python3 python zu schreiben installiere das paket python-is-python3:
```sh
sudo apt-get install python-is-python3
```
Loading…
Cancel
Save