This bot allows users to play Blackjack online through Discord. This bot was written in Java 17 using IntelliJ IDEA and is designed to be used on small Discord servers.
- Add a file titled
config.properties
into the folder. - Add the following to the file (replace
{Discord bot token}
with your bot's token)
token={Discord bot token}
-
If on Windows:
gradlew build
move build\libs\blackjackbot-1.0.0.jar .
java -jar blackjackbot-1.0.0.jar
-
If on macOS/Linux
chmod +x gradlew
./gradlew build
mv build/libs/blackjackbot-1.0.0.jar .
java -jar blackjackbot-1.0.0.jar
To play Blackjack with the bot, type /blackjack <bet>
in any channel that the bot is allowed to read and send messages.
Type /help
for help on how to play Blackjack as well as strategy help.
- Javacord 3.5.0 (https://github.com/Javacord/Javacord)
- JSONSimple 1.1.1 (https://github.com/fangyidong/json-simple)