Created
October 26, 2013 10:27
-
-
Save ikr7/7167814 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
//@sn update_name [string] | |
module.exports = function(twi, data, cfg){ | |
var name = data.text.split(' ')[2]; | |
twi.post('/account/update_profile.json', { | |
'name': name | |
}, function(err, res){ | |
if(!err){ | |
console.log(res); | |
}else{ | |
console.error(err); | |
} | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment