Set activity status and fix command reg

This commit is contained in:
Em (Ethan) Ruszanowski 2023-01-27 14:26:58 -05:00
parent c9a2a6ca8d
commit a7599f55e1
No known key found for this signature in database
GPG key ID: C3E7A3C0B1491DFE

View file

@ -1,7 +1,7 @@
mod commands;
use poise::serenity_prelude as serenity; use poise::serenity_prelude as serenity;
mod commands;
struct Data {} struct Data {}
type Error = Box<dyn std::error::Error + Send + Sync>; type Error = Box<dyn std::error::Error + Send + Sync>;
@ -29,6 +29,9 @@ async fn main() {
), ),
) )
.await?; // Update slash commands in GID .await?; // Update slash commands in GID
ctx.set_activity(serenity::Activity::playing("SMITE")).await;
Ok(Data {}) Ok(Data {})
}) })
}); });