Merge Xiao and Fidget

This commit is contained in:
Daniel Odendahl Jr
2017-12-07 19:15:49 +00:00
parent 6fecc265bd
commit f6d49a4ce6
7 changed files with 153 additions and 2 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ module.exports = class TwitterCommand extends Command {
}
async fetchToken() {
const auth = new Buffer(`${TWITTER_KEY}:${TWITTER_SECRET}`).toString('base64');
const auth = Buffer.from(`${TWITTER_KEY}:${TWITTER_SECRET}`).toString('base64');
const { body } = await snekfetch
.post('https://api.twitter.com/oauth2/token')
.set({