Quick discord bot written with discord.py, made for Uncharity Vigil 2023.
Uses shelve for persistent storage and pynput for pressing keys on the host :)
Install requirements (check requirements file)
Edit .env with your bot token and authentication role, invite the bot to your server
Run main.py
FIRST TIME: Server owner should run $sync to push slash commands to discord
$setcredits <USER> <NUMBER>($scr): sets a given users credit count to the number given
$addcredits <USER> <NUMBER>($acr): adds a given amount of credits to the given user
$credits <USER>($cr): prints the current amount of credits held by the given user
$sendinput <INPUT>($si) : Sends the given input to the computer, uses 1 credit. An input is a character, or a string consisting of a Key, or a KeyCode
$sendinputstring <INPUTSTRING> <DELAY>($sis): Iterates through the characters in INPUTSTRING and sends each to the computer with a delay of DELAY ms between each one.