KamilaBorowska / showdown2irc

Converter of Showdown protocol to IRC protocol
Other
9 stars 1 forks source link

Add support for /data commands #5

Open KamilaBorowska opened 8 years ago

KamilaBorowska commented 8 years ago

This will involve getting Pokemon data, because those commands expect client to know all the information about Pokemon already.

KamilaBorowska commented 7 years ago

To help implementing this feature for people who didn't do anything with Pokemon Showdown before (hey, let's try out that Hacktoberfest thing), the messages look like this (~ is username, because c (chat message) command requires an username):

|c|~|/data-pokemon Pikachu
|c|~|/data-ability Static
|c|~|/data-move Thunderbolt

You obtain those messages by using /data command on Showdown. For instance, /data Pikachu. After getting those messages, you want to use showdown.ToID function on their arguments (which will change Pikachu into pikachu and so on), and pass those to functions like GetPokemon.

This is a converter of Pokemon Showdown chat protocol to IRC protocol, so you may want to register an account on https://play.pokemonshowdown.com/. No e-mail necessary.

showdown2irc is an IRC server that runs on localhost, port 6667. Type your nickname in "Real name" field (because it can contain spaces), and password in password field.

Pokemon data is already in pokemon directory, it's a matter of implementing chat parsers (similar to /me command) that output data (see showdowncommands.go).

If you need help implementing this, feel free to ask in this issue. You can also try asking in Development room on Showdown if you need help about a protocol (you need to login to be able to enter a room), but please keep in mind this isn't showdown2irc development room, and users here won't be able to help with showdown2irc itself or Go programming language.

Good luck (I do admit I'm a little bit lazy, but I believe this issue to be easy, and I suppose a neat exercise in Go programming language). I'm willing to help (the source code has some quirks here and there), so feel free to ask if you need.