dckc / madmode-blog

my tinkering notebook (blog)
https://www.madmode.com
0 stars 2 forks source link

reaction -> role discord bot #158

Open dckc opened 2 years ago

dckc commented 2 years ago

We'd like one of these "give a ❤️ reaction to get the XYZ role, or the :construction-hat: role to get the builder role" bots.

It's available as part of the MEE6 hosted service. that's the buy option. But it involves security risk assesment.

The build option seems like ~150 lines of nodejs.

I'd prefer single-executable deployment using XS, but that's not a well-trodden path. ( https://github.com/dckc/madmode-blog/issues/82 )

@cwebber, does guile support single-executable deployment? (a la go / rust) wondering about js-on-guile / rockit for a discord bot...

cc @michaelfig

dckc commented 2 years ago

re deployment, nodejs on appengine fits pretty well with existing Agoric infrastructure.

Cloudflare workers might be even nicer.

dckc commented 2 years ago

another option is to integrate it into ag-solo.

dckc commented 2 years ago

or endo. cc @kriskowal

naugtur commented 2 years ago

Try vercel. Doesn't get any simpler

naugtur commented 2 years ago

Unless discord bots are not webhook based, but stateful websocket. Then I take it back 😉

dckc commented 2 years ago

I have experience with appengine, and we have billing set up. From what I know, vercel and appengine are interchangeable for this sort of thing. Is there something that makes it that much better?

naugtur commented 2 years ago

the development and deployment experience on vercel is my absolute favorite. I set up a repo and it gets deployed automatically on push, for each branch for testing and production from main. Or if I don't set it up like that, I deploy with a single command. Local dev just works.