Free Friday (5/3/24) (Make Up)
Today I created a discord bot using discord.py. I started by going to the discord developer portal and creating an “app” (aka the bot) and getting the client token. Now that we have the client token we can use discord.py to program how the bot will behave.
Here’s my code:
I created a flip coin function that randomly decides between heads and tails. the bot awaits and detects a user saying the Command “*flip” and returns either Heads or Tails using the function.
Here’s an example:
I plan on adding more commands soon and I had a lot of fun with this one!!
Comments
Free Friday (5/3/24) (Make Up) — No Comments
HTML tags allowed in your comment: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>