Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require("discord.js");
- const client = new Discord.Client();
- client.on('ready', () => {
- console.log(`Zalogowano: ${client.user.username}!`);
- });
- client.on('message', msg => {
- if (msg.content === '$siema') {
- msg.reply('hej');
- }
- });
- client.on('message', msg => {
- if (message.content === 'tresc') {
- // send "pong" to the same channel.
- message.channel.sendMessage('elo');
- }
- });
- client.login('MjcyNzQwMzIzMzQ2NzQzMjk2.C2ZY0g.1JqHIVvCp173lfx_59HdyxTlmyc');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement