ProphetDice Functions
Project description
ProphetDice
ProphetDice is a Python package designed to provide various utilities for Prophet Dice Bot functionality. It includes features such as automated betting, model training, and prediction.
Features
- Automated betting on PrimeDice
- Model training and prediction using SGDClassifier
- Online learning and model retraining
- Confidence-based bet adjustment
- Data handling and logging
Installation
You can install ProphetDice with pip:
pip install pdice
Configuration
[chrome]
user_data_dir = C:/Users/your user here/AppData/Local/Google/Chrome/User Data/
profile_directory = Profile 1
[api]
mistral_api = your mistral api here
google_api = your google api here
prophetdice_api = your prophetdice api here
username = your username here
maximum_bet = 0.1
base_bet = 0.01
Code Overview
ProphetDice is designed to automate betting on the PrimeDice platform. Here are some of the key features and functionalities of the code:
- Automated Betting: The code automates the betting process on PrimeDice by making predictions and placing bets based on those predictions. It uses a combination of random actions and model-based predictions to decide the bets.
- Model Training and Prediction: The code includes functionality for training a machine learning model (SGDClassifier) to make predictions about the outcomes of dice rolls. It supports both initial training and online learning, where the model is updated with new data as it becomes available.
- Confidence-Based Bet Adjustment: The betting strategy is adjusted based on the confidence of the model's predictions. This allows for more informed betting decisions and potentially better outcomes.
- Data Handling and Logging: The code handles data efficiently, storing results and conditions in a CSV file. It also includes logging to keep track of important events and errors during the betting process.
- Browser Automation: The code uses the undetected-chromedriver package to automate interactions with the PrimeDice website. It opens a browser, navigates to the betting page, and interacts with elements on the page to place bets.
- Configuration Management: The code reads configuration settings from a
config.inifile, allowing for easy customization of user data directory, profile directory, and API keys. - Error Handling: The code includes robust error handling to manage issues such as file not found errors, browser errors, and timeouts when waiting for elements on the page.
Overall, the ProphetDice package provides a comprehensive and automated solution for betting on PrimeDice, leveraging machine learning for predictions and confidence-based adjustments to optimize betting strategies.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prophetdicebot-0.2.tar.gz.
File metadata
- Download URL: prophetdicebot-0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6db8640e836e93ed2f8201edc897d5116f03ea19bb4861d7ac140a8df596a49
|
|
| MD5 |
b1d4123f3ff1bd88b6aeddce58ca188d
|
|
| BLAKE2b-256 |
a7ee77449002555c6f89b710830241194935b5cd8863856d9b26395c049b403a
|
File details
Details for the file prophetdicebot-0.2-py3-none-any.whl.
File metadata
- Download URL: prophetdicebot-0.2-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
754bd94c6cd9833eeb034d3e45c7178452a5855eca5559b4ee40177394940591
|
|
| MD5 |
da546a1021d7778004d0662d71b94b35
|
|
| BLAKE2b-256 |
d5bfb4429a2fd611bb12bc3397b0889222f7b851c55dc2007868b45c26db5bc3
|