A bot to play Blackjack on your Discord server.
- Customizable betting rules
- Play games in Threads or Game Chats
- Card display in Direct Messages or Game Chat for a more personalized experience
- Languages: JavaScript, TypeScript
- Frameworks: Discord.js
- Other Technologies: dotenv for environment variable management
To get a local copy up and running, follow these steps.
-
Clone the repository:
git clone https://github.com/77EnderGuy77/BlackJack-bot.git
-
Navigate to the project directory:
cd blackjack
-
Install dependencies:
npm install
-
Set up your environment variables (if necessary):
cp .env.example .env
Fill in the required fields in the
.env
file, such as your Discord bot token.
To get Guild ID and Client ID you must turn on developer mode in setings, Enable Discord Developer Mode (Desktop, Web)
-
Open the Discord app and click on the Settings gear icon at the bottom-left corner of the screen.
-
Next, click on “Advanced” in the left sidebar on Discord’s settings page.
-
Now, turn on the “Developer Mode” toggle to enable developer mode to Copy ID on Discord. You now have access to all developer-centric features that the popular chat app has to offer.
-
Guild ID referce to Server ID that bot in or will be
-
Client ID referce to Bots ID that you created
-
To build bot, run:
npm run build
To add commands to use for bot, run:
npm run coms
To start the bot, run:
npm run start
Once the bot is running, you can add it to your server and start playing Blackjack in designated channels! The bot supports starting games in threads or specified game chat channels, and players can choose to receive their cards in a direct message or in the game chat.
The future plan for this "bot" can be read here
Contributions are welcome and appreciated! To contribute:
- Fork the repository.
- Create your feature branch (
git checkout -b feature/AmazingFeature
). - Commit your changes (
git commit -m 'Add some AmazingFeature'
). - Push to the branch (
git push origin feature/AmazingFeature
). - Open a pull request.
Distributed under the MIT License. See LICENSE
for more information.