I hereby claim:
- I am rwisner on github.
- I am rwisner (https://keybase.io/rwisner) on keybase.
- I have a public key ASAPBVCd1eR6mBoGwL28qpcutgcsR-Bc96i1lCsFGp3eewo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
app.handle('sheet_handle', async (conv) => { | |
// create a response | |
var response = ""; | |
// setup the package | |
const { GoogleSpreadsheet } = require('google-spreadsheet'); | |
// the spreadsheet id can be found in the URL of your sheet | |
const doc = new GoogleSpreadsheet('SHEET_ID_HERE'); |
app.handle('loop_handle', (conv) => { | |
var response = ""; | |
var loopCounter = conv.user.params.counter; | |
if (loopCounter > 0) { | |
loopCounter += 1; | |
} else { | |
loopCounter = 1; |
// ************************* | |
// play media in an rss feed | |
// ************************* | |
app.handle('play_handle', async (conv) => { | |
// rss-parser (https://www.npmjs.com/package/rss-parser) | |
let Parser = require('rss-parser'); | |
// create a new parser with custom fields | |
let parser = new Parser({ |
// **************** | |
// read an rss feed | |
// **************** | |
app.handle('rss_handle', async (conv) => { | |
// build a date string | |
var date = new Date(); | |
var dateMonthDate = date.getMonth() + 1; | |
dateMonthDate += "-"; | |
dateMonthDate += date.getDate(); |
app.handle('coin_handle', (conv) => { | |
// create a variable to hold the response | |
var response = ""; | |
// create a constant to hold what the user picked | |
const userSide = conv.intent.params.coin_slot.resolved; | |
response += "You picked " + userSide + ". "; | |
// generate a random number between 0 and 1 |
const { conversation } = require('@assistant/conversation'); | |
const functions = require('firebase-functions'); | |
const app = conversation(); | |
// ************ | |
// panda trivia | |
// ************ | |
app.handle('panda_handle', conv => { | |
// create a variable to hold the response |
<?xml version="1.0" encoding="UTF-8" ?> | |
<rss version="2.0"> | |
<channel> | |
<title>FEED TITLE</title> | |
<link>FEED LINK</link> | |
<description>FEED DESCRIPTION</description> | |
<item> | |
<pubDate>Mon, 19 Oct 2020 09:00:00 -0700</pubDate> | |
<title>ITEM ONE TITLE</title> | |
<link>ITEM ONE LINK</link> |
function addPin(mymap, lat, lon, name) { | |
// add a pin to mymap at lat, lon with a popup | |
L.marker([lat, lon]).addTo(mymap).bindPopup(name); | |
} |