feat: the backend is pretty simple, just pull the rep link from teh config_toml and add on the path to the docs.

Then its just linking it all up.

Closes #37
This commit is contained in:
silver 2025-06-24 00:00:56 +01:00
parent 1dc5c105df
commit 7403f531eb
Signed by untrusted user: silver
GPG key ID: 36F93D61BAD3FD7D
2 changed files with 18 additions and 0 deletions

View file

@ -279,6 +279,22 @@ pub mod link {
}
}
pub mod link_docs {
use super::*;
pub mod users {
use super::*;
use serenity::all::CommandInteraction;
pub async fn run(_command: &CommandInteraction, _ctx: &Context) -> String {
"https://forgejo.skynet.ie/Skynet/discord-bot/src/branch/main/doc/User.md".to_string()
}
}
// pub mod committee {
//
// }
}
pub mod verify {
use super::*;
use crate::commands::wolves::link::{db_pending_clear_expired, get_server_member_discord, get_verify_from_db};
@ -522,4 +538,5 @@ pub fn register() -> CreateCommand {
.add_sub_option(CreateCommandOption::new(CommandOptionType::String, "minecraft_username", "Your Minecraft username").required(true))
.add_sub_option(CreateCommandOption::new(CommandOptionType::Boolean, "bedrock_account", "Is this a Bedrock account?").required(false)),
)
.add_option(CreateCommandOption::new(CommandOptionType::SubCommand, "docs", "Link to where the documentation can be found."))
}