discord-user-bots
Version:
A library that allows you to use the full potential of Discords API to create and operate powerful user bots
12 lines (9 loc) • 389 B
JavaScript
const Discord = require("discord-user-bots");
const client = new Discord.Client(); // Create a new client instance
client.on("ready", () => {
console.log("Client online!"); // Logs "Client online!" when connected to Discord
});
client.on("message", (message) => {
console.log(message); // Logs the message data
});
client.login("token goes here."); // Login with the token given