Skip to content

This is a Python Discordbot and Slackbot for monitoring your server.

Notifications You must be signed in to change notification settings

Purzel149/Server_Monitoring

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

English version below

Deutsche Version:

Discordbot setup:

Ein paar Einblicke von dem Discordbot erhälst du hier:

/ram:

RAM

/cpu:

CPU

/uptime

uptime

Schritte zur Einrichtung des Discord Bots:

  1. Lade die Discord Bot ZIP-Datei von der Releases-Seite herunter.

  2. Entpacke die ZIP-Datei und verschiebe den Inhalt auf deinen Server in einen Ordner deiner Wahl.

  3. Stelle sicher, dass Python auf deinem Server installiert ist:

    • Überprüfe die Python-Version:
      python --version
      oder
      python3 --version
    • Falls Python nicht installiert ist, installiere es mit folgendem Befehl:
      sudo apt-get install python3
  4. Installiere die Python-Paketverwaltung pip:

    sudo apt-get install python3-pip
  5. Navigiere in das Verzeichnis des Bots und installiere die benötigten Python-Pakete:

    pip install -r requirements.txt
  6. Erstelle im gleichen Verzeichnis eine .env-Datei und füge den folgenden Inhalt hinzu:

    • Öffne einen Texteditor, um die Datei zu erstellen:

      sudo nano .env
    • Füge den folgenden Inhalt in die Datei ein:

      DISCORD_TOKEN=
      
    • Trage hinter DISCORD_TOKEN= deinen Token ein, den du dir vom Discord Developer Portal geholt hast.

    • Speichere die Datei und schließe den Editor (in nano durch Drücken von CTRL + O, Enter und dann CTRL + X).

  7. Starte den Bot im gleichen Verzeichnis mit folgendem Befehl:

    python3 bot.py

PS: vergiss nicht deinen Discordbot auf deinen Discord Server zu adden :D

Slack App setup:

Hier sind ein paar Einblicke zu der Slack App:

/ram:

RAM

/cpu:

CPU

/diskusage

uptime

  • lade die die Slack App zip Datei von der Releases-Seite herunter
  • entpacke diese und schiebe sie auf deinen Server in einen Ordner deiner Wahl
  • stelle sicher das auf deinem Server Python installiert ist (python --version oder python3 --version) --> wenn Python nicht installiert ist, installiere python via "sudo apt-get install python3"
  • installiere die dazugehörige Bibliothek "sudo apt-get install python3-pip"
  • navigiere in das Verzeichnis und installiere über pip die benötigten Pakete "pip install -r requirements.txt"
  • in dem gleichen Verzeichnis musst du nun die Datei .env erstelllen und in dieser "SLACK_TOKEN=" reinschreiben. Hinter dem "SLACK_TOKEN=" fügst du den Token ein den du dir vom Slack App Portal geholt hast
  • bleibe in dem Verzeichnis und führe python3 bot.py aus, dann sollten die Commands in deinem Workspace funktionieren.

English version:

Discordbot setup:

You can get a few insights into the Discordbot here:

/ram:

RAM

/cpu:

CPU

/uptime

uptime

To be able to use the bot yourself, the following steps must be followed:

  • download the Discord Bot zip file from the Releases page
  • unzip it and move it to your server in a folder of your choice
  • make sure that Python is installed on your server (python --version or python3 --version) --> if Python is not installed, install python via ‘sudo apt-get install python3’
  • install the corresponding library ‘sudo apt-get install python3-pip’
  • navigate to the directory and install the required packages via pip ‘pip install requirements.txt’
  • in the same directory you now have to create the file .env and write ‘DISCORD_TOKEN=’ in it. After the ‘DISCORD_TOKEN=’ you insert the token that you can get from the Discord Developer Portal
  • again in the same directory you run ‘python3 bot.py’ and your bot should run

PS: don't forget to add your discordbot to your discord server :D

Slack App setup:

Here are a few insights into the Slack app:

/ram:

RAM

/cpu:

CPU

/diskusage

uptime

  • download the Slack App zip file from the releases page
  • unzip it and move it to your server in a folder of your choice
  • make sure that Python is installed on your server (python --version or python3 --version) --> if Python is not installed, install python via ‘sudo apt-get install python3’
  • install the corresponding library ‘sudo apt-get install python3-pip’
  • navigate to the directory and install the required packages via pip ‘pip install -r requirements.txt’
  • In the same directory, you must now create the .env file and write ‘SLACK_TOKEN=’ in it. After the ‘SLACK_TOKEN=’ you insert the token you got from the Slack App Portal
  • stay in the directory and execute python3 bot.py, then the commands should work in your workspace.

About

This is a Python Discordbot and Slackbot for monitoring your server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%