Advertisement
Guest User

Untitled

a guest
Apr 8th, 2017
624
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.05 KB | None | 0 0
  1. 'use strict';
  2.  
  3. // The server port - the port to run Pokemon Showdown under
  4. exports.port = 8000;
  5.  
  6. // proxyip - proxy IPs with trusted X-Forwarded-For headers
  7. // This can be either false (meaning not to trust any proxies) or an array
  8. // of strings. Each string should be either an IP address or a subnet given
  9. // in CIDR notation. You should usually leave this as `false` unless you
  10. // know what you are doing.
  11. exports.proxyip = false;
  12.  
  13. // Pokemon of the Day - put a pokemon's name here to make it Pokemon of the Day
  14. // The PotD will always be in the #2 slot (not #1 so it won't be a lead)
  15. // in every Random Battle team.
  16. exports.potd = '';
  17.  
  18. // crash guard - write errors to log file instead of crashing
  19. // This is normally not recommended - if Node wants to crash, the
  20. // server needs to be restarted
  21. // However, most people want the server to stay online even if there is a
  22. // crash, so this option is provided
  23. exports.crashguard = true;
  24.  
  25. // login server data - don't forget the http:// and the trailing slash
  26. // This is the URL of the user database and ladder mentioned earlier.
  27. // Don't change this setting - there aren't any other login servers right now
  28. exports.loginserver = 'http://play.pokemonshowdown.com/';
  29. exports.loginserverkeyalgo = "RSA-SHA1";
  30. exports.loginserverpublickeyid = 4;
  31. exports.loginserverpublickey = `-----BEGIN PUBLIC KEY-----
  32. MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAzfWKQXg2k8c92aiTyN37
  33. dl76iW0aeAighgzeesdar4xZT1A9yzLpj2DgR8F8rh4R32/EVOPmX7DCf0bYWeh3
  34. QttP0HVKKKfsncJZ9DdNtKj1vWdUTklH8oeoIZKs54dwWgnEFKzb9gxqu+z+FJoQ
  35. vPnvfjCRUPA84O4kqKSuZT2qiWMFMWNQPXl87v+8Atb+br/WXvZRyiLqIFSG+ySn
  36. Nwx6V1C8CA1lYqcPcTfmQs+2b4SzUa8Qwkr9c1tZnXlWIWj8dVvdYtlo0sZZBfAm
  37. X71Rsp2vwEleSFKV69jj+IzAfNHRRw+SADe3z6xONtrJOrp+uC/qnLNuuCfuOAgL
  38. dnUVFLX2aGH0Wb7ZkriVvarRd+3otV33A8ilNPIoPb8XyFylImYEnoviIQuv+0VW
  39. RMmQlQ6RMZNr6sf9pYMDhh2UjU11++8aUxBaso8zeSXC9hhp7mAa7OTxts1t3X57
  40. 72LqtHHEzxoyLj/QDJAsIfDmUNAq0hpkiRaXb96wTh3IyfI/Lqh+XmyJuo+S5GSs
  41. RhlSYTL4lXnj/eOa23yaqxRihS2MT9EZ7jNd3WVWlWgExIS2kVyZhL48VA6rXDqr
  42. Ko0LaPAMhcfETxlFQFutoWBRcH415A/EMXJa4FqYa9oeXWABNtKkUW0zrQ194btg
  43. Y929lRybWEiKUr+4Yw2O1W0CAwEAAQ==
  44. -----END PUBLIC KEY-----
  45. `;
  46.  
  47. // crashguardemail - if the server has been running for more than an hour
  48. // and crashes, send an email using these settings, rather than locking down
  49. // the server. Uncomment this definition if you want to use this feature;
  50. // otherwise, all crashes will lock down the server.
  51. /**exports.crashguardemail = {
  52. options: {
  53. host: 'mail.example.com',
  54. port: 465,
  55. secure: true,
  56. auth: {
  57. pass: 'password'
  58. }
  59. },
  60. subject: 'Pokemon Showdown has crashed!'
  61. };**/
  62.  
  63. // basic name filter - removes characters used for impersonation
  64. // The basic name filter removes Unicode characters that can be used for impersonation,
  65. // like the upside-down exclamation mark (looks like an i), the Greek omicron (looks
  66. // like an o), etc. Disable only if you need one of the alphabets it disables, such as
  67. // Greek or Cyrillic.
  68. exports.disablebasicnamefilter = false;
  69.  
  70. // report joins and leaves - shows messages like "<USERNAME> joined"
  71. // Join and leave messages are small and consolidated, so there will never
  72. // be more than one line of messages.
  73. // If this setting is set to `true`, it will override the client-side
  74. // /hidejoins configuration for users.
  75. // This feature can lag larger servers - turn this off if your server is
  76. // getting more than 80 or so users.
  77. exports.reportjoins = true;
  78.  
  79. // report joins and leaves periodically - sends silent join and leave messages in batches
  80. // This setting will only be effective if `reportjoins` is set to false, and users will
  81. // only be able to see the messages if they have the /showjoins client-side setting enabled.
  82. // Set this to a positive amount of milliseconds if you want to enable this feature.
  83. exports.reportjoinsperiod = 0;
  84.  
  85. // report battles - shows messages like "OU battle started" in the lobby
  86. // This feature can lag larger servers - turn this off if your server is
  87. // getting more than 160 or so users.
  88. exports.reportbattles = true;
  89.  
  90. // report joins and leaves in battle - shows messages like "<USERNAME> joined" in battle
  91. // Set this to false on large tournament servers where battles get a lot of joins and leaves.
  92. // Note that the feature of turning this off is deprecated.
  93. exports.reportbattlejoins = true;
  94.  
  95. // notify staff when users have a certain amount of room punishments.
  96. // Setting this to a number greater than zero will notify staff for everyone with
  97. // the required amount of room punishments.
  98. // Set this to 0 to turn the monitor off.
  99. exports.monitorminpunishments = 3;
  100.  
  101. // allow punishmentmonitor to lock users with multiple roombans.
  102. // When set to `true`, this feature will automatically lock any users with three or more
  103. // active roombans, and notify the staff room.
  104. // Note that this requires punishmentmonitor to be enabled, and therefore requires the `monitorminpunishments`
  105. // option to be set to a number greater than zero. If `monitorminpunishments` is set to a value greater than 3,
  106. // the autolock will only apply to people who pass this threshold.
  107. exports.punishmentautolock = false;
  108.  
  109. // whitelist - prevent users below a certain group from doing things
  110. // For the modchat settings, false will allow any user to participate, while a string
  111. // with a group symbol will restrict it to that group and above. The string
  112. // 'autoconfirmed' is also supported for chatmodchat and battlemodchat, to restrict
  113. // chat to autoconfirmed users.
  114. // This is usually intended to be used as a whitelist feature - set these to '+' and
  115. // voice every user you want whitelisted on the server.
  116.  
  117. // chat modchat - default minimum group for speaking in chatrooms; changeable with /modchat
  118. exports.chatmodchat = false;
  119. // battle modchat - default minimum group for speaking in battles; changeable with /modchat
  120. exports.battlemodchat = false;
  121. // pm modchat - minimum group for PMing other users, challenging other users, and laddering
  122. exports.pmmodchat = false;
  123.  
  124. // forced timer - force the timer on for all battles
  125. // Players will be unable to turn it off.
  126. // This setting can also be turned on with the command /forcetimer.
  127. exports.forcetimer = false;
  128.  
  129. // backdoor - allows Pokemon Showdown system operators to provide technical
  130. // support for your server
  131. // This backdoor gives system operators (such as Zarel) console admin
  132. // access to your server, which allow them to provide tech support. This
  133. // can be useful in a variety of situations: if an attacker attacks your
  134. // server and you are not online, if you need help setting up your server,
  135. // etc. If you do not trust Pokemon Showdown with admin access, you should
  136. // disable this feature.
  137. exports.backdoor = true;
  138.  
  139. // List of IPs and user IDs with dev console (>> and >>>) access.
  140. // The console is incredibly powerful because it allows the execution of
  141. // arbitrary commands on the local computer (as the user running the
  142. // server). If an account with the console permission were compromised,
  143. // it could possibly be used to take over the server computer. As such,
  144. // you should only specify a small range of trusted IPs and users here,
  145. // or none at all. By default, only localhost can use the dev console.
  146. // In addition to connecting from a valid IP, a user must *also* have
  147. // the `console` permission in order to use the dev console.
  148. // Setting this to an empty array ([]) will disable the dev console.
  149. exports.consoleips = ['127.0.0.1'];
  150.  
  151. // Whether to watch the config file for changes. If this is enabled,
  152. // then the config.js file will be reloaded when it is changed.
  153. // This can be used to change some settings using a text editor on
  154. // the server.
  155. exports.watchconfig = true;
  156.  
  157. // logchat - whether to log chat rooms.
  158. exports.logchat = false;
  159.  
  160. // logchallenges - whether to log challenge battles. Useful for tournament servers.
  161. exports.logchallenges = false;
  162.  
  163. // loguserstats - how often (in milliseconds) to write user stats to the
  164. // lobby log. This has no effect if `logchat` is disabled.
  165. exports.loguserstats = 1000 * 60 * 10; // 10 minutes
  166.  
  167. // validatorprocesses - the number of processes to use for validating teams
  168. // simulatorprocesses - the number of processes to use for handling battles
  169. // You should leave both of these at 1 unless your server has a very large
  170. // amount of traffic (i.e. hundreds of concurrent battles).
  171. exports.validatorprocesses = 1;
  172. exports.simulatorprocesses = 1;
  173.  
  174. // inactiveuserthreshold - how long a user must be inactive before being pruned
  175. // from the `users` array. The default is 1 hour.
  176. exports.inactiveuserthreshold = 1000 * 60 * 60;
  177.  
  178. // Custom avatars.
  179. // This allows you to specify custom avatar images for users on your server.
  180. // Place custom avatar files under the /config/avatars/ directory.
  181. // Users must be specified as userids -- that is, you must make the name all
  182. // lowercase and remove non-alphanumeric characters.
  183. //
  184. // Your server *must* be registered in order for your custom avatars to be
  185. // displayed in the client.
  186. exports.customavatars = {
  187. //'userid': 'customavatar.png'
  188. };
  189.  
  190. // tourroom - specify a room to receive tournament announcements (defaults to
  191. // the room 'tournaments').
  192. // tourannouncements - announcements are only allowed in these rooms
  193. // tourdefaultplayercap - a set cap of how many players can be in a tournament
  194. // ratedtours - toggles tournaments being ladder rated (true) or not (false)
  195. exports.tourroom = '';
  196. exports.tourannouncements = [/* roomids */];
  197. exports.tourdefaultplayercap = 0;
  198. exports.ratedtours = false;
  199.  
  200. // appealurl - specify a URL containing information on how users can appeal
  201. // disciplinary actions on your section. You can also leave this blank, in
  202. // which case users won't be given any information on how to appeal.
  203. exports.appealurl = '';
  204.  
  205. // replsocketprefix - the prefix for the repl sockets to be listening on
  206. // replsocketmode - the file mode bits to use for the repl sockets
  207. exports.replsocketprefix = './logs/repl/';
  208. exports.replsocketmode = 0o600;
  209.  
  210. // permissions and groups:
  211. // Each entry in `grouplist' is a seperate group. Some of the members are "special"
  212. // while the rest is just a normal permission.
  213. // The order of the groups determines their ranking.
  214. // The special members are as follows:
  215. // - symbol: Specifies the symbol of the group (as shown in front of the username)
  216. // - id: Specifies an id for the group.
  217. // - name: Specifies the human-readable name for the group.
  218. // - root: If this is true, the group can do anything.
  219. // - inherit: The group uses the group specified's permissions if it cannot
  220. // find the permission in the current group. Never make the graph
  221. // produced using this member have any cycles, or the server won't run.
  222. // - jurisdiction: The default jurisdiction for targeted permissions where one isn't
  223. // explictly specified. "Targeted permissions" are permissions
  224. // that might affect another user, such as `ban' or `promote'.
  225. // 's' is a special group where it means the user itself only
  226. // and 'u' is another special group where it means all groups
  227. // lower in rank than the current group.
  228. // - roomonly: forces the group to be a per-room moderation rank only.
  229. // - globalonly: forces the group to be a global rank only.
  230. // All the possible permissions are as follows:
  231. // - console: Developer console (>>).
  232. // - lockdown: /lockdown and /endlockdown commands.
  233. // - hotpatch: /hotpatch, /crashfixed and /savelearnsets commands.
  234. // - ignorelimits: Ignore limits such as chat message length.
  235. // - promote: Promoting and demoting. Will only work if the target user's current
  236. // group and target group are both in jurisdiction.
  237. // - room<rank>: /roompromote to <rank> (eg. roomvoice)
  238. // - makeroom: Create/delete chatrooms, and set modjoin/roomdesc/privacy
  239. // - editroom: Set modjoin/privacy only for battles/groupchats
  240. // - ban: Banning and unbanning.
  241. // - mute: Muting and unmuting.
  242. // - lock: locking (ipmute) and unlocking.
  243. // - receivemutedpms: Receive PMs from muted users.
  244. // - forcerename: /fr command.
  245. // - ip: IP checking.
  246. // - alts: Alt checking.
  247. // - modlog: view the moderator logs.
  248. // - broadcast: Broadcast informational commands.
  249. // - declare: /declare command.
  250. // - announce: /announce command.
  251. // - modchat: Set modchat.
  252. // - potd: Set PotD.
  253. // - forcewin: /forcewin command.
  254. // - battlemessage: /a command.
  255. // - tournaments: creating tournaments (/tour new, settype etc.)
  256. // - tournamentsmoderation: /tour dq, autodq, end etc.
  257. // - tournamentsmanagement: enable/disable tournaments.
  258. // - minigame: make minigames (hangman, polls, etc.).
  259. // - game: make games.
  260. // - gamemanagement: enable/disable games and minigames.
  261. exports.grouplist = [
  262. {
  263. symbol: '~',
  264. id: "admin",
  265. name: "Administrator",
  266. root: true,
  267. globalonly: true,
  268. },
  269. {
  270. symbol: '&',
  271. id: "leader",
  272. name: "Leader",
  273. inherit: '@',
  274. jurisdiction: '@u',
  275. promote: 'u',
  276. roomowner: true,
  277. roombot: true,
  278. roommod: true,
  279. roomdriver: true,
  280. forcewin: true,
  281. declare: true,
  282. modchatall: true,
  283. rangeban: true,
  284. makeroom: true,
  285. editroom: true,
  286. potd: true,
  287. disableladder: true,
  288. globalonly: true,
  289. tournamentsmanagement: true,
  290. gamemanagement: true,
  291. },
  292. {
  293. symbol: '#',
  294. id: "owner",
  295. name: "Room Owner",
  296. inherit: '@',
  297. jurisdiction: 'u',
  298. roombot: true,
  299. roommod: true,
  300. roomdriver: true,
  301. editroom: true,
  302. declare: true,
  303. modchatall: true,
  304. roomonly: true,
  305. tournamentsmanagement: true,
  306. gamemanagement: true,
  307. },
  308. {
  309. symbol: '\u2606',
  310. id: "player",
  311. name: "Player",
  312. inherit: '+',
  313. roomvoice: true,
  314. modchat: true,
  315. roomonly: true,
  316. editroom: true,
  317. joinbattle: true,
  318. nooverride: true,
  319. },
  320. {
  321. symbol: '*',
  322. id: "bot",
  323. name: "Bot",
  324. inherit: '@',
  325. jurisdiction: 'u',
  326. declare: true,
  327. addhtml: true,
  328. },
  329. {
  330. symbol: '@',
  331. id: "mod",
  332. name: "Moderator",
  333. inherit: '%',
  334. jurisdiction: 'u',
  335. ban: true,
  336. modchat: true,
  337. roomvoice: true,
  338. forcerename: true,
  339. ip: true,
  340. alts: '@u',
  341. tournaments: true,
  342. game: true,
  343. },
  344. {
  345. symbol: '%',
  346. id: "driver",
  347. name: "Driver",
  348. inherit: '+',
  349. jurisdiction: 'u',
  350. announce: true,
  351. warn: '\u2606u',
  352. kick: true,
  353. mute: '\u2606u',
  354. lock: true,
  355. forcerename: true,
  356. timer: true,
  357. modlog: true,
  358. alts: '%u',
  359. bypassblocks: 'u%@&~',
  360. receiveauthmessages: true,
  361. tournamentsmoderation: true,
  362. jeopardy: true,
  363. joinbattle: true,
  364. minigame: true,
  365. },
  366. {
  367. symbol: '+',
  368. id: "voice",
  369. name: "Voice",
  370. inherit: ' ',
  371. alts: 's',
  372. broadcast: true,
  373. },
  374. {
  375. symbol: '※',
  376. id: "bot commander",
  377. name: "bot commander",
  378. root: true,
  379. globalonly: true,
  380. },
  381. {
  382. symbol: ' ',
  383. ip: 's',
  384. },
  385. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement