Created
June 6, 2017 21:45
-
-
Save msciotti/d02423563ff8e1dd5149f4eb2c96a160 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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