I did a small discord bot 4-5 months ago with serenity, and while it worked, I found it was a mess.<p>It felt like someone was trying to force functional programming on rust, with typenames from java.<p>Sure it works but the code looked very verbose, and the ridiculous types like 'ApplicationCommandInteractionDataOptionValue' definitely did not help.<p>Serenity works well, it's just definitely not rust-style.
shuttle has released support for Serenity (a Rust library for the Discord API) a while back and now we have a tutorial ready for anyone willing to give it a go: <a href="https://www.shuttle.rs/blog/2022/09/14/serentity-discord-bot" rel="nofollow">https://www.shuttle.rs/blog/2022/09/14/serentity-discord-bot</a> (creating a simple Discord bot, extending it to a weather forecast bot and deploying it with shuttle, for free).<p>To give you some context on shuttle; it is a Rust-native cloud development platform (open-source) that allows you to deploy your Rust app (or Discord bot, in this case) by adding a single annotation to your main file. Once you do that, you can run `cargo shuttle deploy` and your app/bot is all set!
One thing that would help me have confidence in shuttle would be pricing somewhere between the $0 and "ask us" tiers. Something to consider after exiting your alpha.<p>I suppose that's what the "host for yourself on AWS" approach is for, it would be great to see some docs written for that too!<p>This is neat. I'm a huge fan of serverless as a backend. I happen to enjoy writing JavaScript, so my needs are fairly well meet, but I'm increasingly using rust for side projects so I'm glad to see someone taking the time to make it easy to use and deploy in a serverless environment.