mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
9 lines
274 B
JavaScript
9 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 + "!" );
|
|
} );
|