Lami
Explore posts from serversSIASapphire - Imagine a framework
•Created by Lami on 1/19/2025 in #sapphire-support
Freeze on await client.login()
import './lib/setup';
import { LogLevel, SapphireClient } from '@sapphire/framework';
import { GatewayIntentBits } from 'discord.js';
const client = new SapphireClient({
defaultPrefix: '!',
caseInsensitiveCommands: true,
logger: {
level: process.env.NODE_ENV === 'development' ? LogLevel.Debug : LogLevel.Info
},
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMessageReactions
],
loadMessageCommandListeners: true
});
client.on('debug', console.log);
const main = async () => {
try {
client.logger.info('Logging in');
await client.login();
client.logger.info('logged in');
} catch (error) {
client.logger.fatal(error);
await client.destroy();
process.exit(1);
}
};
void main();
import './lib/setup';
import { LogLevel, SapphireClient } from '@sapphire/framework';
import { GatewayIntentBits } from 'discord.js';
const client = new SapphireClient({
defaultPrefix: '!',
caseInsensitiveCommands: true,
logger: {
level: process.env.NODE_ENV === 'development' ? LogLevel.Debug : LogLevel.Info
},
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMessageReactions
],
loadMessageCommandListeners: true
});
client.on('debug', console.log);
const main = async () => {
try {
client.logger.info('Logging in');
await client.login();
client.logger.info('logged in');
} catch (error) {
client.logger.fatal(error);
await client.destroy();
process.exit(1);
}
};
void main();
[0:38:39] File change detected. Starting incremental compilation...
[0:38:39] Found 0 errors. Watching for file changes.
> [email protected] start
> node dist/index.js
2025-01-20 00:38:41 - INFO - Logging in
[0:38:39] File change detected. Starting incremental compilation...
[0:38:39] Found 0 errors. Watching for file changes.
> [email protected] start
> node dist/index.js
2025-01-20 00:38:41 - INFO - Logging in
152 replies
Deployctl, error: Uncaught (in promise) NotFound: Failed to spawn 'start': program not found
> deployctl logs a
i Provisioning a new access token...
i Authorization URL: https://dash.deno.com/signin/cli?claim_challenge=example
error: Uncaught (in promise) NotFound: Failed to spawn 'start': program not found
.spawn()
^
at spawnChildInner (ext:runtime/40_process.js:164:17)
at spawnChild (ext:runtime/40_process.js:185:10)
at Command.spawn (ext:runtime/40_process.js:453:12)
at provision (https://deno.land/x/[email protected]/src/utils/access_token.ts:63:8)
at eventLoopTick (ext:core/01_core.js:181:11)
at async Object.provision (https://deno.land/x/[email protected]/src/utils/access_token.ts:13:19)
at async API.#request (https://deno.land/x/[email protected]/src/utils/api.ts:99:44)
at async API.#requestJson (https://deno.land/x/[email protected]/src/utils/api.ts:121:17)
at async default (https://deno.land/x/[email protected]/src/subcommands/logs.ts:112:27)
at async https://deno.land/x/[email protected]/deployctl.ts:93:5
> deployctl logs a
i Provisioning a new access token...
i Authorization URL: https://dash.deno.com/signin/cli?claim_challenge=example
error: Uncaught (in promise) NotFound: Failed to spawn 'start': program not found
.spawn()
^
at spawnChildInner (ext:runtime/40_process.js:164:17)
at spawnChild (ext:runtime/40_process.js:185:10)
at Command.spawn (ext:runtime/40_process.js:453:12)
at provision (https://deno.land/x/[email protected]/src/utils/access_token.ts:63:8)
at eventLoopTick (ext:core/01_core.js:181:11)
at async Object.provision (https://deno.land/x/[email protected]/src/utils/access_token.ts:13:19)
at async API.#request (https://deno.land/x/[email protected]/src/utils/api.ts:99:44)
at async API.#requestJson (https://deno.land/x/[email protected]/src/utils/api.ts:121:17)
at async default (https://deno.land/x/[email protected]/src/subcommands/logs.ts:112:27)
at async https://deno.land/x/[email protected]/deployctl.ts:93:5
> deno --version
deno 1.39.1 (release, x86_64-pc-windows-msvc)
v8 12.0.267.8
typescript 5.3.3
> deno --version
deno 1.39.1 (release, x86_64-pc-windows-msvc)
v8 12.0.267.8
typescript 5.3.3
2 replies