Show HN: A pure rust discord bot hosted on Cloudflare workers
github.comHi HN,
I've made a discord bot template that you can clone and create your own bots.
It's a serverless bot hosted on cloudflare workers which looks like a great use case for this sort of thing.
Using workers you have almost zero (<5ms) cold start time for your functions. With a free account you get up to 100k requests per day and you can store/access state using KV or durable objects.
Workers only support Javascript and WASM in their runtime. This bot is writter in pure rust which compiles to WASM and deploys your worker with a simple CLI command.
I've made a couple of bots using this template, mainly for stitching together rest APIs and the response times are pretty great.
That's all, thanks!
No comments yet.