AgustinSRG / Pokemon-Showdown-Node-Bot

Pokemon Showdown Bot for Node (Deprecated)
Other
34 stars 150 forks source link

Enable leaderboards and add old gen teams #33

Closed Flareninja closed 8 years ago

Flareninja commented 8 years ago

Hi, how can I enable leaderboard in a room?

And how I give rby/gsc teams?It tells me "Error: Invalid team data"

Ecuacion commented 8 years ago

You can enable it in the config, see https://github.com/Ecuacion/Pokemon-Showdown-Node-Bot/blob/master/config-example.js#L302-L311

Add in config.js something like this and replace 'tournaments' for the corresponding room id.

exports.leaderboards = {};

exports.leaderboards['tournaments'] = {
    winnerPoints: 5,
    finalistPoints: 3,
    semiFinalistPoints: 1,
    battlePoints: 0
};

Also, i'll check the bug with rby/gsc teams

Ecuacion commented 8 years ago

Bug fixed in 912c90e3cd396985a3d2381a0259f65dc1eebd90

Flareninja commented 8 years ago

Thanks

Flareninja commented 8 years ago

I noticed that when there is a suspect the teams given before the suspect don't work, what can I do?

Ecuacion commented 8 years ago

Do you mean teams with Gothitelle shadow tag for example? You can simply delete the teams no longer valid for the tier with team delete, [team-id]. You can view all teams ids with teamslist

https://github.com/Ecuacion/Pokemon-Showdown-Node-Bot/tree/master/commands#battle

Flareninja commented 8 years ago

I mean that when there is in progress a suspect test, the tier changes name and the teams given before don't work(the bot tells that it hasn't teams in that tier) (Sorry for my english)

Ecuacion commented 8 years ago

This behavior is intentional. That's because OU and OU (Suspect test) are different formats with maybe different rules. So you must add new teams for OU (Suspect test), because OU teams can be invalid.

Flareninja commented 8 years ago

Ok, thanks