GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - codeforcash/keybase-bot-awslambda: A keybase bot hosted on AWS Lambda

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
.config
.config
 
 
.npm
.npm
 
 
gopath/bin
gopath/bin
 
 
node_modules
node_modules
 
 
.gitignore
.gitignore
 
 
.yarnrc
.yarnrc
 
 
README.md
README.md
 
 
beemo_channel_send.js
beemo_channel_send.js
 
 
beemo_send.js
beemo_send.js
 
 
index.js
index.js
 
 
old_keybase_bot_index.js
old_keybase_bot_index.js
 
 
package.json
package.json
 
 
read.js
read.js
 
 
team.js
team.js
 
 
team_invite.js
team_invite.js
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

keybase-bot-awslambda

A keybase bot hosted on AWS Lambda

TL;DR:

  • This is a project to get https://github.com/keybase/keybase-bot running on AWS lambda

  • AWS Lambda doesnt ship with the which binary, or obscures access, so const keybaseBinaryLocation = await whichKeybase(); became const keybaseBinaryLocation = process.env['LAMBDA_TASK_ROOT'] + '/gopath/bin/keybase';

  • keybaseStatus was not returning the device name. i didn't want to bug the keybase devs with questions about why this was, so

if (status && status.Username && status.Device && status.Device.name) {
    return {
      username: status.Username,
      devicename: status.Device.name,
      homeDir
    };
  }

became

if(status) {
    return {
      username: 'beemo',
      devicename: 'awslambda',
      homeDir
    };
   }

==

The compiled keybase go client binary is just in gopath/bin - maybe worth noting that it was built on ec2 amazon linux instance.

To build, run zip -r KeybaseBot.zip . then upload to lambda and config the username + paperkey envvars within lambda`

  • Endpoints

** beemo-channel-send parameters

keybase_channel: required
message: required
topic_name: optional (defaults to 'general')

About

A keybase bot hosted on AWS Lambda

Resources

Readme
Activity
Custom properties

Stars

4 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.