Giter Club home page Giter Club logo

dalek's People

Contributors

dmathieu avatar franckverrot avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

dalek's Issues

Improve routing

Add a better routing for commands.
An "on" command matches a regex, and the same regex can match to several plugins, they should all run.

Suck Yobot?

Shouldn't we just suck Yobot and fucking extend it? It's already in place, nothing's really hard if we just loop over all the plugins, and if we dynamically add some Ruby code to be instance_eval'd

YML Config

Allow the bot to be configured (campfire token, ...) via a YML file.

Weird shit

Symptom

For some reason the EM machinery is trying to reconnect after sending the message. I saw this happening when I wasn't providing a callback to an async method but I dont think it's the case right now (like calling firering_room.paste(foo) without a block).

How to reproduce

Log into CF, start the bot, and write into the room:

load https://raw.github.com/gist/51636fcd9bdd4d99afb5/7df9dbbf14682d4550b7edb6d74e0543bd958e34/evomebot
weather paris

Log:

➜  dalek git:(master) ✗ REDISTOGO_URL=redis://127.0.0.1:6379 CAMPFIRE_TOKEN=... CAMPFIRE_SUBDOMAIN=evome rake run --trace
** Invoke run (first_time)
** Execute run
I, [2011-08-07T22:59:14.494460 #14674]  INFO -- : performing request to http://evome.campfirenow.com/users/me.json
I, [2011-08-07T22:59:15.722917 #14674]  INFO -- : performing request to http://evome.campfirenow.com/rooms.json
I, [2011-08-07T22:59:16.853991 #14674]  INFO -- : performing request to http://evome.campfirenow.com/room/426330/join.json
I, [2011-08-07T22:59:16.855728 #14674]  INFO -- : performing request to http://evome.campfirenow.com/room/423584/join.json
I, [2011-08-07T22:59:17.813397 #14674]  INFO -- : performing streaming request to https://streaming.campfirenow.com/room/423584/live.json
I, [2011-08-07T22:59:17.986074 #14674]  INFO -- : performing streaming request to https://streaming.campfirenow.com/room/426330/live.json
I, [2011-08-07T22:59:22.366683 #14674]  INFO -- : performing request to http://evome.campfirenow.com/room/426330/speak.json
Pasting What's up in Lyon, Rh?ne-Alpes?
Condition: Clear
Temperature: 19°C
Humidity: 78%
Wind condition: Wind: N at 2 mph
I, [2011-08-07T22:59:30.853818 #14674]  INFO -- : performing request to http://evome.campfirenow.com/room/426330/speak.json
I, [2011-08-07T22:59:35.856484 #14674]  INFO -- : Reconnecting...
I, [2011-08-07T22:59:35.856796 #14674]  INFO -- : performing request to http://evome.campfirenow.com/room/426330/join.json
I, [2011-08-07T22:59:36.772233 #14674]  INFO -- : performing streaming request to https://streaming.campfirenow.com/room/426330/live.json
I, [2011-08-07T22:59:38.833401 #14674]  INFO -- : Reconnecting...
I, [2011-08-07T22:59:38.833770 #14674]  INFO -- : performing request to http://evome.campfirenow.com/room/426330/join.json
I, [2011-08-07T22:59:39.751149 #14674]  INFO -- : performing streaming request to https://streaming.campfirenow.com/room/426330/live.json
I, [2011-08-07T22:59:41.862878 #14674]  INFO -- : Reconnecting...
I, [2011-08-07T22:59:41.863233 #14674]  INFO -- : performing request to http://evome.campfirenow.com/room/426330/join.json
I, [2011-08-07T22:59:42.778224 #14674]  INFO -- : performing streaming request to https://streaming.campfirenow.com/room/426330/live.json
I, [2011-08-07T22:59:44.888919 #14674]  INFO -- : Reconnecting...
I, [2011-08-07T22:59:44.889647 #14674]  INFO -- : performing request to http://evome.campfirenow.com/room/426330/join.json
I, [2011-08-07T22:59:45.808655 #14674]  INFO -- : performing streaming request to https://streaming.campfirenow.com/room/426330/live.json

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.