cargo fmt

This commit is contained in:
Elnu 2022-02-27 16:37:29 -08:00
parent faf2a38400
commit 5b5f9c56f5
5 changed files with 25 additions and 16 deletions

View file

@ -1,15 +1,15 @@
use crate::utils::*;
use serde_json::Map;
use serenity::framework::standard::{macros::command, Args, CommandResult};
use serenity::http::typing::Typing;
use serenity::model::prelude::*;
use serenity::prelude::*;
use serenity::http::typing::Typing;
use slug::slugify;
use std::env;
use std::fs;
use serde_json::Map;
use std::fs::File;
use std::io::Write;
use std::path::Path;
use slug::slugify;
use crate::utils::*;
#[command]
async fn challenge(ctx: &Context, msg: &Message) -> CommandResult {

View file

@ -1,7 +1,7 @@
use crate::utils::*;
use serenity::framework::standard::{macros::command, Args, CommandResult};
use serenity::model::prelude::*;
use serenity::prelude::*;
use crate::utils::*;
#[command]
async fn i(ctx: &Context, msg: &Message, args: Args) -> CommandResult {

View file

@ -1,7 +1,7 @@
use serenity::framework::standard::macros::hook;
use serenity::framework::standard::{macros::command, CommandResult};
use serenity::model::prelude::*;
use serenity::prelude::*;
use serenity::framework::standard::macros::hook;
use std::env;
@ -40,4 +40,4 @@ pub async fn unrecognised_command_hook(
unrecognised_command_name: &str,
) {
msg.reply(&ctx.http, &format!("I don't understand the command '{}'. For a list of commands, see `{}help`. Commands are case-sensitive.", unrecognised_command_name, env::var("PREFIX").unwrap())).await.unwrap();
}
}

View file

@ -122,4 +122,4 @@ async fn rebuildSite(ctx: &Context, msg: &Message) -> CommandResult {
msg.reply(&ctx.http, "Started site rebuild process!")
.await?;
Ok(())
}
}