Skip to content
Snippets Groups Projects
Unverified Commit a8a035eb authored by tec's avatar tec
Browse files

Add skeletal verify command

parent 5de793cf
No related merge requests found
...@@ -51,6 +51,7 @@ impl EventHandler for Handler { ...@@ -51,6 +51,7 @@ impl EventHandler for Handler {
println!("{:#?}", msg.content); println!("{:#?}", msg.content);
} }
"register" => user_management::Commands::register(ctx, msg.clone(), message_content[1]), "register" => user_management::Commands::register(ctx, msg.clone(), message_content[1]),
"verify" => user_management::Commands::verify(ctx, msg.clone(), message_content[1]),
"join" => { "join" => {
user_management::Commands::join(ctx, msg.clone(), message_content[1]); user_management::Commands::join(ctx, msg.clone(), message_content[1]);
} }
......
...@@ -59,6 +59,12 @@ impl Commands { ...@@ -59,6 +59,12 @@ impl Commands {
); );
return; return;
} }
// token stuff
e!("Error deleting register message: {:?}", msg.delete(ctx));
}
pub fn verify(ctx: Context, msg: Message, content: &str) {
let token = content;
// if token is valid
e!( e!(
"Unable to get member: {:?}", "Unable to get member: {:?}",
serenity::model::id::GuildId(CONFIG.server_id) serenity::model::id::GuildId(CONFIG.server_id)
...@@ -96,6 +102,5 @@ impl Commands { ...@@ -96,6 +102,5 @@ impl Commands {
); );
}) })
); );
e!("Error deleting register message: {:?}", msg.delete(ctx));
} }
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment