Welcome to the first release of Dartlog! 🎉 Dartlog is a Discord bot designed to enhance your darts gaming experience by providing real-time statistics, player comparisons, and more.
- Real-Time Player Statistics: Fetch comprehensive stats for your favorite darts players directly within Discord.
- Player Comparisons: Compare two players si 807E de-by-side to analyze their performance metrics.
- Last Matches Overview: Get detailed information about the latest matches, including opponents, dates, and scores.
- Premium User Support: Exclusive features and statistics for premium members.
- Interactive Commands: Easy-to-use commands to retrieve the information you need quickly.
To get started with Dartlog, follow these simple steps:
-
Clone the Repository:
git clone https://github.com/yourusername/dartlog.git cd dartlog -
Install Dependencies: Ensure you have Python 3.8 or higher installed. Then, install the required packages:
pip install -r requirements.txt
-
Set Up Environment Variables: Create a
.envfile in the project root and add your Discord bot token:DISCORD_TOKEN=your_discord_bot_token
-
Run the Bot Locally:
python run.py
-
Deploy to Railway:
- Connect your GitHub repository to Railway.
- Add the DISCORD_TOKEN environment variable in Railway's project settings.
- Ensure your Procfile contains:
worker: python run.py - Deploy the project and monitor the logs for any issues.
Once the bot is up and running, you can use the following commands in your Discord server:
-
!stats [player_name] [date_from] [date_to]
- Retrieves statistics for the specified player within the given date range.
- Example:
!stats "John Doe" 2023-01-01 2023-03-01
-
!compare [player1_name] [player2_name]
- Compares statistics between two players.
- Example:
!compare "John Doe" "Jane Smith"
-
!tournament [tournament_name]
- Fetches detailed information and statistics about a specific tournament.
- Advanced Usage: You can also specify two players to get insights into their head-to-head performance within the tournament.
- Examples:
!tournament "World Darts Championship" !tournament "World Darts Championship" "John Doe" "Jane Smith"
-
!premiumstats [player_name]
- Access premium-level statistics for the specified player, available exclusively to premium users.
- Example:
!premiumstats "John Doe"
We welcome contributions from the community! To contribute:
- Fork the Repository
- Create a New Branch:
git checkout -b feature/YourFeature
- Commit Your Changes
- Push to the Branch:
git push origin feature/YourFeature
- Open a Pull Request
Please ensure that all tests pass and adhere to the project's coding standards.
This project is licensed under the MIT License.
Thank you for using Dartlog! If you encounter any issues or have suggestions, feel free to reach out or contribute to the repository.