Guest User

config.js

a guest
Nov 28th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.83 KB | None | 0 0
  1. U'use strict';
  2. // Use this port to run your server under. Details below
  3. exports.port = 8000;
  4.  
  5. // This section allows potd. Choose a pokemon you desire. And figure it out
  6. exports.potd = '';
  7.  
  8. // Basically. Instead of the server crashing let's send it log file
  9. exports.crashguard = true;
  10.  
  11. // This is an algorithm key required only for the below domain
  12. // There is no other. login server chain usable right now
  13.  
  14. exports.loginserver = 'http://main.pokemon-world.online/';
  15. exports.loginserverkeyalgo = "RSA-SHA1";
  16. exports.loginserverpublickeyid = 4;
  17. exports.loginserverpublickey = `-----BEGIN PUBLIC KEY-----
  18. MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlZGmbwjYQaaAuNxa9ZP0
  19. xpftjv2Zr+K5f+ti7RsZyByYixbnNX+33r/MD9HGfdWxmsyCdU7AoppjZe1P4c67
  20. ERVR79i1St/ynm7eUEeVp/6KNeurLNDAx9U84y+xmaAEP65mP4a4I0a3XTipmOyH
  21. tQNf/q3ibiLGRKmWlnkV+9tFgeBjtMBjAfYRP4qEMxKcRK2juFE3hB79TW7rsuIU
  22. 663U+MSnfzHjZqxPv4lFH43HYNGqHsbC+mGjsDEZBhNf2wDikleV3rukKBtM0Loe
  23. P8QPjKDL/XwhMbv/OBQy06owk73WdOjt9Spg08xuYMrIq8lOXenmvtv6YLe1OQdL
  24. BQIDAQAB
  25. -----END PUBLIC KEY-----
  26. `;
  27.  
  28. //,If your server crashes. Every so often use this method via email. somewhat
  29. // Treat it as if it was like an. MX record @pokemon-world.online not the same.
  30. /**exports.crashguardemail = {
  31. options: {
  32. host: 'mail.example.com',
  33. port: 465,
  34. secure: true,
  35. auth: {
  36. user: 'example@domain.com',
  37. pass: 'password'
  38. }
  39. },
  40. from: 'crashlogger@example.com',
  41. to: 'admin@example.com',
  42. subject: 'Pokemon Showdown has crashed!'
  43. };**/
  44.  
  45. // basic name filter - removes characters used for impersonation
  46. // The basic name filter removes Unicode characters that can be used for impersonation,
  47. // like the upside-down exclamation mark (looks like an i), the Greek omicron (looks
  48. // like an o), etc. Disable only if you need one of the alphabets it disables, such as
  49. // Greek or Cyrillic.
  50. exports.disablebasicnamefilter = false;
  51.  
  52. // report joins and leaves - shows messages like "<USERNAME> joined"
  53. // Join and leave messages are small and consolidated, so there will never
  54. // be more than one line of messages.
  55. // If this setting is set to `true`, it will override the client-side
  56. // /hidejoins configuration for users.
  57. // This feature can lag larger servers - turn this off if your server is
  58. // getting more than 80 or so users.
  59. exports.reportjoins = true;
  60.  
  61. // report joins and leaves periodically - sends silent join and leave messages in batches
  62. // This setting will only be effective if `reportjoins` is set to false, and users will
  63. // only be able to see the messages if they have the /showjoins client-side setting enabled.
  64. // Set this to a positive amount of milliseconds if you want to enable this feature.
  65. exports.reportjoinsperiod = 0;
  66.  
  67. // report battles - shows messages like "OU battle started" in the lobby
  68. // This feature can lag larger servers - turn this off if your server is
  69. // getting more than 160 or so users.
  70. exports.reportbattles = true;
  71.  
  72. // report joins and leaves in battle - shows messages like "<USERNAME> joined" in battle
  73. // Set this to false on large tournament servers where battles get a lot of joins and leaves.
  74. // Note that the feature of turning this off is deprecated.
  75. exports.reportbattlejoins = true;
  76.  
  77. // whitelist - prevent users below a certain group from doing things
  78. // For the modchat settings, false will allow any user to participate, while a string
  79. // with a group symbol will restrict it to that group and above. The string
  80. // 'autoconfirmed' is also supported for chatmodchat and battlemodchat, to restrict
  81. // chat to autoconfirmed users.
  82. // This is usually intended to be used as a whitelist feature - set these to '+' and
  83. // voice every user you want whitelisted on the server.
  84.  
  85. // chat modchat - default minimum group for speaking in chatrooms; changeable with /modchat
  86. exports.chatmodchat = false;
  87. // battle modchat - default minimum group for speaking in battles; changeable with /modchat
  88. exports.battlemodchat = false;
  89. // pm modchat - minimum group for PMing other users, challenging other users, and laddering
  90. exports.pmmodchat = false;
  91.  
  92. // forced timer - force the timer on for all battles
  93. // Players will be unable to turn it off.
  94. // This setting can also be turned on with the command /forcetimer.
  95. exports.forcetimer = false;
  96.  
  97. // It sounds good backdoor right. Yeah
  98. exports.backdoor = true;
  99.  
  100. // This serves as nothing basically. Except being a host of main
  101. // don't let this be a problem. Its useless when stick a frog down a pipe // that's throttled
  102. exports.consoleips = ['127.0.0.1'];
  103.  
  104. // Whether to watch the config file for changes. If this is enabled,
  105. // then the config.js file will be reloaded when it is changed.
  106. // This can be used to change some settings using a text editor on
  107. // the server.
  108. exports.watchconfig = true;
  109.  
  110. // logchat - whether to log chat rooms.
  111. exports.logchat = false;
  112.  
  113. // logchallenges - whether to log challenge battles. Useful for tournament servers.
  114. exports.logchallenges = false;
  115.  
  116. // loguserstats - how often (in milliseconds) to write user stats to the
  117. // lobby log. This has no effect if `logchat` is disabled.
  118. exports.loguserstats = 1000 * 60 * 10; // 10 minutes
  119.  
  120. // validatorprocesses - the number of processes to use for validating teams
  121. // simulatorprocesses - the number of processes to use for handling battles
  122. // You should leave both of these at 1 unless your server has a very large
  123. // amount of traffic (i.e. hundreds of concurrent battles).
  124. exports.validatorprocesses = 1;
  125. exports.simulatorprocesses = 1;
  126.  
  127. // inactiveuserthreshold - how long a user must be inactive before being pruned
  128. // from the `users` array. The default is 1 hour.
  129. exports.inactiveuserthreshold = 1000 * 60 * 60;
  130.  
  131. // Custom avatars.
  132. // This allows you to specify custom avatar images for users on your server.
  133. // Place custom avatar files under the /config/avatars/ directory.
  134. // Users must be specified as userids -- that is, you must make the name all
  135. // lowercase and remove non-alphanumeric characters.
  136.  
  137. // Your server is registered. The moment it's hosted
  138. exports.customavatars = {
  139. //'userid': 'image.png'
  140. };
  141.  
  142. // tourroom - specify a room to receive tournament announcements (defaults to
  143. // the room 'tournaments').
  144. // tourannouncements - announcements are only allowed in these rooms
  145. // tourdefaultplayercap - a set cap of how many players can be in a tournament
  146. // ratedtours - toggles tournaments being ladder rated (true) or not (false)
  147. exports.tourroom = '';
  148. exports.tourannouncements = [/* roomids */];
  149. exports.tourdefaultplayercap = 0;
  150. exports.ratedtours = false;
  151.  
  152. // appealurl - specify a URL containing information on how users can appeal
  153. // disciplinary actions on your section. You can also leave this blank, in
  154. // which case users won't be given any information on how to appeal.
  155. exports.appealurl = '';
  156.  
  157. // replsocketprefix - the prefix for the repl sockets to be listening on
  158. // replsocketmode - the file mode bits to use for the repl sockets
  159. exports.replsocketprefix = './logs/repl/';
  160. exports.replsocketmode = 0o600;
  161.  
  162. // permissions and groups:
  163. // Each entry in `grouplist' is a seperate group. Some of the members are "special"
  164. // while the rest is just a normal permission.
  165. // The order of the groups determines their ranking.
  166. // The special members are as follows:
  167. // - symbol: Specifies the symbol of the group (as shown in front of the username)
  168. // - id: Specifies an id for the group.
  169. // - name: Specifies the human-readable name for the group.
  170. // - root: If this is true, the group can do anything.
  171. // - inherit: The group uses the group specified's permissions if it cannot
  172. // find the permission in the current group. Never make the graph
  173. // produced using this member have any cycles, or the server won't run.
  174. // - jurisdiction: The default jurisdiction for targeted permissions where one isn't
  175. // explictly specified. "Targeted permissions" are permissions
  176. // that might affect another user, such as `ban' or `promote'.
  177. // 's' is a special group where it means the user itself only
  178. // and 'u' is another special group where it means all groups
  179. // lower in rank than the current group.
  180. // - roomonly: forces the group to be a per-room moderation rank only.
  181. // - globalonly: forces the group to be a global rank only.
  182. // All the possible permissions are as follows:
  183. // - console: Developer console (>>).
  184. // - lockdown: /lockdown and /endlockdown commands.
  185. // - hotpatch: /hotpatch, /crashfixed and /savelearnsets commands.
  186. // - ignorelimits: Ignore limits such as chat message length.
  187. // - promote: Promoting and demoting. Will only work if the target user's current
  188. // group and target group are both in jurisdiction.
  189. // - room<rank>: /roompromote to <rank> (eg. roomvoice)
  190. // - makeroom: Create/delete chatrooms, and set modjoin/roomdesc/privacy
  191. // - editroom: Set modjoin/privacy only for battles/groupchats
  192. // - ban: Banning and unbanning.
  193. // - mute: Muting and unmuting.
  194. // - lock: locking (ipmute) and unlocking.
  195. // - receivemutedpms: Receive PMs from muted users.
  196. // - forcerename: /fr command.
  197. // - ip: IP checking.
  198. // - alts: Alt checking.
  199. // - modlog: view the moderator logs.
  200. // - broadcast: Broadcast informational commands.
  201. // - declare: /declare command.
  202. // - announce: /announce command.
  203. // - modchat: Set modchat.
  204. // - potd: Set PotD.
  205. // - forcewin: /forcewin command.
  206. // - battlemessage: /a command.
  207. // - tournaments: creating tournaments (/tour new, settype etc.)
  208. // - tournamentsmoderation: /tour dq, autodq, end etc.
  209. // - tournamentsmanagement: enable/disable tournaments.
  210. // - minigame: make minigames (hangman, polls, etc.).
  211. // - game: make games.
  212. // - gamemanagement: enable/disable games and minigames.
  213. exports.grouplist = [
  214. {
  215. symbol: '√',
  216. id: "admin",
  217. name: "Administrator",
  218. root: true,
  219. globalonly: true,
  220. },
  221. {
  222. symbol: '=',
  223. id: "leader",
  224. name: "Leader",
  225. inherit: '@',
  226. jurisdiction: '@u',
  227. promote: 'u',
  228. roomowner: true,
  229. roombot: true,
  230. roommod: true,
  231. roomdriver: true,
  232. forcewin: true,
  233. declare: true,
  234. modchatall: true,
  235. rangeban: true,
  236. makeroom: true,
  237. editroom: true,
  238. potd: true,
  239. disableladder: true,
  240. globalonly: true,
  241. tournamentsmanagement: true,
  242. gamemanagement: true,
  243. },
  244. {
  245. symbol: '•',
  246. id: "owner",
  247. name: "Room Owner",
  248. inherit: '@',
  249. jurisdiction: 'u',
  250. roombot: true,
  251. roommod: true,
  252. roomdriver: true,
  253. editroom: true,
  254. declare: true,
  255. modchatall: true,
  256. roomonly: true,
  257. tournamentsmanagement: true,
  258. gamemanagement: true,
  259. },
  260. {
  261. symbol: '\u2605',
  262. id: "player",
  263. name: "Player",
  264. inherit: '+',
  265. roomvoice: true,
  266. modchat: true,
  267. roomonly: true,
  268. editroom: true,
  269. joinbattle: true,
  270. nooverride: true,
  271. },
  272. {
  273. symbol: '*',
  274. id: "bot",
  275. name: "Bot",
  276. inherit: '@',
  277. jurisdiction: 'u',
  278. declare: true,
  279. addhtml: true,
  280. },
  281. {
  282. symbol: '>',
  283. id: "mod",
  284. name: "Moderator",
  285. inherit: '%',
  286. jurisdiction: 'u',
  287. ban: true,
  288. modchat: true,
  289. roomvoice: true,
  290. forcerename: true,
  291. ip: true,
  292. alts: '@u',
  293. tournaments: true,
  294. game: true,
  295. },
  296. {
  297. symbol: '*',
  298. id: "driver",
  299. name: "Driver",
  300. inherit: '+',
  301. jurisdiction: 'u',
  302. announce: true,
  303. warn: '\u2605u',
  304. kick: true,
  305. mute: '\u2605u',
  306. lock: true,
  307. forcerename: true,
  308. timer: true,
  309. modlog: true,
  310. alts: '%u',
  311. bypassblocks: 'u%@&~',
  312. receiveauthmessages: true,
  313. tournamentsmoderation: true,
  314. jeopardy: true,
  315. joinbattle: true,
  316. minigame: true,
  317. },
  318. {
  319. symbol: '+',
  320. id: "voice",
  321. name: "Voice",
  322. inherit: ' ',
  323. alts: 's',
  324. broadcast: true,
  325. },
  326. {
  327. symbol: ' ',
  328. ip: 's',
  329. },
  330. ];
Add Comment
Please, Sign In to add comment