3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-28 05:32:50 +01:00

you fool you foolish fool

This commit is contained in:
reality 2014-06-26 19:50:45 +00:00
parent 0697f0b5a0
commit 1af4788de0

View File

@ -168,7 +168,7 @@ var reddit = function(dbot) {
'~question': function(event) {
this.api.getTopPosts('askreddit', function(err, posts) {
if(!err) {
var qPost = _.random(0, posts.length - 1);
var qPost = posts[_.random(0, posts.length - 1)];
event.reply('Question: ' + qPost.title.trim());
}
});