Skip to content

Add a chosen amount of chips to all players on a discord server using this bot.

Notifications You must be signed in to change notification settings

iqramchoudhury/Discord-Poker-Chips-Adder-Bot-For-Poker-Now

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Background

This bot was created in response to a discord server which had a large number of users who were using the poker now discord app as well as a significant number of users who were not. A problem arose when we wanted to add chips to all users playing without having to repeat the command for adding chips each time for every user. The code below creates a bot which calls the command for adding chips to all current players using a single command.

Example

Typing command image Command result image

How to use the Bot

  1. Run the python file after making the recommened changes to the code detailed in the next section.
  2. Download the csv containing every players rankings using the command !pcr all.
  3. Change the name of this file to the one you specify in the changed code (again see below).
  4. Type either the following commands to add/remove chips respectively !Add_Chips (amount) / !Remove_Chips (amount).

Changes to Code (Required)

The bot works on the basis that poker now has a downloadable folder which contains all the current players names when the command '!pcr all' is called. After the name of the folder has been changed, the bot iterates through the current players names and adds the chosen number of chips to every player.

To implement this bot in your server you must change a few things in my code given to you, these are highlighted in the image below:

  • The file path of the downloaded csv must be changed to where it will be on ur computer.
  • The final file name of the csv must be changed to something of your choice, don't forget to change the name of the csv after downloading it.
  • The token of the bot you create must be added.

Code image

Further Notes

This bot can be used as a template to create a discord bot that iterates a command of another bot. I couldn't find any examples of this before making this bot. Obviously, the constraint is this bot requires a list of names in a csv file, however there are many solutions available if this is not ideal for your situation.

Finally this bot would not be needed without the highly polished poker now bot: https://network.pokernow.club/poker_club_discord_bots

About

Add a chosen amount of chips to all players on a discord server using this bot.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages