pokemon-showdown/config/config-example.js
2012-04-08 22:35:25 -04:00

49 lines
2.1 KiB
JavaScript

// The server port - the port to run Pokemon Showdown under
exports.port = 8000;
// The server ID - a unique ID describing this Showdown server
exports.serverid = 'testserver';
// The server token - to access the login database and ladder on pokemonshowdown.com
// This token must be registered for accessing the ladder, but you will
// still be able to login with an unregistered token.
exports.servertoken = 'exampletoken-382hgraw4jr2tioq';
// login server URL - don't forget the http:// and the trailing slash
// This is the URL of the user database and ladder mentioned earlier.
// Don't change this setting - there aren't any other login servers right now
exports.loginserver = 'http://play.pokemonshowdown.com/';
// Pokemon of the Day - put a pokemon's name here to make it Pokemon of the Day
// The PotD will always be in the #2 slot (not #1 so it won't be a lead)
// in every randomly-generated team.
exports.potd = '';
// crash guard - write errors to log file instead of crashing
// This is normally not recommended - if Node wants to crash, the
// server needs to be restarted
// Unfortunately, socket.io bug 409 requires some sort of crash guard
// https://github.com/LearnBoost/socket.io/issues/609
exports.crashguard = true;
// local sysop - automatically promote users who connect from
// 127.0.0.1 to sysop
exports.localsysop = false;
// report joins and leaves - shows messages like "<USERNAME> joined"
// Join and leave messages are small and consolidated, so there will never
// be more than one line of messages.
// This feature can lag larger servers - turn this off if your server is
// getting more than 80 or so users.
exports.reportjoins = true;
// report battles - shows messages like "OU battle started"
// This feature can lag larger servers - turn this off if your server is
// getting more than 160 or so users.
exports.reportbattles = true;
// moderated chat - prevent unregistered, unvoiced users from speaking
// This should only be enabled temporarily, when you're dealing with
// huge influxes of spammy users.
exports.modchat = false;