Advertisement
Guest User

.

a guest
Jan 22nd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. const Discord = require("discord.js");
  2. const client = new Discord.Client();
  3.  
  4. client.on('ready', () => {
  5. console.log(`Zalogowano: ${client.user.username}!`);
  6. });
  7.  
  8. client.on('message', msg => {
  9. if (msg.content === '$siema') {
  10. msg.reply('hej');
  11. }
  12. });
  13.  
  14. client.on('message', msg => {
  15. if (message.content === 'tresc') {
  16. // send "pong" to the same channel.
  17. message.channel.sendMessage('elo');
  18. }
  19. });
  20.  
  21. client.login('MjcyNzQwMzIzMzQ2NzQzMjk2.C2ZY0g.1JqHIVvCp173lfx_59HdyxTlmyc');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement