mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
Merge Xiao and Fidget
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user