Advertisement
Guest User

Untitled

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