Skip to content

Commit

Permalink
Add activity status
Browse files Browse the repository at this point in the history
  • Loading branch information
2kai2kai2 committed Jul 15, 2024
1 parent c2a87a8 commit 0bad9f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion cartographer_bot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ serenity = { version = "0.12.2", default-features = false, features = [
"builder",
"chrono",
"client",
"interactions_endpoint",
"gateway",
"model",
"http",
Expand Down
3 changes: 2 additions & 1 deletion cartographer_bot/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::Context;
use lazy_static::lazy_static;
use reservations::{Reservation, ReservationsData};
use serenity::all::Ready;
use serenity::all::{ActivityData, Ready};
use serenity::model::application::*;
use serenity::{
all::{EventHandler, GatewayIntents},
Expand Down Expand Up @@ -343,6 +343,7 @@ async fn serenity(

let client = Client::builder(&token, GatewayIntents::empty())
.event_handler(Handler { db: pool })
.activity(ActivityData::custom("Taking EU4 Reservations"))
.await
.context("Err creating client")?;

Expand Down

0 comments on commit 0bad9f7

Please sign in to comment.