Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Add Tunnelmole as an open source alternative to ngrok for your Discord Bot (#19864)

Robbie0ac88f68b4ae
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`