Skip to content

[QUICKSTART] 🦖 Deploy your bot to Deno

Note: The steps below assume you have a working WebEx account & a Deno Deploy account

1) Get your bot access token

2) Create a new Project in Deno

sb

Note: There are many (better) ways to setup Deno, but for now we can just use the Playground and copy/paste everything in index.ts

sb

3) Expose your bot access token to Deno

  • You could insert your bot token directly in the Playground but a safer way is to use Deno environmental variables

  • Inside your playground, tap the Settings button and add your token secret (the Bot token from step 1)

  • If you're using a webhook secret (which you should), add it as a secret webhookSecret

sb

Verify you hit save underneath each secret you add to the playground

sb

4) Register your webhook

  • Grab your playground's URL (it'll be a strange name like https://noisy-bongodrum-75.deno.dev) and register your webhook using SpeedyBot Garage

  • Visit https://speedybot.js.org/garage and select webhooks and add your URL and optional (though highly recommeneded) webhook secret

  • If all went well you should see this and your bot is up and running on Deno!

sb

5) Take it for a spin

After connecting webhooks, send your bot a message to take it for a spin