SHARE
TWEET

config.js k

a guest Mar 20th, 2016 36 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'use strict';
  2.  
  3. // The server port - the port to run Pokemon Showdown under
  4. exports.port = 8000;
  5.  
  6. exports.serverid = 'flash';
  7.  
  8. exports.servertoken = 'hEU7lmrxoPuG';
  9.  
  10. // proxyip - proxy IPs with trusted X-Forwarded-For headers
  11. //   This can be either false (meaning not to trust any proxies) or an array
  12. //   of strings. Each string should be either an IP address or a subnet given
  13. //   in CIDR notation. You should usually leave this as `false` unless you
  14. //   know what you are doing.
  15. exports.proxyip = ["10.0.0.0/8", "127.0.0.0/8"];
  16.  
  17. // Pokemon of the Day - put a pokemon's name here to make it Pokemon of the Day
  18. //   The PotD will always be in the #2 slot (not #1 so it won't be a lead)
  19. //   in every Random Battle team.
  20. exports.potd = '';
  21.  
  22. // crash guard - write errors to log file instead of crashing
  23. //   This is normally not recommended - if Node wants to crash, the
  24. //   server needs to be restarted
  25. //   Unfortunately, socket.io bug 409 requires some sort of crash guard
  26. //   https://github.com/LearnBoost/socket.io/issues/609
  27. exports.crashguard = true;
  28.  
  29. // login server data - don't forget the http:// and the trailing slash
  30. //   This is the URL of the user database and ladder mentioned earlier.
  31. //   Don't change this setting - there aren't any other login servers right now
  32. exports.loginserver = 'http://play.pokemonshowdown.com/';
  33. exports.loginserverkeyalgo = "RSA-SHA1";
  34. exports.loginserverpublickeyid = 2;
  35. exports.loginserverpublickey = "-----BEGIN RSA PUBLIC KEY-----\n" +
  36.     "MIICCgKCAgEAtFldA2rTCsPgqsp1odoH9vwhf5+QGIlOJO7STyY73W2+io33cV7t\n" +
  37.     "ReNuzs75YBkZ3pWoDn2be0eb2UqO8dM3xN419FdHNORQ897K9ogoeSbLNQwyA7XB\n" +
  38.     "N/wpAg9NpNu00wce2zi3/+4M/2H+9vlv2/POOj1epi6cD5hjVnAuKsuoGaDcByg2\n" +
  39.     "EOullPh/00TkEkcyYtaBknZpED0lt/4ekw16mjHKcbo9uFiw+tu5vv7DXOkfciW+\n" +
  40.     "9ApyYbNksC/TbDIvJ2RjzR9G33CPE+8J+XbS7U1jPvdFragCenz+B3AiGcPZwT66\n" +
  41.     "dvHAOYRus/w5ELswOVX/HvHUb/GRrh4blXWUDn4KpjqtlwqY4H2oa+h9tEENCk8T\n" +
  42.     "BWmv3gzGBM5QcehNsyEi9+1RUAmknqJW0QOC+kifbjbo/qtlzzlSvtbr4MwghCFe\n" +
  43.     "1EfezeNAtqwvICznq8ebsGETyPSqI7fSbpmVULkKbebSDw6kqDnQso3iLjSX9K9C\n" +
  44.     "0rwxwalCs/YzgX9Eq4jdx6yAHd7FNGEx4iu8qM78c7GKCisygZxF8kd0B7V7a5UO\n" +
  45.     "wdlWIlTxJ2dfCnnJBFEt/wDsL54q8KmGbzOTvRq5uz/tMvs6ycgLVgA9r1xmVU+1\n" +
  46.     "6lMr2wdSzyG7l3X3q1XyQ/CT5IP4unFs5HKpG31skxlfXv5a7KW5AfsCAwEAAQ==\n" +
  47.     "-----END RSA PUBLIC KEY-----\n";
  48.  
  49. // crashguardemail - if the server has been running for more than an hour
  50. //   and crashes, send an email using these settings, rather than locking down
  51. //   the server. Uncomment this definition if you want to use this feature;
  52. //   otherwise, all crashes will lock down the server.
  53. /**exports.crashguardemail = {
  54.     options: {
  55.         host: 'mail.example.com',
  56.         port: 465,
  57.         secure: true,
  58.         auth: {
  59.             user: 'example@domain.com',
  60.             pass: 'password'
  61.         }
  62.     },
  63.     from: 'crashlogger@example.com',
  64.     to: 'admin@example.com',
  65.     subject: 'Pokemon Showdown has crashed!'
  66. };**/
  67.  
  68. // report joins and leaves - shows messages like "<USERNAME> joined"
  69. //   Join and leave messages are small and consolidated, so there will never
  70. //   be more than one line of messages.
  71. //   If this setting is set to `true`, it will override the client-side
  72. //   /hidejoins configuration for users.
  73. //   This feature can lag larger servers - turn this off if your server is
  74. //   getting more than 80 or so users.
  75. exports.reportjoins = true;
  76.  
  77. // report joins and leaves periodically - sends silent join and leave messages in batches
  78. //   This setting will only be effective if `reportjoins` is set to false, and users will
  79. //   only be able to see the messages if they have the /showjoins client-side setting enabled.
  80. //   Set this to a positive amount of milliseconds if you want to enable this feature.
  81. exports.reportjoinsperiod = 0;
  82.  
  83. // report battles - shows messages like "OU battle started" in the lobby
  84. //   This feature can lag larger servers - turn this off if your server is
  85. //   getting more than 160 or so users.
  86. exports.reportbattles = true;
  87.  
  88. // report joins and leaves in battle - shows messages like "<USERNAME> joined" in battle
  89. //   Set this to false on large tournament servers where battles get a lot of joins and leaves.
  90. //   Note that the feature of turning this off is deprecated.
  91. exports.reportbattlejoins = true;
  92.  
  93. // whitelist - prevent users below a certain group from doing things
  94. //   For the modchat settings, false will allow any user to participate, while a string
  95. //   with a group symbol will restrict it to that group and above. The string
  96. //   'autoconfirmed' is also supported for chatmodchat and battlemodchat, to restrict
  97. //   chat to autoconfirmed users.
  98. //   This is usually intended to be used as a whitelist feature - set these to '+' and
  99. //   voice every user you want whitelisted on the server.
  100.  
  101. // chat modchat - default minimum group for speaking in chatrooms; changeable with /modchat
  102. exports.chatmodchat = false;
  103. // battle modchat - default minimum group for speaking in battles; changeable with /modchat
  104. exports.battlemodchat = false;
  105. // pm modchat - minimum group for PMing other users, challenging other users, and laddering
  106. exports.pmmodchat = false;
  107.  
  108. // forced timer - force the timer on for all battles
  109. //   Players will be unable to turn it off.
  110. //   This setting can also be turned on with the command /forcetimer.
  111. exports.forcetimer = false;
  112.  
  113. // backdoor - allows Pokemon Showdown system operators to provide technical
  114. //            support for your server
  115. //   This backdoor gives system operators (such as Zarel) console admin
  116. //   access to your server, which allow them to provide tech support. This
  117. //   can be useful in a variety of situations: if an attacker attacks your
  118. //   server and you are not online, if you need help setting up your server,
  119. //   etc. If you do not trust Pokemon Showdown with admin access, you should
  120. //   disable this feature.
  121. exports.backdoor = true;
  122.  
  123. // List of IPs and user IDs with dev console (>> and >>>) access.
  124. // The console is incredibly powerful because it allows the execution of
  125. // arbitrary commands on the local computer (as the user running the
  126. // server). If an account with the console permission were compromised,
  127. // it could possibly be used to take over the server computer. As such,
  128. // you should only specify a small range of trusted IPs and users here,
  129. // or none at all. By default, only localhost can use the dev console.
  130. // In addition to connecting from a valid IP, a user must *also* have
  131. // the `console` permission in order to use the dev console.
  132. // Setting this to an empty array ([]) will disable the dev console.
  133. exports.consoleips = ['127.0.0.1'];
  134.  
  135. // Whether to watch the config file for changes. If this is enabled,
  136. // then the config.js file will be reloaded when it is changed.
  137. // This can be used to change some settings using a text editor on
  138. // the server.
  139. exports.watchconfig = true;
  140.  
  141. // logchat - whether to log chat rooms.
  142. exports.logchat = false;
  143.  
  144. // logchallenges - whether to log challenge battles. Useful for tournament servers.
  145. exports.logchallenges = false;
  146.  
  147. // loguserstats - how often (in milliseconds) to write user stats to the
  148. // lobby log. This has no effect if `logchat` is disabled.
  149. exports.loguserstats = 1000 * 60 * 10; // 10 minutes
  150.  
  151. // validatorprocesses - the number of processes to use for validating teams
  152. // simulatorprocesses - the number of processes to use for handling battles
  153. // You should leave both of these at 1 unless your server has a very large
  154. // amount of traffic (i.e. hundreds of concurrent battles).
  155. exports.validatorprocesses = 1;
  156. exports.simulatorprocesses = 1;
  157.  
  158. // inactiveuserthreshold - how long a user must be inactive before being pruned
  159. // from the `users` array. The default is 1 hour.
  160. exports.inactiveuserthreshold = 1000 * 60 * 60;
  161.  
  162. // tellsexpiryage - how long an offline message remains in existence before being removed.
  163. // By default, 7 days
  164. exports.tellsexpiryage = 1000 * 60 * 60 * 24 * 7;
  165.  
  166. // tellrank - the rank that offline messaging is available to. By default, available to voices
  167. // and above. Set to ' ' to allow all users to use offline messaging and `false` to disable
  168. // offline messaging completely. Set to `'autoconfirmed'` to allow only autoconfirmed users
  169. // to send offline messages.
  170. exports.tellrank = '+';
  171.  
  172. // database use to store user's money, tickets, etc.
  173. exports.database = 'lowdb';
  174.  
  175. // mysql configuration to create the connection to the database.
  176. exports.mysql = {
  177.     host: 'localhost',
  178.     user: 'me',
  179.     password: 'secret',
  180.     database: 'my_db'
  181. };
  182.  
  183. // Custom avatars.
  184. // This allows you to specify custom avatar images for users on your server.
  185. // Place custom avatar files under the /config/avatars/ directory.
  186. // Users must be specified as userids -- that is, you must make the name all
  187. // lowercase and remove non-alphanumeric characters.
  188. //
  189. // Your server *must* be registered in order for your custom avatars to be
  190. // displayed in the client.
  191. exports.customavatars = {
  192.     //'userid': 'example.jpg'
  193. };
  194.  
  195. // custom avatars appear in profile by specifiying server url.
  196. exports.avatarurl = 'http://flash.psim.us/';
  197.  
  198. // Tournament announcements
  199. // When tournaments are created in rooms listed below, they will be announced in
  200. // the server's main tournament room (either the specified tourroom or by default
  201. // the room 'tournaments')
  202. exports.tourroom = '';
  203. exports.tourannouncements = [/* roomids */];
  204.  
  205. // appealurl - specify a URL containing information on how users can appeal
  206. // disciplinary actions on your section. You can also leave this blank, in
  207. // which case users won't be given any information on how to appeal.
  208. exports.appealurl = '';
  209.  
  210. // replsocketprefix - the prefix for the repl sockets to be listening on
  211. // replsocketmode - the file mode bits to use for the repl sockets
  212. exports.replsocketprefix = './logs/repl/';
  213. exports.replsocketmode = 0o600;
  214.  
  215. // permissions and groups:
  216. //   Each entry in `grouplist' is a seperate group. Some of the members are "special"
  217. //     while the rest is just a normal permission.
  218. //   The order of the groups determines their ranking.
  219. //   The special members are as follows:
  220. //     - symbol: Specifies the symbol of the group (as shown in front of the username)
  221. //     - id: Specifies an id for the group.
  222. //     - name: Specifies the human-readable name for the group.
  223. //     - root: If this is true, the group can do anything.
  224. //     - inherit: The group uses the group specified's permissions if it cannot
  225. //                  find the permission in the current group. Never make the graph
  226. //                  produced using this member have any cycles, or the server won't run.
  227. //     - jurisdiction: The default jurisdiction for targeted permissions where one isn't
  228. //                       explictly specified. "Targeted permissions" are permissions
  229. //                       that might affect another user, such as `ban' or `promote'.
  230. //                       's' is a special group where it means the user itself only
  231. //                       and 'u' is another special group where it means all groups
  232. //                       lower in rank than the current group.
  233. //     - roomonly: forces the group to be a per-room moderation rank only.
  234. //     - globalonly: forces the group to be a global rank only.
  235. //   All the possible permissions are as follows:
  236. //     - console: Developer console (>>).
  237. //     - lockdown: /lockdown and /endlockdown commands.
  238. //     - hotpatch: /hotpatch, /crashfixed and /savelearnsets commands.
  239. //     - ignorelimits: Ignore limits such as chat message length.
  240. //     - promote: Promoting and demoting. Will only work if the target user's current
  241. //                  group and target group are both in jurisdiction.
  242. //     - room<rank>: /roompromote to <rank> (eg. roomvoice)
  243. //     - makeroom: Create/delete chatrooms, and set modjoin/roomdesc/privacy
  244. //     - editroom: Set modjoin/privacy only for battles/groupchats
  245. //     - ban: Banning and unbanning.
  246. //     - mute: Muting and unmuting.
  247. //     - lock: locking (ipmute) and unlocking.
  248. //     - receivemutedpms: Receive PMs from muted users.
  249. //     - forcerename: /fr command.
  250. //     - redirect: /redir command.
  251. //     - ip: IP checking.
  252. //     - alts: Alt checking.
  253. //     - modlog: view the moderator logs.
  254. //     - broadcast: Broadcast informational commands.
  255. //     - declare: /declare command.
  256. //     - announce: /announce command.
  257. //     - modchat: Set modchat.
  258. //     - potd: Set PotD.
  259. //     - forcewin: /forcewin command.
  260. //     - battlemessage: /a command.
  261. //     - tournaments: creating tournaments (/tour new, settype etc.)
  262. //     - tournamentsmoderation: /tour dq, autodq, end etc.
  263. //     - tournamentsmanagement: enable/disable tournaments.
  264. exports.grouplist = [
  265.     {
  266.         symbol: '~',
  267.         id: "admin",
  268.         name: "Administrator",
  269.         root: true,
  270.         globalonly: true
  271.     },
  272.     {
  273.         symbol: '&',
  274.         id: "leader",
  275.         name: "Leader",
  276.         inherit: '@',
  277.         jurisdiction: '@u',
  278.         promote: 'u',
  279.         roomowner: true,
  280.         roommod: true,
  281.         roomdriver: true,
  282.         forcewin: true,
  283.         declare: true,
  284.         modchatall: true,
  285.         rangeban: true,
  286.         makeroom: true,
  287.         editroom: true,
  288.         potd: true,
  289.         disableladder: true,
  290.         globalonly: true,
  291.         tournamentsmanagement: true
  292.     },
  293.     {
  294.         symbol: '#',
  295.         id: "owner",
  296.         name: "Room Owner",
  297.         inherit: '@',
  298.         jurisdiction: 'u',
  299.         roommod: true,
  300.         roomdriver: true,
  301.         editroom: true,
  302.         declare: true,
  303.         modchatall: true,
  304.         roomonly: true,
  305.         tournamentsmanagement: true
  306.     },
  307.     {
  308.         symbol: '\u2605',
  309.         id: "player",
  310.         name: "Player",
  311.         inherit: '+',
  312.         roomvoice: true,
  313.         modchat: true,
  314.         roomonly: true,
  315.         editroom: true,
  316.         joinbattle: true
  317.     },
  318.     {
  319.         symbol: '@',
  320.         id: "mod",
  321.         name: "Moderator",
  322.         inherit: '%',
  323.         jurisdiction: 'u',
  324.         ban: true,
  325.         modchat: true,
  326.         roomvoice: true,
  327.         forcerename: true,
  328.         ip: true,
  329.         alts: '@u',
  330.         tournaments: true
  331.     },
  332.     {
  333.         symbol: '%',
  334.         id: "driver",
  335.         name: "Driver",
  336.         inherit: '+',
  337.         jurisdiction: 'u',
  338.         announce: true,
  339.         warn: '\u2605u',
  340.         kick: true,
  341.         mute: '\u2605u',
  342.         lock: true,
  343.         forcerename: true,
  344.         timer: true,
  345.         modlog: true,
  346.         alts: '%u',
  347.         bypassblocks: 'u%@&~',
  348.         receiveauthmessages: true,
  349.         tournamentsmoderation: true,
  350.         jeopardy: true,
  351.         joinbattle: true
  352.     },
  353.     {
  354.         symbol: '+',
  355.         id: "voice",
  356.         name: "Voice",
  357.         inherit: ' ',
  358.         alts: 's',
  359.         broadcast: true
  360.     },
  361.     {
  362.         symbol: ' ',
  363.         ip: 's'
  364.     }
  365. ];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top