#Help setting up worker for discord bot

1 messages · Page 1 of 1 (latest)

spring bough
#

Hello, I wanted to host a discord bot that embeds tiktok links in my friends server. I found this really old bot+cloudflare worker that works but needs a little bit of changing.

i was looking for help on how to deploy this.

i did the quickstart guide on deploying cloudflare workers. So that makes sense but how does everything else fit in this puzzle?

I do have a local machine thats running constantly that i wanted to host it on. and I have a domain for changing the tiktok urls.

Bot: https://github.com/dustinrouillard/tiktok-discord-embeds
Worker: https://github.com/dustinrouillard/tiktok-embeds

GitHub

Discord bot to listen for Tiktok links and resend them using my Cloudflare OpenGraph worker - dustinrouillard/tiktok-discord-embeds

GitHub

Generates OpenGraph meta tags and gets the video file for Tiktoks from their share urls - dustinrouillard/tiktok-embeds

#

Help setting up worker for discord bot

supple knot
#

The worker can you deploy with use wrangler deploy but the bot needs to run somewhere else as Cloudflare isn’t for long running processes

spring bough
#

So far:

I've deployed the worker on CloudFlare but idk if it's working.

The discord bot container is ready but that's causing issues right now.

The problem right now is that it says the discord bot token is invalid

#

i pasted the bot token in client.login in the index.ts and it still throws this error