Skip to content

Casino games for IRC using PircBotX. Features Blackjack and Texas Hold'em.

License

Notifications You must be signed in to change notification settings

brrr2/irccasino

Repository files navigation

irccasino

What is irccasino?

irccasino is a Java package that implements casino games for IRC using the PircBotX IRC library and Xerial SQLite JDBC Driver. A standalone bot is included, but the package can also be added to any existing PircBotX-based project. For more information, visit the project wiki on GitHub or join us on Freenode in ##casino and ##holdem.

Games

  • Blackjack
  • No Limit Texas Hold'em Poker
  • No Limit Texas Hold'em Tournament

Requirements

  1. Java 7 or higher
  2. PircBotX 1.9
  3. Xerial SQLite JDBC Driver

Standalone Setup

Create project

  1. Create a new project using your preferred IDE.
  2. Download the irccasino package into the source directory of the project.
  3. Download the PircBotX IRC library (JAR package).
  4. Download the SQLite JDBC driver (JAR package).
  5. Add both JAR packages to the build/compile path for the project.
  6. Set the project to run CasinoBot.java.

Configuration

  1. Copy the .help files and strlib.txt to the project run directory.

  2. Create irccasino.conf in the project run directory with the following contents:

    nick=bot nick
    password=bot password (optional)
    network=IRC network (e.g. chat.freenode.net)
    channel=IRC channels to auto-join (comma delimited)
    bjchannel=IRC channels to auto-start Blackjack (comma delimited)
    tpchannel=IRC channels to auto-start Texas Hold'em (comma delimited)
    ttchannel=IRC channels to auto-start Texas Hold'em Tournament (comma delimited)
    

Run standalone bot

  1. Run the project.
  2. Give the bot Op status in the channels that will run the games.
  3. While as channel Op in those channels, type the command .texaspoker, .texastourney or .blackjack to start that game in the channel.
  4. Other useful Op commands are .botquit, .reboot, .endgame, and .games.

Upgrading

  1. For versions 0.3.4 and lower, ensure that you use the latest library files (.help and strlib.txt).
  2. For versions 0.3.9 and higher, use the .migrate command from within any game to properly migrate game data from the previous version. Also ensure that you use the latest library files.

Contributors

brrr2 (Main Author)
Yky
RantingHuman

About

Casino games for IRC using PircBotX. Features Blackjack and Texas Hold'em.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages