initial rewrite in rust & moderation commands
Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
parent
b17e357b75
commit
45403e9d9b
53 changed files with 3297 additions and 2820 deletions
24
src/handlers/event/mod.rs
Normal file
24
src/handlers/event/mod.rs
Normal file
|
@ -0,0 +1,24 @@
|
|||
use crate::Data;
|
||||
|
||||
use color_eyre::eyre::{Report, Result};
|
||||
use poise::serenity_prelude as serenity;
|
||||
use poise::{Event, FrameworkContext};
|
||||
|
||||
pub async fn handle(
|
||||
ctx: &serenity::Context,
|
||||
event: &Event<'_>,
|
||||
framework: FrameworkContext<'_, Data, Report>,
|
||||
data: &Data,
|
||||
) -> Result<()> {
|
||||
match event {
|
||||
Event::Ready { data_about_bot } => {
|
||||
log::info!("Logged in as {}!", data_about_bot.user.name)
|
||||
}
|
||||
|
||||
Event::Message { new_message } => {}
|
||||
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue