NightDev Community Forums

[CustomAPI] Pokémon command

Credits

Credit for this being possible is due to @ehsankia and his Quote Api without it I would of had no way of making this command so thank him.
Also, credit to @thegreenofspades for the use of his Pokémon pastebin (Thank You).

What it Does

Keeps track of Pokémon you have caught Xp, Money, Pokéballs, and Level.

Getting tokens for commands

To get the tokens needed for this command please go here https://twitch.center/customapi/quote/generate and find the 8 and 16 digit tokens.
They are after “token=” and before “&data” the 8 digit one is your PUBLIC_TOKEN and is free to share, your 16 digit one is you PRIVATE_TOKEN and should not be shared.

Adding the commands

  • First Command: This is the command users will be calling on so I suggest names such as “!p” or “p” but can be called what ever.
$(eval a="$(urlfetch json https://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN&no_id=1)".split(",");PcatchSub1="$(urlfetch json https://pastebin.com/raw/6AfagFQq)".split(",");user="$(user)";One="$(1)";OneL=One.toLowerCase();Two="$(2)";Three="$(3)";Token="PRIVATE_TOKEN";$(urlfetch json https://pastebin.com/raw/jiHDV3wT))

Put the alias of this command the same as the second command I suggest _p
Leave userlevel as everyone

  • Second Command: I suggest calling this command _p
$(eval a="$(urlfetch https://twitch.center/customapi/addquote?token=$(1)&data=,$(user)%20$(2)%20$(3)%20$(4)%20$(5)%20$(6))";user="$(user)";Query="$(query)".split(" ");Data="$(urlfetch json https://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN&no_id=1)".split(",");$(urlfetch json https://pastebin.com/raw/74phrJ2d))

No alias needed for this command
Leave userlevel as everyone

  • Third Command: Call this one !pdelete
$(urlfetch https://twitch.center/customapi/delquote?token=PRIVATE_TOKEN&data=$(1))

No alias needed for this one.
Set userlevel to moderator.

  • Fourth Command: Optional this will just let you look at the data can be called whatever.
Check here for the Pokémon data: https://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN

No alias necessary
Just leave userlevel set to everyone

Possible Arguments

  • Buy {Amount}
  • Catch
  • Stats
  • Inventory
  • Inven
  • Help
  • Pokemon {Amount}
  • Pokémon {Amount}

Testing command

If you are looking for a place to test out the command I have it set up on a discord server Here

Notes

There are currently only two generations added as of currently more will come in the future.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.