configure playing status

This commit is contained in:
jude
2022-05-13 12:43:27 +01:00
parent d7a0b727fb
commit 8bad95510d
3 changed files with 20 additions and 2 deletions

View File

@ -14,6 +14,9 @@ pub async fn listener(
data: &Data,
) -> Result<(), Error> {
match event {
poise::Event::Ready { .. } => {
ctx.set_activity(serenity::Activity::watching("for /remind")).await;
}
poise::Event::CacheReady { .. } => {
info!("Cache Ready! Preparing extra processes");

View File

@ -171,8 +171,6 @@ async fn _main(tx: Sender<()>) -> Result<(), Box<dyn StdError + Send + Sync>> {
.token(discord_token)
.user_data_setup(move |ctx, _bot, framework| {
Box::pin(async move {
ctx.set_activity(Activity::watching("for /remind")).await;
register_application_commands(
ctx,
framework,