mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
8 lines
274 B
JavaScript
8 lines
274 B
JavaScript
var Discord = require( "discord.js" );
|
|
var myBot = new Discord.Client();
|
|
|
|
myBot.login( "hello@example.com", "password1" );
|
|
|
|
myBot.on( "presence", function( user, status, server ) {
|
|
bot.sendMessage( server.getDefaultChannel(), user.mention() + " is " + status + "!" );
|
|
} );
|