Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fb-opt-quotes

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fb-opt-quotes - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

lang/en.yaml

4

gruntfile.js

@@ -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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc