Don't set activity in ready event
This commit is contained in:
		@@ -39,6 +39,7 @@ use poise::serenity_prelude::{
 | 
			
		||||
    },
 | 
			
		||||
    ClientBuilder,
 | 
			
		||||
};
 | 
			
		||||
use serenity::all::ActivityData;
 | 
			
		||||
use sqlx::{MySql, Pool};
 | 
			
		||||
use tokio::sync::{broadcast, broadcast::Sender, RwLock};
 | 
			
		||||
 | 
			
		||||
@@ -283,8 +284,10 @@ async fn _main(tx: Sender<()>) -> Result<(), Box<dyn StdError + Send + Sync>> {
 | 
			
		||||
        .options(options)
 | 
			
		||||
        .build();
 | 
			
		||||
 | 
			
		||||
    let mut client =
 | 
			
		||||
        ClientBuilder::new(&discord_token, GatewayIntents::GUILDS).framework(framework).await?;
 | 
			
		||||
    let mut client = ClientBuilder::new(&discord_token, GatewayIntents::GUILDS)
 | 
			
		||||
        .framework(framework)
 | 
			
		||||
        .activity(ActivityData::watching("for /remind"))
 | 
			
		||||
        .await?;
 | 
			
		||||
 | 
			
		||||
    client.start_autosharded().await?;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user