ktiedt / nodejs-irc-bot Goto Github PK
View Code? Open in Web Editor NEWThis project forked from michaelowens/nodejs-irc-bot
A plugin-based IRC bot written in NodeJS.
Home Page: http://www.michaelowens.nl
License: The Unlicense
This project forked from michaelowens/nodejs-irc-bot
A plugin-based IRC bot written in NodeJS.
Home Page: http://www.michaelowens.nl
License: The Unlicense
I got this error when trying to run bot.js.
fairuz@fairuz-vb:~/NodeJS-IRC-Bot$ node bot.js
/home/fairuz/NodeJS-IRC-Bot/node_modules/pkgconfig/node_modules/jsvutil/lib/jsv.js:39
throw error('Schema validation failed.', report.errors);
^
ValidationError: Schema validation failed.
Instance is not a required type (object): pluginConfigs
at error (/home/fairuz/NodeJS-IRC-Bot/node_modules/pkgconfig/node_modules/jsvutil/lib/jsv.js:72:15)
at Object.validate (/home/fairuz/NodeJS-IRC-Bot/node_modules/pkgconfig/node_modules/jsvutil/lib/jsv.js:39:15)
at Object.validate (/home/fairuz/NodeJS-IRC-Bot/node_modules/pkgconfig/node_modules/jsvutil/index.js:54:9)
at pkgconfig (/home/fairuz/NodeJS-IRC-Bot/node_modules/pkgconfig/pkgconfig.js:129:20)
at Object. (/home/fairuz/NodeJS-IRC-Bot/bot.js:27:14)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
Any idea?
INFO:
fairuz@fairuz-vb:/NodeJS-IRC-Bot$ node --version/NodeJS-IRC-Bot$ npm --version
v0.10.0
fairuz@fairuz-vb:
1.2.14
Hi,
right now all users are allowed to call all commands. I guess we should create a separation of concerns here. E.g. Only admins are allowed to reload plugins, while members are only able to add words ti the textfilter. Other users can then e.g.call the lastseen functionality.
So i guess we have three user groups: admin, members and the rest. The users and there groups should be stored in a central place (json file and/or database). This will have an impact on all plugins and we should therefor put this in a central place (irc.js or global.js). What do you think?
https://github.com/kriszyp/compose
Example irc.js ported to Compose:
https://gist.github.com/4701193
Note: this does not fully demonstrate the benefits of Compose at this point, but this irc.js does appear to be 100% compat with the original irc.js (w/o touching any other code yet)
it would be nice, if the textfilter plugin would responding to english.
Right now, we are just parsing the command and the options, this should be made slightly more flexible. I am thinking about something like commander.js to add also some help-functionality.
This is already implemented in the freenode plugin, I believe. I will remove this in my next pull request.
Hey man,
See this project has gone quite the path already! Are you still working on this?
I've just been working on a bot for a different messaging service, using the same principle/idea this one does, but I did a lot of refactoring and actually made it work like it should (better events emitting, memory usage, no more eval).
Might be worth taking a look at!
https://github.com/michaelowens/MssGs-node-bot
Just wanted to let you know.
Can this bot also run on multiple Servers at the same time? (and handle them at the same time?)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.