Advertisement
Guest User

Untitled

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