Skip to main content

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.ini file, 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prophetdicebot-0.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prophetdicebot-0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file prophetdicebot-0.1.tar.gz.

File metadata

  • Download URL: prophetdicebot-0.1.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

Hashes for prophetdicebot-0.1.tar.gz
Algorithm Hash digest
SHA256 3ca2f51163876e02acf3be9fba37e2f7ba7957239ae82ee3645bba93225fbd6a
MD5 767b0b42c226d0a2cdb8cc05260d440b
BLAKE2b-256 5f8af1ea35fef8f08659b0ba1b1fb9643620ca48d364213fc81f3136dae091d5

See more details on using hashes here.

File details

Details for the file prophetdicebot-0.1-py3-none-any.whl.

File metadata

  • Download URL: prophetdicebot-0.1-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

Hashes for prophetdicebot-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5032a5010b80cf534877a0c346165e74469768dcee50ebdb9e9e5569b9ea42a9
MD5 e92429cd18df53db09c1b704ce67af03
BLAKE2b-256 9e5e5facb343df5a451ab8ff4a3368d8a80541b368c5cb2359724261b3ca30c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page