reorganized cmds folder structure

This commit is contained in:
2026-03-01 11:28:00 +01:00
parent 7ecabfb0c8
commit ae9b1f3ba0
35 changed files with 52 additions and 286 deletions
+18
View File
@@ -0,0 +1,18 @@
use crate::{db::discord::bind_bk, lang, messages::send_msg, Context, Error};
pub async fn cmd(
ctx: Context<'_>
) -> Result<(), Error>
{
let c_id = ctx.channel_id().into();
let r = bind_bk(ctx.data(), ctx.guild_id().unwrap().into(), c_id).await;
if r.is_ok() {
send_msg(ctx, lang!("dc_msg_bound_channel", c_id), true, true).await;
}
else {
send_msg(ctx, lang!("dc_msg_data_server_404"), true, true).await;
}
return Ok(());
}