OldBigBuddha / discord-slash-command-with-cloud-functions

Build a Discord Slash Command and deploy Cloud Functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

discord-slash-command-with-cloud-functions

Build a Discord Slash Command and deploy Cloud Functions

Update dependencies

$ npm run -ws update:check
$ npm run -ws update:apply

Debug for function

$ npm run -s @scrapbox/function start
$ curl http://localhost:8080/

Deploy to Google Cloud Function

Prepare(once)

  • install gcloud
  • run gcloud auth application-default login for deploying to Google Cloud Function

Deploy command

$ npm run -w @scrapbot/function deploy

Reference

About

Build a Discord Slash Command and deploy Cloud Functions

License:MIT License


Languages

Language:TypeScript 100.0%