Coder Social home page Coder Social logo

nerdobot's People

Contributors

alvaro-cuesta avatar arrogance avatar blzkz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nerdobot's Issues

Contacto

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

Plugin exception handling

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?

Throttle PRIVMSGs

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.

Multiple-channel JOIN

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.

No arranca tras instalaciΓ³n fresh

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'

Ident server

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).

Block commands in 'eval' are broken

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).

Suggested plugins

Simple

  • Fortune cookie
  • 8ball (in progress by @Arrogance)

Networks/auth

  • IRC-Hispano auth
  • Nickserv

APIs

  • Google/bit.ly/cluds shortener/expander
  • Translation
  • MV
  • URL spy (title, wikipedia, youtube, twitter, tinysong...)

IRC

  • Proper logging
  • Stats (max users, most talking, most joins, etc.)
  • Op controls + autoop etc.
  • Seen

Games

Other/utils

Provide a common web interface for plugins

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:

  • Quotes
  • Remote administration (logs, reboot, etc.)
  • Log viewer
  • Stats/seen

User-configurable command permissions

There are several approaches to be considered:

  1. By-group permissions vs. by-user (or both!)
  2. Channel permissions vs. only by executing user
  3. Blacklist vs. whitelist

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.

Channel helper

  • User list
  • Topic
  • Modes
  • Bans
  • Kick/ban/etc.
  • ...

It should probably cachΓ© the user list, topic, etc. and react to events.

kaoD te queremos

πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’© πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©πŸ’©

Tildes are bugged in 'google' (and probably other plugins)

Both on input and on output:

Input

!g Ñlvaro yields a result titled "Colombian Sweetheart Catalina Otlvaro - YouTube" (notice how Álvaro was parsed as lvaro.)

Output

!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!

Auto-update

Nerdobot should be able to auto update from URL, either on his own (e.g. using gitpush's events) or with an update command.

Anti-throttling

Upon disconnection by throttling, nerdobot should wait and retry, incrementing the wait time exponentially between attempts.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.