Skip to content

Instantly share code, notes, and snippets.

@msciotti
Created June 6, 2017 21:45
Show Gist options
  • Save msciotti/d02423563ff8e1dd5149f4eb2c96a160 to your computer and use it in GitHub Desktop.
Save msciotti/d02423563ff8e1dd5149f4eb2c96a160 to your computer and use it in GitHub Desktop.
let Discordie = require('discordie');
let Events = Discordie.Events;
let client = new Discordie();
client.connect({
token: 'my_app_token'
});
client.Dispatcher.on(Events.GATEWAY_READY, e => {
console.log(client.User.username + ' connected!');
});
client.Dispatcher.on(Events.MESSAGE_CREATE, e => {
console.log(e.message.content);
//Handle message data for your game
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment