const { Client, DiscordIntents } = require("Magma.js");
const client = new Client({
intents: [DiscordIntents.Guilds, DiscordIntents.GuildMessages, DiscordIntents.MessageContent],
});
//If you do not listen to this event, any errors may kill your process
client.on("error", (error) => {
console.error(error);
})
client.on("ready", () => {
console.log("Ready!");
});
client.on("messageCreate", (message) => {
const content = message.content;
const args = content.split("!")[1].split(" ");
const command = args.shift()
if (command === "ping") {
message.reply("Pong!");
}
});
client.connect({
token: "Your bot token"
});
magmajs / poru Goto Github PK
View Code? Open in Web Editor NEWThis project forked from parasop/poru
A stable and powerful Lavalink client with some best features
License: MIT License