- Rust 100%
| .idea | ||
| migrations | ||
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
Potato Assistant
Potato Assistant is a Discord bot written in Rust, using the serenity-rs and poise libraries. It provides various functionalities to enhance your Discord server experience, including integration with Minecraft servers running on Docker.
Prerequisites
- Rust programming language
- Cargo package manager
- Docker
Installation
- Clone the repository:
git clone https://forge.dwnet.uk/wizardfrag/potato_assistant.git
- Navigate to the project directory:
cd Potato-Assistant
- Build the project:
cargo build --release
Configuration
Potato Assistant requires the DISCORD_TOKEN environment variable to be set. This is the token of the Discord bot that you want to run the code on.
You can set the environment variable in your shell like so:
export DISCORD_TOKEN=your_discord_token_here
Or you can use a .env file in the root of the project with the following content:
DISCORD_TOKEN=your_discord_token_here
Running
After setting the DISCORD_TOKEN environment variable, you can run the bot with:
cargo run
Minecraft Integration
Potato Assistant can integrate with Minecraft servers running on Docker. It uses the PlayerDB API to fetch player data, and provides commands to look up a player's UUID, username, and avatar, set a Minecraft username, and check a Minecraft UUID.
Future features will allow controlling the Minecraft server from Discord. It depends on the Minecraft server being run in a Docker container using itzg/minecraft-server.
Ensure the Docker daemon is accessible from the host running Potato Assistant.
Features
Potato Assistant provides various commands and features to enhance your Discord server experience. For more details, please refer to the source code.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.