Markus-Rost %!s(int64=4) %!d(string=hai) anos
pai
achega
8cba88a4cf
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      dashboard/index.js

+ 3 - 1
dashboard/index.js

@@ -40,6 +40,8 @@ const files = new Map(fs.readdirSync( './dashboard/src' ).map( file => {
 	}];
 	}];
 } ));
 } ));
 
 
+process.env.READONLY = 'true';
+
 const server = http.createServer((req, res) => {
 const server = http.createServer((req, res) => {
 	if ( req.method === 'POST' && req.url.startsWith( '/guild/' ) ) {
 	if ( req.method === 'POST' && req.url.startsWith( '/guild/' ) ) {
 		let args = req.url.split('/');
 		let args = req.url.split('/');
@@ -47,7 +49,7 @@ const server = http.createServer((req, res) => {
 			return cookie.split('=')[0] === 'wikibot';
 			return cookie.split('=')[0] === 'wikibot';
 		} )?.map( cookie => cookie.replace( /^wikibot="(\w*(?:-\d+)?)"$/, '$1' ) )?.join();
 		} )?.map( cookie => cookie.replace( /^wikibot="(\w*(?:-\d+)?)"$/, '$1' ) )?.join();
 
 
-		if ( args.length <= 4 && ['settings', 'verification', 'rcscript'].incluses( args[3] ) 
+		if ( args.length <= 4 && ['settings', 'verification', 'rcscript'].includes( args[3] ) 
 		&& settingsData.has(state) && settingsData.get(state).guilds.isMember.has(args[2]) ) {
 		&& settingsData.has(state) && settingsData.get(state).guilds.isMember.has(args[2]) ) {
 			let body = '';
 			let body = '';
 			req.on( 'data', chunk => {
 			req.on( 'data', chunk => {