From 05b291adf3c056614eec622174fe36a37367c576 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Wed, 31 Aug 2022 20:24:26 -0400 Subject: Add playing status w/ link to site and owner command to update --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 2a3a4fd..7956898 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,7 +13,7 @@ use dotenv::dotenv; use sqlx::{postgres::PgPoolOptions, PgPool}; use tracing::{info, instrument}; -use poise::serenity_prelude as serenity; +use poise::serenity_prelude::{self as serenity, Activity}; use ::serenity::model::gateway::GatewayIntents; type Error = Box; @@ -86,6 +86,7 @@ async fn main() { commands::meta::ping(), commands::meta::about(), commands::meta::userinfo(), + commands::meta::set_status(), commands::actions::boop(), commands::actions::hug(), commands::pony::randpony(), commands::pony::tpony(), commands::pony::ponybyid(), commands::osu::osup(), commands::osu::osubm(), @@ -168,6 +169,9 @@ async fn main() { sqlx::migrate!("./migrations") .run(&pool) .await.unwrap(); + + // Since this has context access, we can change the game activity here + _ctx.set_activity(Activity::playing(String::from("~help | https://glitchbot.net"))).await; Ok(Data { pg: Mutex::new(pool), }) -- cgit v1.2.3