Skip to content

snowmaple5891/discord-gamble_bot

Repository files navigation

discord_gamblebot

A discord bot with simple commands to gamble or play games with unreal currency on discord


BOT introduction

functions and commands

blackjack.py

;create_bjgame
create blackjack game text

image

;joingame [amount]
join blackjack game and update the previous message by editting it

image

;startgame
the discord bot will DM you which card you draw
the channel you start Blackjack game DM channel
image image
;hit
draw another card

image

;stand
end doing operation to your cards, you will get a hyperlink to transfer back to the previous channel

image

RESULT

  • the time in the footage is UTC+8

image

gamble_entertain.py

;timely
withdraw your money every 9 hours

image

;br [amount]
Bets a certain amount of money by rolling a dice
if you rolled 1, yields x5 of your currency
rolling over 66 yields x2 of your currency, over 90 -> x4 and over 100 -> x10
For Examble: ;br 100

image

;bf [amount] [orientation]
flip a coin and guess which direction it is facing, h = head, t = tail
For Examble: ;bf 100 h

image

;wheel [amount]
bet your currency by turning a wheel
For Examble: ;wheel 100

image

gamble_function.py

;info
show your total money

;donate [target] [amount]
For Example: ;donate @雪楓OuO 200

;lb
show total currency leader board in this guild

;shop
show shop detail, merchandise and price

;buy [index]
buy certain merch in shop
(this function only include money decrement)

;add_merch(for guild manager only)
add merchandise to shop

remain archives

gamble_config.py

  • several functions to support situation judgment

gamble_manage.py

  • commands for guild manager to better manage their guild

gamble_event.py

  • a function for guild members to get specific roles by adding reaction to specific message

bot settings and other related

setting.json

remember to put your DISCORD BOT TOKEN in this file, look at the following picture for more details

transmit information in setting.json: use jdata[key] and insert the following coding on top of your code

image image

extension.txt

type your remain files name in this txt file because the main file must know which file to load while excecuting the bot

image

image


Endings

this code is free for any usage

feel free to ask me any question about this code on discord

Author

Girhub: snowmaple5891

Discord:

  • name: 雪楓OuO
  • discriminator(#): 2021

About

a discord bot that can bet unreal currency and play game on discord

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages