One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| 'use strict'; | |
| define(['phaser'], function(Phaser) { | |
| function Gesture(game) { | |
| this.game = game; | |
| this.swipeDispatched = false; | |
| this.holdDispatched = false; | |
| this.isTouching = false; |
| var crypto = require('crypto'); | |
| var bodyParser = require('body-parser'); | |
| var debug = require('debug')('botkit:verify_xhub_fb'); | |
| module.exports = function(webserver, controller) { | |
| if (controller.config.validate_requests === true) { | |
| // Load verify middleware just for post route on our receive webhook, and catch any errors it might throw to prevent the request from being parsed further. | |
| webserver.post('/facebook/receive', bodyParser.json({verify: verifyRequest})); |
| " Beginners .vimrc | |
| " v0.1 2012-10-22 Philip Thrasher | |
| " | |
| " Important things for beginners: | |
| " * Start out small... Don't jam your vimrc full of things you're not ready to | |
| " immediately use. | |
| " * Read other people's vimrc's. | |
| " * Use a plugin manager for christ's sake! (I highly recommend vundle) | |
| " * Spend time configuring your editor... It's important. Its the tool you | |
| " spend 8 hours a day crafting your reputation. |
| // Load your Glitch project, paste this into the javascript console of chrome inspect | |
| // Enjoy vim goodness! | |
| (function () { | |
| var makeCursorFat = function() { | |
| var style = document.createElement('style'); | |
| style.textContent = | |
| 'div.CodeMirror div.CodeMirror-cursor { ' + | |
| 'width: auto; ' + | |
| 'border: 0; ' + |
| // Paste this whole file into your Chrome Secure Shell window's inspect console, and run it! | |
| term_.prefs_.set('enable-bold', false) | |
| term_.prefs_.set('background-color', "#282a36"); | |
| term_.prefs_.set('foreground-color', "#f8f8f2"); | |
| term_.prefs_.set('color-palette-overrides', [ | |
| "#000000", | |
| "#ff5555", | |
| "#50fa7b", |
| module.exports = function(controller) { | |
| // Chaining multiple questions together using callbacks | |
| // You have to call convo.next() in each callback in order to keep the conversation flowing | |
| controller.hears('qq', 'message_received', function(bot, message) { | |
| bot.startConversation(message, function(err, convo) { | |
| convo.say('Lets get to know each other a little bit!') | |
| convo.ask('Which is more offensive? Book burning or flag burning?', function(res, convo) { | |
| convo.next() |
| // drop this file into your skills folder if using a botkit-starter kit | |
| // or just copy paste whats inside this function into your bot script | |
| module.exports = function(controller) { | |
| // Chaining multiple questions together using callbacks | |
| // You have to call convo.next() in each callback in order to keep the conversation flowing | |
| controller.hears('qq', 'message_received', function(bot, message) { | |
| bot.startConversation(message, function(err, convo) { | |
| convo.say('Lets get to know each other a little bit!') |
| 'use strict'; | |
| exports.handler = (event, context, callback) => { | |
| // Currently all possible fields | |
| // { | |
| // "sessionAttributes": { | |
| // "key1": "value1", | |
| // "key2": "value2" | |
| // ... | |
| // }, |
| var Botkit = require('botkit'); | |
| // Create the Botkit controller, which controls all instances of the bot. | |
| var controller = Botkit.facebookbot({ | |
| debug: true, | |
| verify_token: process.env.verify_token, | |
| access_token: process.env.page_token, | |
| }); | |
| // Set up an Express-powered webserver to expose oauth and webhook endpoints | |
| // We are passing the controller object into our express server module |