Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 13 files changed
  • 0 commit comments
  • 1 contributor
Commits on Apr 03, 2012
@michaeltwofish michaeltwofish Properly load plugins.
There has to be a nicer way of loading the plugin interface. Perhaps add
it as a property of parent nerdie and instantiate it in the plugin's
constructor?
693fad9
@michaeltwofish michaeltwofish Merge branch '0.3.0' of github.com:nerdie/nerdie into 0.3.0 8444dd0
View
2 plugins/beerscore.js
@@ -1,6 +1,6 @@
var http = require('http');
-var NerdieInterface = require('nerdie_interface.js');
+var NerdieInterface = require('../nerdie_interface.js');
function Beerscore(parentNerdie) {
this.pluginInterface = new NerdieInterface(parentNerdie, this);
View
2 plugins/conan.js
@@ -1,6 +1,6 @@
var request = require('request');
-var NerdieInterface = require('nerdie_interface.js');
+var NerdieInterface = require('../nerdie_interface.js');
function Conan(parentNerdie) {
this.pluginInterface = new NerdieInterface(parentNerdie, this);
View
2 plugins/convert.js
@@ -1,6 +1,6 @@
var request = require('request');
-var NerdieInterface = require('nerdie_interface.js');
+var NerdieInterface = require('../nerdie_interface.js');
function Convert(parentNerdie) {
this.pluginInterface = new NerdieInterface(parentNerdie, this);
View
2 plugins/parrot.js
@@ -1,4 +1,4 @@
-var NerdieInterface = require('nerdie_interface.js');
+var NerdieInterface = require('../nerdie_interface.js');
var currentCount;
var db;
View
2 plugins/pivotal.js
@@ -2,7 +2,7 @@ var https = require('https')
, querystring = require('querystring')
, xml2js = require('xml2js');
-var NerdieInterface = require('nerdie_interface.js');
+var NerdieInterface = require('../nerdie_interface.js');
var tracker_token;
var default_project;
View
2 plugins/reload.js
@@ -1,4 +1,4 @@
-var NerdieInterface = require('nerdie_interface.js')
+var NerdieInterface = require('../nerdie_interface.js')
, config = null;
function Reload(parentNerdie) {
View
2 plugins/sandbox.js
@@ -1,7 +1,7 @@
var sandbox = require('sandbox')
, codepad = require('codepad');
-var NerdieInterface = require('nerdie_interface.js');
+var NerdieInterface = require('../nerdie_interface.js');
module.exports = Sandbox;
View
2 plugins/search.js
@@ -1,7 +1,7 @@
var Google = require('../vendor/google/google')
, g = new Google();
-var NerdieInterface = require('nerdie_interface.js');
+var NerdieInterface = require('../nerdie_interface.js');
function Search(parentNerdie) {
this.pluginInterface = new NerdieInterface(parentNerdie, this);
View
2 plugins/tell.js
@@ -1,4 +1,4 @@
-var NerdieInterface = require('nerdie_interface.js');
+var NerdieInterface = require('../nerdie_interface.js');
var db;
var publicReminders = 3;
View
2 plugins/twitter.js
@@ -1,7 +1,7 @@
var http = require('http')
, querystring = require('querystring');
-var NerdieInterface = require('nerdie_interface.js');
+var NerdieInterface = require('../nerdie_interface.js');
var twitter_auth;
var bot;
View
2 plugins/tychay.js
@@ -1,6 +1,6 @@
var request = require('request');
-var NerdieInterface = require('nerdie_interface.js');
+var NerdieInterface = require('../nerdie_interface.js');
function Tychay(parentNerdie) {
this.pluginInterface = new NerdieInterface(parentNerdie, this);
View
2 plugins/weather.js
@@ -1,7 +1,7 @@
var request = require('request')
, querystring = require('querystring');
-var NerdieInterface = require('nerdie_interface.js');
+var NerdieInterface = require('../nerdie_interface.js');
var key = null
, config = null;
View
3 server.js
@@ -1,7 +1,6 @@
var jerk = require('jerk')
, events = require('events')
, fs = require('fs')
- , path = require( 'path' )
, config = require('./configulator');
// defaults:
@@ -34,7 +33,7 @@ Nerdie.prototype.bot = jerk(function(j){
var loadPlugin = function (prefix, filename) {
name = prefix + filename.split('.').slice(0, -1).join('.');
- var pluginLoader = path.join( __dirname, name )
+ var pluginLoader = require(name);
plugin = new pluginLoader(nerdie);
if ('object' == typeof plugin.pluginInterface) {

No commit comments for this range

Something went wrong with that request. Please try again.