Code style
This commit is contained in:
parent
073e2bd51a
commit
9869f60213
1 changed files with 1 additions and 1 deletions
2
bot.js
2
bot.js
|
@ -93,7 +93,7 @@ let bot = {
|
|||
|
||||
promisePost: function(post, reply = null) {
|
||||
let that = this
|
||||
return new Promise(function(resolve, reject) {
|
||||
return new Promise((resolve, reject) => {
|
||||
that.twitter.post('statuses/update', { status: post, in_reply_to_status_id: reply }, (err, data, response) => {
|
||||
if (err) reject(err)
|
||||
else resolve(data)
|
||||
|
|
Loading…
Reference in a new issue