|
|
@ -12,6 +12,7 @@ use std::io::Read;
|
|
|
|
use std::io::Write;
|
|
|
|
use std::io::Write;
|
|
|
|
|
|
|
|
|
|
|
|
use crate::commands::challenge::get_challenge_number;
|
|
|
|
use crate::commands::challenge::get_challenge_number;
|
|
|
|
|
|
|
|
use crate::commands::challenge::rebuild_site;
|
|
|
|
use crate::ShardManagerContainer;
|
|
|
|
use crate::ShardManagerContainer;
|
|
|
|
|
|
|
|
|
|
|
|
fn get_guild_data_path() -> String {
|
|
|
|
fn get_guild_data_path() -> String {
|
|
|
@ -211,3 +212,13 @@ You can make submissions in both languages, but please submit in your target lan
|
|
|
|
);
|
|
|
|
);
|
|
|
|
send(ctx, msg, &message, true, true).await
|
|
|
|
send(ctx, msg, &message, true, true).await
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[command]
|
|
|
|
|
|
|
|
#[owners_only]
|
|
|
|
|
|
|
|
#[allow(non_snake_case)]
|
|
|
|
|
|
|
|
async fn rebuildSite(ctx: &Context, msg: &Message) -> CommandResult {
|
|
|
|
|
|
|
|
rebuild_site();
|
|
|
|
|
|
|
|
msg.reply(&ctx.http, "Started site rebuild process!")
|
|
|
|
|
|
|
|
.await?;
|
|
|
|
|
|
|
|
Ok(())
|
|
|
|
|
|
|
|
}
|