Compare commits
3 Commits
b673a2fe6b
...
54ee3594eb
Author | SHA1 | Date | |
---|---|---|---|
|
54ee3594eb | ||
|
d7e90614c8 | ||
|
b5dbfe336d |
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2431,7 +2431,7 @@ checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56"
|
||||
|
||||
[[package]]
|
||||
name = "reminder-rs"
|
||||
version = "1.7.23"
|
||||
version = "1.7.24"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"chrono",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "reminder-rs"
|
||||
version = "1.7.23"
|
||||
version = "1.7.24"
|
||||
authors = ["Jude Southworth <judesouthworth@pm.me>"]
|
||||
edition = "2021"
|
||||
license = "AGPL-3.0 only"
|
||||
|
@ -13,9 +13,6 @@ pub async fn listener(
|
||||
data: &Data,
|
||||
) -> Result<(), Error> {
|
||||
match event {
|
||||
FullEvent::Ready { .. } => {
|
||||
ctx.set_activity(Some(ActivityData::watching("for /remind")));
|
||||
}
|
||||
FullEvent::ChannelDelete { channel, .. } => {
|
||||
sqlx::query!("DELETE FROM channels WHERE channel = ?", channel.id.get())
|
||||
.execute(&data.database)
|
||||
|
@ -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?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user