Skip to content

Instantly share code, notes, and snippets.

@dclstn
Last active September 15, 2024 08:44
Show Gist options
  • Select an option

  • Save dclstn/a77903dd9b473b7179372d2e8923f4c5 to your computer and use it in GitHub Desktop.

Select an option

Save dclstn/a77903dd9b473b7179372d2e8923f4c5 to your computer and use it in GitHub Desktop.
Nighbot Pokédex Command - For looking up Pokémon and other Pokédex metrics

A server-less Nightbot command that utlizes a Cloudflare Worker to condense Pokédex API's API to be under 400 characters (Nighbot's urlfetch limit).

Adding to chat:

!commands !add !dex  📟 $(urlfetch https://pokedex.dclstn.workers.dev?pokemon=$(querystring))

How to use:

  • !dex <name or id> - will return details of a certain Pokémon.
  • !dex move <name or id> - will return details of a certain move.
  • !dex ability <name or id> - will return details of a certain ability.
  • !dex berry <name or id> - will return details of a certain berry.

Additional Usage:

Nightbot supports aliasing commands, which means you can use this command in combination with another:

!commands add !berry -a=!dex berry $(querystring)
  • !berry <name or id> - will now return details of a certain berry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment