Skip to content

EpicnessTwo/PiShockDiscord

Repository files navigation

PiShockDiscord (Alpha)

ko-fi

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

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.

Commands

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.

Prerequisites

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

Installation

1. Clone the Repository

git clone https://github.com/EpicnessTwo/PiShockDiscord.git
cd PiShockDiscord

2. Install Dependencies

Navigate to the project directory and install the required npm packages:

npm install

3. Configuration

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.

4. Publish the slash commands

node deploy.js

5. Start the bot

node index.js

Database Setup

The bot automatically initializes the SQLite database to store logs. Ensure you have write permissions in the bot's directory.

Contribution

Feel free to fork the repository and submit pull requests.

License

This project is licensed under the MIT License.

Disclaimer

This bot is intended for entertainment purposes. Use responsibly and ensure all participants have given consent for its use.

Releases

No releases published

Packages

No packages published