discord guild data stuff

This commit is contained in:
2025-02-13 21:46:57 +01:00
parent 7f0a1cd476
commit 6cd8955252
5 changed files with 100 additions and 15 deletions
+9 -3
View File
@@ -1,7 +1,6 @@
#![warn(unused_extern_crates)]
mod cmds;
#[allow(unused_variables)]
mod bk_week_cmds;
mod events;
mod messages;
@@ -23,6 +22,11 @@ use tokio::runtime::Runtime;
use serde_json;
// TODO: command descriptions
// TODO: bot command permissions
// TODO: bk_mod verification system
#[derive(Parser, Serialize, Clone)]
struct Args {
#[arg(short = 'p', long, default_value = "2920", help = "Sets the port number, e.g 2200.")]
@@ -116,7 +120,7 @@ fn gen_data(args: Args) -> Data {
args: args.clone()
};
data::read_dc_data(&data);
data::read_dc_data(&data, args.clone().wipe);
data::read_re_data(&data, args.clone().wipe);
return data;
@@ -142,13 +146,15 @@ async fn gen_bot(data: Data) -> Client {
cmds::eight_ball(),
cmds::write_json(),
cmds::re_shorturl(),
cmds::add_server(),
//cmds::rule(),
bk_week_cmds::bk_week_help(),
bk_week_cmds::bk_week_get(),
bk_week_cmds::bk_week_add(),
bk_week_cmds::bk_week_remove(),
bk_week_cmds::bk_week_approve(),
bk_week_cmds::bk_week_disapprove()
bk_week_cmds::bk_week_disapprove(),
bk_week_cmds::bk_week_bind()
],
event_handler: events::event_handler,
..Default::default()