Advertisement
Guest User

Untitled

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