tangled
alpha
login
or
join now
alpine.girlfag.club
/
refbot
0
fork
atom
SpinShare Referee Bot
refbot.ellite.dev/overlay
0
fork
atom
overview
issues
pulls
pipelines
more cleanup
alpinesystem
3 weeks ago
33f8f322
ded4d0b8
1/1
buildnpush.yml
success
17s
+1
-6
2 changed files
expand all
collapse all
unified
split
deploy-commands.js
package.json
-4
deploy-commands.js
reviewed
···
34
34
(async () => {
35
35
try {
36
36
console.log(`Started refreshing ${commands.length} application (/) commands.`);
37
37
-
38
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
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
78
-
// Summary
79
75
console.log('--- Deployment summary ---');
80
76
console.log(`Succeeded: ${successes.length}`);
81
77
if (successes.length) {
+1
-2
package.json
reviewed
···
4
4
"description": "",
5
5
"main": "index.js",
6
6
"scripts": {
7
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
14
-
"author": "",
13
13
+
"author": "alpinesystem & kyuquu",
15
14
"license": "ISC",
16
15
"type": "commonjs",
17
16
"dependencies": {