Compare commits
No commits in common. "54ee3594eb8db8f3eaa1ba29e0cbd191290d7450" and "b673a2fe6b674c52f06a1a5904d1a80f4f46b73a" have entirely different histories.
54ee3594eb
...
b673a2fe6b
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2431,7 +2431,7 @@ checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "reminder-rs"
|
name = "reminder-rs"
|
||||||
version = "1.7.24"
|
version = "1.7.23"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64 0.22.1",
|
"base64 0.22.1",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "reminder-rs"
|
name = "reminder-rs"
|
||||||
version = "1.7.24"
|
version = "1.7.23"
|
||||||
authors = ["Jude Southworth <judesouthworth@pm.me>"]
|
authors = ["Jude Southworth <judesouthworth@pm.me>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "AGPL-3.0 only"
|
license = "AGPL-3.0 only"
|
||||||
|
@ -13,6 +13,9 @@ pub async fn listener(
|
|||||||
data: &Data,
|
data: &Data,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
match event {
|
match event {
|
||||||
|
FullEvent::Ready { .. } => {
|
||||||
|
ctx.set_activity(Some(ActivityData::watching("for /remind")));
|
||||||
|
}
|
||||||
FullEvent::ChannelDelete { channel, .. } => {
|
FullEvent::ChannelDelete { channel, .. } => {
|
||||||
sqlx::query!("DELETE FROM channels WHERE channel = ?", channel.id.get())
|
sqlx::query!("DELETE FROM channels WHERE channel = ?", channel.id.get())
|
||||||
.execute(&data.database)
|
.execute(&data.database)
|
||||||
|
@ -39,7 +39,6 @@ use poise::serenity_prelude::{
|
|||||||
},
|
},
|
||||||
ClientBuilder,
|
ClientBuilder,
|
||||||
};
|
};
|
||||||
use serenity::all::ActivityData;
|
|
||||||
use sqlx::{MySql, Pool};
|
use sqlx::{MySql, Pool};
|
||||||
use tokio::sync::{broadcast, broadcast::Sender, RwLock};
|
use tokio::sync::{broadcast, broadcast::Sender, RwLock};
|
||||||
|
|
||||||
@ -284,10 +283,8 @@ async fn _main(tx: Sender<()>) -> Result<(), Box<dyn StdError + Send + Sync>> {
|
|||||||
.options(options)
|
.options(options)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
let mut client = ClientBuilder::new(&discord_token, GatewayIntents::GUILDS)
|
let mut client =
|
||||||
.framework(framework)
|
ClientBuilder::new(&discord_token, GatewayIntents::GUILDS).framework(framework).await?;
|
||||||
.activity(ActivityData::watching("for /remind"))
|
|
||||||
.await?;
|
|
||||||
|
|
||||||
client.start_autosharded().await?;
|
client.start_autosharded().await?;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user