From 0ac88f68b4ae3c9e8bf3923acfde761df2730e5f Mon Sep 17 00:00:00 2001 From: Robbie Date: Thu, 21 Dec 2023 04:16:15 +1100 Subject: [PATCH] Add Tunnelmole as an open source alternative to ngrok for your Discord Bot (#19864) * Add Tunnelmole as an open source alternative to ngrok * More compact instructions --------- Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> --- .../edge-functions/supabase/functions/discord-bot/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/edge-functions/supabase/functions/discord-bot/README.md b/examples/edge-functions/supabase/functions/discord-bot/README.md index 7d66deb798c..5ed2a17ab92 100644 --- a/examples/edge-functions/supabase/functions/discord-bot/README.md +++ b/examples/edge-functions/supabase/functions/discord-bot/README.md @@ -62,7 +62,11 @@ Open Discord, type `/Promise` and press **Enter**. ## Run locally +First, start the bot on your local machine ```bash supabase functions serve discord-bot --no-verify-jwt --env-file ./supabase/.env.local -ngrok http 54321 ``` + +To use it with Discord you'll need a Public URL. There are a couple of options. +1. [Tunnelmole](https://github.com/robbie-cahill/tunnelmole-client), an open source tunneling tool that will create a public URL that forwards traffic to your local development environment through a secure tunnel. View the [README](https://github.com/robbie-cahill/tunnelmole-client) for installation instructions then run `tmole 54321` +2. [ngrok](https://ngrok.com/) is a popular closed source tunneling tool. Go to the website to download and install it, then run `ngrok http 54321`