alvaro-cuesta / nerdobot Goto Github PK
View Code? Open in Web Editor NEWIRC bot for #mv.nerd built with CoffeeScript + NodeJS
License: Other
IRC bot for #mv.nerd built with CoffeeScript + NodeJS
License: Other
Missing to
in irc.me
, irc.say
... should behave like mIRC's /ame
, /amsg
... for convenience.
Hey Kaod, no encuentro otra manera de localizarte, donde te metes, pasame skype o algo, que no quiero perder el contacto contigo :P
Un saludo
An URL spy that detects URLs from YouTube, GrooveShark, etc. and prints the meta-information alongside.
E.g.:
user: http://www.youtube.com/watch?v=-U-IzzE4hNE
nerdobot: Youtube: "Gothminister - March Of The Dead" - Duration: 4m 5s - Views: 52.915
Displaying always the first results reduce the usefulness of the commands. E.g.: when seaching for songs/videos, you often want a random item of the top results.
Exceptions should probably unload plugins (or just print to stdout) instead of crashing the bot. Maybe the current setup with forever is actually safer, so it might be wise to stick with it.
What about exceptioins outside plugins?
Limit how many messages it sends per second. User should be able to enable or disable this via configuration and should be able to change the hard-coded limit.
Apparently multiple channels are allowed in JOIN commands, so nerdobot should be able to handle this in events (is this a real use case or defensive programming?) and in irc.coffee
's .join
method and !join.
Joining passworded channels should be allowed too.
...namely on channel and id.
Pues eso, realmente no funciona bien el bot, tras instalar todo, a la hora de arrancar, tirar error buscando el plugin 0,
Error: Cannot find module '../plugins/0'
Aliases shouldn't be hard set by plugin authors, but configurable per-user.
Maybe it's not worth it, but a ident server might be helpful for systems where identd is not installed. Unfortunately it requires root privilege so it should be optional (if done at all).
Some examples:
!!coff
2+2
!!end
RESULT: TypeError: Cannot call method 'replace' of undefined
(expected = 4
)
!!coff 3+3
2+2
!!end
RESULT: = 6
(expected = 4
).
Seach by text (using SQL's like), author, nick...
WIP: feature/web .
A web interface is already working for plugin gitpush
but a webserver is a common use-case. All plugins should share the same webserver/Express instance, instead of rolling their own.
A way to detach Express handlers is required for plugin unloading.
Possible use cases:
There are several approaches to be considered:
Users should be handled by chaineable auth plugins, which will allow isAuthed('nick')
(or w.e.) to work in specific ways (by nick, by network services authentication, by ident, by host...)
Remember that permissions should be applied automatically to aliases too.
It should probably cachΓ© the user list, topic, etc. and react to events.
π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π© π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©π©
Both on input and on output:
!g Γ‘lvaro
yields a result titled "Colombian Sweetheart Catalina Otlvaro - YouTube" (notice how Γlvaro
was parsed as lvaro
.)
!g ramon langa
yields URL http://es.wikipedia.org/wiki/Ram%25C3%25B3n_LangaοΏ½
. Notice that %25C3
is not an actual char code, and should be %C3
(%25
should be url-decoded into %
.)
Test other special chars!
Nerdobot should be able to auto update from URL, either on his own (e.g. using gitpush
's events) or with an update command.
Upon disconnection by throttling, nerdobot should wait and retry, incrementing the wait time exponentially between attempts.
README is no place for development tutorials. It sits there because is short enough, but it should be migrated ASAP for clarity and organization.
Does this have multi-channel part messages? Don't think so but it's worth researching.
Also: !part
Plugin output should have optional ANSI colors in supported terminals (useful to emphasize input/out).
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.