Discord Bot über JavaScript

Ich versuche gerade ein Bot über JavaScript zu Coden, aber ich frage mich wie ich meinen Bot Online bekomme, kann mir jemand weiter helfen?
5 Replies
Bl4cklist🔥System
:hack: - Danke für deine Frage! › Unsere Community freut sich schon, dir bei deinem Problem weiterzuhelfen! Sei so lieb und unterstütze die Personen welche dir weitergeholfen in dem du die Antwort welche das Problem lösen konnte akzeptierst. - :accept: = Akzeptiert die Antwort und markiert dein Problem als gelöst. Alternativ kannst du auch /solved verwenden, falls du es selbst herausgefunden hast. Pushe deinen Post für mehr Aufmerksamkeit mit /push. ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
Raku | Felix 🐊
Das ist literally das erste was man bei JEDEM Tutorial dazu lernt. Schau dir bitte erstmal die Sachen an bevor du Fragen stellst, damit du ein bisschen Grundwissen mitbringen kannst.
FMFL_Felix
FMFL_Felix6mo ago
Wenn die Library, die du nutzt, discord.js ist, kannst du https://discordjs.guide als Guide nutzen. Dort wird alles gut erklärt, was man braucht
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
Lukas
Lukas6mo ago
// Require the necessary discord.js classes
const { Client, Events, GatewayIntentBits } = require('discord.js');
const { token } = require('./config.json');

// Create a new client instance
const client = new Client({ intents: [GatewayIntentBits.Guilds] });

// When the client is ready, run this code (only once).
// The distinction between `client: Client<boolean>` and `readyClient: Client<true>` is important for TypeScript developers.
// It makes some properties non-nullable.
client.once(Events.ClientReady, readyClient => {
console.log(`Ready! Logged in as ${readyClient.user.tag}`);
});

// Log in to Discord with your client's token
client.login(token);
// Require the necessary discord.js classes
const { Client, Events, GatewayIntentBits } = require('discord.js');
const { token } = require('./config.json');

// Create a new client instance
const client = new Client({ intents: [GatewayIntentBits.Guilds] });

// When the client is ready, run this code (only once).
// The distinction between `client: Client<boolean>` and `readyClient: Client<true>` is important for TypeScript developers.
// It makes some properties non-nullable.
client.once(Events.ClientReady, readyClient => {
console.log(`Ready! Logged in as ${readyClient.user.tag}`);
});

// Log in to Discord with your client's token
client.login(token);
Bl4cklist🔥System
:pin: × IST DEIN PROBLEM ERLEDIGT, @AFK | ▄︻デ𝙿𝚊𝚋𝚕𝚕𝚘══━一? Dein Thread Discord Bot über JavaScript in unserem Coding-Support-System ist seit einigen Tagen inaktiv - sollte sich das Problem gelöst haben, akzeptiere bitte eine Antwort oder schließe es selbst. :pin: × THREAD GESCHLOSSEN, @AFK | ▄︻デ𝙿𝚊𝚋𝚕𝚕𝚘══━一! Dein Thread Discord Bot über JavaScript scheint gelöst zu sein und wurde daher als "erledigt" markiert. Dir wurde Karma abgezogen, da du keine Antwort akzeptiert hast.

Did you find this page helpful?