This bot is very very alpha. The instructions are not complete and the bot is not ready for use. Please wait for a stable release.
PiShockDiscord is a Discord bot designed to interact with the PiShock API, allowing users to control PiShock devices through Discord slash commands. The bot supports commands such as /shock, /vibrate, /beep, and /info, with options to specify the intensity and duration of the actions.
Features
- Trigger shocks, vibrations, and beeps on PiShock devices.
- Configure intensity and duration for each action.
- Restrict access to certain users and provide admin capabilities.
- Store logs in a SQLite database.
- Fetch and display usage statistics.
Command | Description |
---|---|
/shock | Shock one/all device(s). |
/vibrate | Vibrate one/all device(s). |
/beep | Beep one/all device(s). |
/add | Add your device to the database. |
/remove | Remove your device from the database. |
/debug | Get information about a device. |
/stats | Generate a list of the top 10 shockers! |
/list | List all devices in the database. |
/config | Configure user levels. |
Admin Commands | Description |
---|---|
/adminadd | Add a device to the database. |
/adminremove | Remove a device from the database. |
/shockban | Ban a user from using the bot. |
/shockunban | Unban a user from using the bot. |
Before you begin, ensure you have met the following requirements:
- Node.js (v12.x or higher)
- npm (Node.js package manager)
- A Discord account and a registered Discord bot
- Access to the PiShock API
git clone https://github.com/EpicnessTwo/PiShockDiscord.git
cd PiShockDiscord
Navigate to the project directory and install the required npm packages:
npm install
Copy config.example.json to config.json:
cp config.example.json config.json
Edit config.json and fill in your Discord bot token, PiShock API credentials, and other necessary information.
node deploy.js
node index.js
The bot automatically initializes the SQLite database to store logs. Ensure you have write permissions in the bot's directory.
Feel free to fork the repository and submit pull requests.
This project is licensed under the MIT License.
This bot is intended for entertainment purposes. Use responsibly and ensure all participants have given consent for its use.