SpinShare Referee Bot refbot.ellite.dev/overlay

more cleanup

+1 -6
-4
deploy-commands.js
··· 34 34 (async () => { 35 35 try { 36 36 console.log(`Started refreshing ${commands.length} application (/) commands.`); 37 - 38 - // Sanity-check: attempt to resolve which application id the token belongs to. 39 37 let currentAppId = APP_CLIENT_ID; 40 38 try { 41 39 const app = await rest.get(Routes.oauth2CurrentApplication()); ··· 69 67 console.error('Missing Access (403). The app likely is not invited to that guild.'); 70 68 console.error(`Invite the app: https://discord.com/oauth2/authorize?client_id=${currentAppId}&scope=applications.commands%20bot&permissions=8`); 71 69 } 72 - // Print a concise single-line error (avoid dumping stack/objects unless verbose) 73 70 console.error(` ${err?.name || 'Error'}: ${err?.message || String(err)}${err?.status ? ` (status ${err.status})` : ''}${err?.code ? ` (code ${err.code})` : ''}`); 74 71 failures.push({ guildId, reason: isMissingAccess ? 'Missing Access (403)' : (err?.message || String(err)) }); 75 72 } 76 73 } 77 74 78 - // Summary 79 75 console.log('--- Deployment summary ---'); 80 76 console.log(`Succeeded: ${successes.length}`); 81 77 if (successes.length) {
+1 -2
package.json
··· 4 4 "description": "", 5 5 "main": "index.js", 6 6 "scripts": { 7 - "test": "echo \"Error: no test specified\" && exit 1", 8 7 "start": "node index.js", 9 8 "dev": "NODE_ENV=development node --watch index.js", 10 9 "deploy": "node deploy-commands.js", 11 10 "deploy-test": "NODE_ENV=development node deploy-commands.js" 12 11 }, 13 12 "keywords": [], 14 - "author": "", 13 + "author": "alpinesystem & kyuquu", 15 14 "license": "ISC", 16 15 "type": "commonjs", 17 16 "dependencies": {