Updates
Release rolling / release (push) Successful in 9m44s

This commit is contained in:
Raven Scott
2026-08-13 09:38:30 -04:00
parent 032ee1688c
commit 0b0f042416
12 changed files with 99 additions and 10 deletions
+20 -1
View File
@@ -260,7 +260,18 @@ async function run(ctx, argv) {
intents.push(GatewayIntentBits.MessageContent)
}
const client = new Client({ intents: intents })
const osName =
(typeof process !== 'undefined' && process.platform) || 'darwin'
const client = new Client({
intents: intents,
ws: {
identifyProperties: {
os: osName,
browser: 'bare-os',
device: 'bare-os'
}
}
})
const pingCommand = new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with pong.')
@@ -334,6 +345,14 @@ async function run(ctx, argv) {
})
}
if (Events.Raw) {
client.on(Events.Raw, function (packet) {
if (!loggingIn) return
const t = packet && packet.t
if (t) ctx.console.log('discord-bot: dispatch ' + t)
})
}
let loggingIn = true
let loginTimer = null
let loginTick = null