Unverified Commit 084c34ff authored by tec's avatar tec
Browse files

Remove redundant command

parent 8c0574e7
......@@ -53,9 +53,6 @@ impl EventHandler for Handler {
}
"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]);
}
"move" => {
voting::Commands::move_something(ctx, msg.clone(), message_content[1]);
}
......
......@@ -42,14 +42,6 @@ pub fn new_member(ctx: &Context, mut new_member: Member) {
pub struct Commands;
impl Commands {
pub fn join(ctx: Context, msg: Message, _content: &str) {
e!(
"Unable to get user: {:?}",
serenity::model::id::GuildId(CONFIG.server_id)
.member(ctx.http.clone(), msg.author.id)
.map(|member| new_member(&ctx, member))
);
}
pub fn register(ctx: Context, msg: Message, account_name: &str) {
if account_name.is_empty() {
e!(
......
Supports Markdown
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