Commit a8a035eb authored by tec's avatar tec

Add skeletal verify command

parent 5de793cf
......@@ -51,6 +51,7 @@ impl EventHandler for Handler {
println!("{:#?}", msg.content);
}
"register" => user_management::Commands::register(ctx, msg.clone(), message_content[1]),
"verify" => user_management::Commands::verify(ctx, msg.clone(), message_content[1]),
"join" => {
user_management::Commands::join(ctx, msg.clone(), message_content[1]);
}
......
......@@ -59,6 +59,12 @@ impl Commands {
);
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!(
"Unable to get member: {:?}",
serenity::model::id::GuildId(CONFIG.server_id)
......@@ -96,6 +102,5 @@ impl Commands {
);
})
);
e!("Error deleting register message: {:?}", msg.delete(ctx));
}
}
Markdown is supported
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