sriks / pibot Goto Github PK
View Code? Open in Web Editor NEWRaspberry pi bot
License: GNU General Public License v3.0
Raspberry pi bot
License: GNU General Public License v3.0
Change scheduler such that
"com.pibot.scheduler.event"
id
of passed in userInfo to see if this an event of interest and respond accordingly.[{ "id": "switch.light.on", "cron": "25 7 * * 1-5", "lightid": "bedroom" }]
added to commandcenter/infra/config/example-schedule.json
var events = Infra.events;
events.on("com.pibot.scheduler.event", function (userInfo) {
var eventId = userInfo["id"];
if (eventId === "schedule.workcountdown") {
consle.info("event has occured schedule.workcountdown");
}
});
Automatically identified events
auto.speak.
, then the pibot's speaking skill picks it and speaks the associated message { "id": "pibot.speak.timetosleep", "speak": "Hey, its bed time. Have a nice cozy sleep. Good night", "cron": "45 20 * * 1-5" },
Define a logger to serve the following purposes
Try elite
Try Google translate
Make commands case insensitive
pibot-0 (err): at _processSay (/home/pi/git/server/pibot/commandcenter/commandcenter.js:34:9)
pibot-0 (err): at Object.process (/home/pi/git/server/pibot/commandcenter/commandcenter.js:80:9)
pibot-0 (err): at _processCommand (/home/pi/git/server/pibot/pibot.js:12:8)
pibot-0 (err): at Object. (/home/pi/git/server/pibot/pibot.js:49:9)
pibot-0 (err): at Object. (/home/pi/git/server/pibot/node_modules/botkit/lib/CoreBot.js:765:28)
pibot-0 (err): at Object.Botkit.botkit.trigger (/home/pi/git/server/pibot/node_modules/botkit/lib/CoreBot.js:791:49)
pibot-0 (err): at Object. (/home/pi/git/server/pibot/node_modules/botkit/lib/SlackBot.js:472:34)
pibot-0 (err): at Object.Botkit.botkit.trigger (/home/pi/git/server/pibot/node_modules/botkit/lib/CoreBot.js:791:49)
pibot-0 (err): at /home/pi/git/server/pibot/node_modules/botkit/lib/CoreBot.js:873:32
pibot-0 (err): TypeError: Cannot call method 'randomJoke' of undefined
pibot-0 (err): at process (/home/pi/git/server/pibot/commandcenter/commandcenter.js:85:15)
pibot-0 (err): at _processSay (/home/pi/git/server/pibot/commandcenter/commandcenter.js:34:9)
pibot-0 (err): at Object.process (/home/pi/git/server/pibot/commandcenter/commandcenter.js:80:9)
pibot-0 (err): at _processCommand (/home/pi/git/server/pibot/pibot.js:12:8)
pibot-0 (err): at Object. (/home/pi/git/server/pibot/pibot.js:49:9)
pibot-0 (err): at Object. (/home/pi/git/server/pibot/node_modules/botkit/lib/CoreBot.js:765:28)
pibot-0 (err): at Object.Botkit.botkit.trigger (/home/pi/git/server/pibot/node_modules/botkit/lib/CoreBot.js:791:49)
pibot-0 (err): at Object. (/home/pi/git/server/pibot/node_modules/botkit/lib/SlackBot.js:472:34)
pibot-0 (err): at Object.Botkit.botkit.trigger (/home/pi/git/server/pibot/node_modules/botkit/lib/CoreBot.js:791:49)
pibot-0 (err): at /home/pi/git/server/pibot/node_modules/botkit/lib/CoreBot.js:873:32
Add chime similar to how Siri sounds before speaking something so that we don't scare people.
when pushed to master/when triggered by a special script
1.Load all dependencies from JSON configuration files places in etc/pibot/
. This path is admin only access.
pibot.json: general configuration of
schedule.json: Scheduler stuff
aws.json: AWS stuff
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.