Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require("discord.js");
- const client = new Discord.Client();
- const config = require("./config.json");
- const prefix = config.prefix;
- client.on('ready', () => {
- console.log(`Botul e gata`);
- });
- client.on('message', msg => {
- if (msg.content === prefix + "autor") {
- msg.channel.send("Autori botului : ``` Andrei\n JD ```")
- }
- if (msg.content.startsWith(prefix +"help")) {
- msg.channel.send("#autor autori botului!!!\nPrefixul lui jdbot este " + prefix + msg.author.username)
- }
- if (msg.content.startsWith("sal")) {
- msg.channel.send("Salut!! " + msg.author.username)
- }
- });
- client.login(config.token)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement