Discord.js – PokeAPI integration with bot
I came across a funny little piece of code that integrates a HUGE database of all the different Pokémons. You can make API calls and get back data from the site in JSON format. I …
I came across a funny little piece of code that integrates a HUGE database of all the different Pokémons. You can make API calls and get back data from the site in JSON format. I …
Note! This assumes that you have a working bot, that uses the command handling from: https://discordjs.guide/command-handling/#individual-command-files, that you use Visual Studio Code (VSC from here) as the editor of choice. (This is what I use, …
This post and code assumes that you have used the following command handler in your index.js file: static: https://discordjs.guide/command-handling/ and for dynamic: https://discordjs.guide/command-handling/dynamic-commands.html This is a basic feature and gives great and simple command handling …
I wrote a simple little “game” – Coinflip (aliases coin and flip). It’s really as simple as a random function that returns either 0 or 1, and assigning heads/tails as you want.The code is without …