Advertisement
Guest User

Untitled

a guest
Jan 24th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Discord = require("discord.js");
  2. const client = new Discord.Client();
  3.  
  4. const config = require("./config.json");
  5. const prefix = config.prefix;
  6.  
  7. client.on('ready', () => {
  8.   console.log(`Botul e gata`);
  9. });
  10.  client.on('message', msg => {
  11.     if (msg.content === prefix + "autor") {
  12.         msg.channel.send("Autori botului : ``` Andrei\n JD ```")
  13.  
  14.  
  15.     }
  16.  
  17.     if (msg.content.startsWith(prefix +"help")) {
  18.         msg.channel.send("#autor autori botului!!!\nPrefixul lui jdbot este " + prefix + msg.author.username)
  19.     }
  20.    
  21.         if (msg.content.startsWith("sal")) {
  22.         msg.channel.send("Salut!! " + msg.author.username)
  23.     }
  24.    
  25.    
  26. });
  27.    
  28.    
  29.    
  30. client.login(config.token)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement