Git Product home page Git Product logo

stalkbot's Introduction

Stalkbot

Cooler epischer Stalkbot mit dem deine Discord-Freunde dich stalken können.

Stalkbot Rewrite: auf Gitlab

Derzeitiger Stand der Windows-Kompatiblität:

say/tts-Command: ✔️

webcam-Command: ❔

screenshot-Command: ✔️

proc-Command: ❌

play-Command: ✔️

cursor-Command: ✔️

keyboad-Command: ✔️

folder-Command: ✔️

Aufsetzen des Bots

Installation vom Quellcode (bleeding-edge)

Dependencies

Über Package-Manager (Linux):

  • python3
  • python3-pip
  • python3-tk
  • scrot
  • ffmpeg
  • portaudio (portaudio19-dev)
  • xdotool
  • libnotify, falls es nicht auf deiner Distribution vorinstalliert ist

Windows:

  • Python >= 3.5 installieren von Python.org
  • FFmpeg heruntenladen von ffmpeg.zeranoe.com/builds und die enthaltene FFmpeg.exe unter dem Namen ffmpeg.exe in den Ordner des Bots verschieben oder eine ffmpeg_override.txt-Datei erstellen, in welcher der Pfad zur Datei steht

Über Pip:

Linux und MacOS (pip3 install PACKAGE):

  • keyboard
  • mouse
  • pyautogui
  • pillow
  • opencv-python
  • discord.py (async branch)
  • pyaudio
  • gtts
  • gtts-token
  • psutil
  • (Xlib)

Windows (py -m pip install PACKAGE):

  • keyboard
  • mouse
  • pyautogui
  • pillow
  • opencv-python
  • discord.py (async-branch)
  • numpy
  • gtts
  • gtts-token
  • psutil
  • win10toast

Anmerkung zum async-Branch von discord.py:

Diesen am besten von github.com/Rapptz/discord.py/tree/async herunterladen und den discord-Ordner daraus in den Ordner des Bots einfügen.

Herunterladen des Quellcodes:

  • Git Repository klonen -> (mit Git installiert:) git clone https://github.com/Jerrynicki/Stalkbot oder als ZIP herunterladen und entpacken

Installation von Releases (Beta/Stable):

  • Den neuesten Release herunterladen (Bitte lade die Datei herunter, die zu deinem Betriebssystem passt)

  • Pre-releases (Orange): Beta-Releases, mit neuen Features welche zwar getestet wurden, aber noch instabil sein können

  • Stable Releases (Grün): Weniger Features / älter als die Beta-Version, aber stabil

Erstellen der config.json

{"token": "", 
"status": "",
"prefix": "",
"notifications": {"text": "", "duration":""},
"blacklist": [],
"webcamdelay": "",
"do_not_disturb_hotkey": "",
"folder": "",
"cooldown": ""}

Kopiere die leere config in eine neue Datei namens config.json, die einzelnen Optionen können wie folgt angepasst werden:

  • token: Das Token deines Discord-Bots
  • prefix: Der zu verwendende Prefix für Commands
  • notifications:
  • notifications.text: Der anzuzeigende Text bei der Notification, welche gesendet wird sobald ein Command ausgeführt wird. Gültige Flags sind:

$AUTHOR: Der Autor der Nachricht in welcher der Command angefragt wurde

$ACTION: Die Aktion, die ausgeführt wird

$SERVER: Der Server, in dem der Command ausgeführt wird

$CHANNEL: Der Channel, in dem der Command ausgeführt wird

  • notifications.delay: Wie lange die Benachrichtigung angezeigt wird (in ms)

Eine beispielhafte Konfiguration des Benachrichtigungstexts wäre: "notifications": {"text": "$AUTHOR: $ACTION | $SERVER $CHANNEL", "duration":"8000"}

  • blacklist: User-IDs, welche keine Commands ausführen können, z.B. "blacklist": ["8", "69420", "2439422109419"]

  • webcamdelay: Wie lange gewartet wird, bis ein Foto mit der Webcam gemacht wird (in Sekunden)

  • control_panel_hotkey (ehem. do_not_disturb_hotkey): Der Hotkey zum Aufrufen des Control-Panels "control\_panel\_hotkey": "alt+end" | Für zulässige Tastenkombinationen, siehe hier

  • folder: Der zu verwendende Ordner für den Command folder, leer lassen, um den Command zu deaktivieren. Z.B: "folder": "/home/niklas/Bilder"

  • cooldown: Wie lange die Ausführung vom Screenshot- und Webcam-Command verweigert wird nachdem er einmal ausgeführt wurde (in s)

Starten des Bots

  • Nachdem alle Dependencies installiert sind und die config.json erstellt wurde, kann der Bot gestartet werden.

  • Starten des Bots auf Linux: sudo python3 main.py

  • Starten des Bots auf Windows: Durch Doppelklicken der Exe-Datei oder (mit installiertem Python-Interpreter) Doppelklicken der main.py-Datei

stalkbot's People

Contributors

jerrynicki avatar

Stargazers

sirup avatar

Watchers

James Cloos avatar  avatar

stalkbot's Issues

Cursor Command

Mit welchem man den Mauscursor an eine angegebene Position bewegen kann. (Mit Cooldown)
Zuerst #1 implementieren, da dieses Feature etwas intrusiv ist und es wahrscheinlich nicht jeder haben will

Warning Sounds

Command '['python3', 'warning_sound.py']' timed out after 2 seconds ist scheise was da los

hur

ensohn füg die folder funktion zu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.