How make the bot online?

I need start code, in discord.js start code in typescript I need in js
8 Replies
d.js toolkit
d.js toolkit2y ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Octoboomer
Octoboomer2y ago
The guide is in js
Octoboomer
Octoboomer2y ago
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
qckpie
qckpieOP2y ago
I can't find it
Octoboomer
Octoboomer2y ago
The guide covers everything you need to know from setup to making a ping cmd
qckpie
qckpieOP2y ago
const Discord = require('discord.js');
const client = new Discord.Client();

client.on('ready', () => {
console.log(Logged in as ${client.user.tag}!);
});

client.on('message', message => {
if (message.content === 'ping') {
message.reply('Pong!');
}
});

client.login('YOUR_DISCORD_BOT_TOKEN');
const Discord = require('discord.js');
const client = new Discord.Client();

client.on('ready', () => {
console.log(Logged in as ${client.user.tag}!);
});

client.on('message', message => {
if (message.content === 'ping') {
message.reply('Pong!');
}
});

client.login('YOUR_DISCORD_BOT_TOKEN');
I need like this code (this code is written by chatGPT)
Octoboomer
Octoboomer2y ago
The guide gets to that after setup
qckpie
qckpieOP2y ago
Bruh Thx

Did you find this page helpful?