Skip to content

Discord Puzzle Bot - A fun and educational Discord bot that generates a picture puzzle game. Users can play by rearranging tiles to solve the puzzle. Perfect for kids and adults to enjoy and challenge their puzzle-solving skills with friends on Discord!

Notifications You must be signed in to change notification settings

raavan4m3/Discord-Bot

Repository files navigation

Discord Puzzle Bot Overview The Discord Puzzle Bot is an engaging and interactive bot designed for Discord servers to play a picture puzzle game. Users can start a puzzle, swap tiles to solve it, and track their scores. The bot is easy to set up and integrates seamlessly with Discord to provide a fun and interactive experience for users.

Demo Video

![Watch the video]

Why Adopt This Tool? Interactive Gameplay: Adds a unique and entertaining puzzle game to your Discord server, keeping members engaged and having fun. Easy Integration: Works directly within Discord, making it simple to interact with and use without leaving the platform. Score Tracking: Tracks user scores and provides feedback, adding a competitive element to the game. How It Works Start a Puzzle: Use the !start_picture_puzzle command to initiate a new puzzle. The bot scrambles an image and displays it in the chat along with interactive buttons. Solve the Puzzle: Click the "Solve Puzzle" button to reveal the original image once the puzzle is solved. Swap Tiles: Use the !swap_tiles [index1] [index2] command to swap two tiles in the puzzle. The bot will update the puzzle image based on your swaps. Submit a Guess: Use the !submit_guess [guess] command to submit a guess and receive feedback on its correctness.

.env File The .env file is used to store environment variables that are essential for running the bot, such as your Discord bot token. To use the bot, follow these steps:

Create a .env File: In the root directory of your project, create a file named .env. Add Your Token: Open the .env file and add your Discord bot token in the following format: DISCORD_TOKEN=your-discord-bot-token Replace your-discord-bot-token with your actual bot token. Keep It Private: Ensure the .env file is not included in version control by adding it to your .gitignore file. This prevents sensitive information from being pushed to public repositories.

Requirements:- Rust Cargo A Discord bot token

Usage:- !start_picture_puzzle: Starts a new puzzle with a scrambled image. !submit_guess [guess]: Submits a guess for the puzzle. !swap_tiles [index1] [index2]: Swaps two tiles in the puzzle. Example !swap_tiles 3 4

Acknowledgments:- Serenity - Discord API library for Rust Reqwest - HTTP client for Rust Image - Image processing library for Rust.

About

Discord Puzzle Bot - A fun and educational Discord bot that generates a picture puzzle game. Users can play by rearranging tiles to solve the puzzle. Perfect for kids and adults to enjoy and challenge their puzzle-solving skills with friends on Discord!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages