fb-opt-quotes
Advanced tools
Comparing version 0.0.2 to 0.1.0
@@ -11,6 +11,6 @@ module.exports = function (grunt) { | ||
}, | ||
src : [ 'gruntfile.js', 'src/**/*.js' ] | ||
src : [ 'src/**/*.js', '*.js'] | ||
}, | ||
jscs : { | ||
src : 'src/**/*.js' | ||
src : ['src/**/*.js', '*.js'] | ||
}, | ||
@@ -17,0 +17,0 @@ bump : { |
{ | ||
"name": "fb-opt-quotes", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "A lovely Fritbot module", | ||
@@ -5,0 +5,0 @@ "repository": { |
# fb-opt-quotes | ||
Fritbot Quotes Module | ||
[Fritbot](https://github.com/Urthen/fritbot) Quotes Module | ||
Remember quotes by users, or optionally bulk import quotes by other people. Recite quotes in chat. |
@@ -23,3 +23,3 @@ var QUOTE_TIMEOUT = 3 * 60 * 60 * 1000; // 3 hours ago (in milliseconds); | ||
} | ||
route.send('I don\'t remember ' + name + ' saying anything like that.'); | ||
route.send('?quotes_nobody_said_that', name); | ||
} | ||
@@ -63,3 +63,4 @@ } | ||
if (quote.length === 0) { | ||
route.send("I can't remember nothing! Double negatives. Sometimes appropriate."); | ||
route.send('?quotes_needs_args'); | ||
return; | ||
} | ||
@@ -80,10 +81,8 @@ | ||
if (route.user._id.toString() === quotedata.user_id.toString()) { | ||
route.send('You can\'t remember yourself. Say something funnier next time, and maybe someone else will remember you.'); | ||
route.send('?quotes_remember_self'); | ||
} else { | ||
bot.db.schemas.quote.findOne({ message_id : quotedata.id }, function (err, priordata) { | ||
if (priordata) { | ||
route.send('Yeah, I already remembered that. Apparently you didn\'t.'); | ||
route.send('?quotes_already_remembered'); | ||
} else { | ||
route.send('Remembering ' + quotedata.nickname + ': ' + quotedata.text); | ||
bot.db.schemas.quote.create({ | ||
@@ -102,3 +101,3 @@ message_id : quotedata.id, | ||
route.send('I don\'t remember ' + name + ' saying "' + quote + '"'); | ||
route.send('?quotes_nobody_said_that', name); | ||
} | ||
@@ -105,0 +104,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16788
17