Gyms

Order

 * 1) Rock
 * 2) Water
 * 3) Electric
 * 4) Grass
 * 5) Poison
 * 6) Psychic
 * 7) Fire
 * 8) Dark
 * 9) Ground {Elite}
 * 10) Ice {Elite}
 * 11) Fighting {Elite}
 * 12) Dragon {Elite}
 * 13) Champion {Permament}
 * 14) Player Champion {Changes}

Conditions

 * You must have beaten all gyms prior to the one you want to challenge {check using /gym list}
 * You can only use Pokemon up to ten levels higher than the gym leader's Pokemon

Challenging a gym
Firstly, check to see if the gym is open; all open gyms are shown to the right of your screen, under "Open Gyms". If the gym is open, open chat, and type in /gym join gym#. Replace the hash with the gym number, shown to the right of the gym name in the open gyms list.

When the gym leader is ready you will be teleported to the gym, your Pokemon being automatically healed. Send out one of your Pokemon and the leader will do the same, and hopefully a battle challenge screen will appear; click accept. Once you've battled the leader & won, you'll receive a badge (viewable with the command /gym see ), permission to challenge the next gym and with some gyms such as the champion, special rewards.