This commit is contained in:
Stachelbeere1248 2024-02-23 10:07:33 +01:00
parent 69de5ea5d4
commit fa5be54d93
Signed by: Stachelbeere1248
SSH key fingerprint: SHA256:IozEKdw2dB8TZxkpPdMxcWSoWTIMwoLaCcZJ1AJnY2o

View file

@ -4,6 +4,8 @@ use poise::{async_trait, serenity_prelude as serenity};
use serenity::{client::EventHandler, model::id::UserId, FullEvent};
use std::collections::HashSet;
use std::convert::Into;
use serenity::all::{Activity, ActivityData};
use serenity::all::ShardRunnerMessage::SetActivity;
struct Data {} // User data, which is stored and accessible in all command invocations
type Error = Box<dyn std::error::Error + Send + Sync>;
@ -72,6 +74,7 @@ async fn main() {
let client = serenity::ClientBuilder::new(token, intents)
.framework(framework)
.activity(ActivityData::playing("arcade_zombies_prison"))
.await;
client.unwrap().start().await.unwrap()
}