feat: add a channel as a logging channel

Closes #1, fixes #10
This commit is contained in:
2023-11-23 02:09:45 +01:00
parent 47dd2b02c4
commit c7bf7ec9e6
7 changed files with 114 additions and 73 deletions

View File

@@ -5,14 +5,14 @@ pub mod utils;
use poise::FrameworkBuilder;
use utils::serenity;
use commands::add_logging_channel;
use commands::logging;
use utils::{BotData, Context, Error};
pub async fn make_bot() -> color_eyre::Result<FrameworkBuilder<BotData, Error>>
{
let framework = poise::Framework::builder()
.options(poise::FrameworkOptions {
commands: vec![add_logging_channel()],
commands: vec![logging()],
..Default::default()
})
.token(std::env::var("DISCORD_TOKEN").expect("missing DISCORD_TOKEN"))