The client token is in a file I keep locally and is referenced in the Sublime Text 3, and a simple batch file is used to start up the bot. This is not very optimized but it is fast enough since most Discord servers have less than 100000 members.Īll code was written in Python 3.6, and I edited Deuces code to make it Python 3 friendly (quite the headache). Player data is stored in once massive json which is opened and edited with every command that requires it. There are classes for players, cards,Īnd games for easier coding. The bot utilises many of the tools Discord.py offers, and the code is structured around the API. Discord bot written in Python 3 to play Texas Holdem and satisfy any other gambling desires on Discord.Ĭreated using Discord.py and Deuces - a poker hand evaluation library I found on Github ( ).Ģ021 Update: Due to the Discord.py library being rewritten, this will no longer work until I eventually translate all of the code to work with the rewrite.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |