bland-horse-72062
05/06/2023, 6:59 PMbland-horse-72062
05/06/2023, 7:00 PMbland-horse-72062
05/06/2023, 7:15 PMbland-horse-72062
05/06/2023, 7:15 PMgentle-ice-1561
05/06/2023, 7:16 PMbland-horse-72062
05/06/2023, 7:17 PMbland-horse-72062
05/06/2023, 7:17 PMgentle-ice-1561
05/06/2023, 7:20 PMOk(client)
. It is best to look at the serenity example code.gifted-secretary-9890
05/06/2023, 7:21 PM#[shuttle_runtime::main]
async fn serenity(
#[shuttle_secrets::Secrets] secret_store: SecretStore,
) -> shuttle_serenity::ShuttleSerenity {
// Get the discord token set in `Secrets.toml`
let token = if let Some(token) = secret_store.get("DISCORD_TOKEN") {
token
} else {
return Err(anyhow!("'DISCORD_TOKEN' was not found").into());
};
let client = Client::builder(&token, GatewayIntents::ALL())
.event_handler(handler::Handler)
.framework(framework)
.await
.expect("Err creating client");
Ok(client.into())
}
gifted-secretary-9890
05/06/2023, 7:22 PMshuttle-secrets
, shuttle-runtime
, and shuttle-serenity
to your Cargo.tomlgifted-secretary-9890
05/06/2023, 7:23 PMbland-horse-72062
05/06/2023, 7:32 PMdeployment has not entered the running state
?bland-horse-72062
05/06/2023, 7:34 PMbland-horse-72062
05/06/2023, 7:39 PMgifted-secretary-9890
05/06/2023, 7:47 PMdeployment has not entered the running state
in this case probably means that the log stream was broken, not that the deployment didn't actually start runningenough-oil-62271
05/06/2023, 7:50 PMbland-horse-72062
05/06/2023, 8:40 PMbland-horse-72062
05/06/2023, 8:40 PMgentle-ice-1561
05/06/2023, 9:43 PMbland-horse-72062
05/06/2023, 9:48 PMenough-oil-62271
05/06/2023, 9:49 PMcargo shuttle project restart --idle-minutes 0
and then deploybland-horse-72062
05/06/2023, 9:50 PMenough-oil-62271
05/06/2023, 9:51 PMbland-horse-72062
05/06/2023, 9:51 PMbland-horse-72062
05/06/2023, 9:52 PM