franckverrot / dalek Goto Github PK
View Code? Open in Web Editor NEWdalek is an experimental (and unfinished) campfire bot that can self-upgrade, watch the video for more information
dalek is an experimental (and unfinished) campfire bot that can self-upgrade, watch the video for more information
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.
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
Allow the bot to be configured (campfire token, ...) via a YML file.
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).
Log into CF, start the bot, and write into the room:
load https://raw.github.com/gist/51636fcd9bdd4d99afb5/7df9dbbf14682d4550b7edb6d74e0543bd958e34/evomebot
weather paris
➜ 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
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.