7X4JWWW7WOVGPMBIAAEJTWG6NZW5EI5ZIYB33J7YCBDOODFAZXYQC
if args.len() != 1 {
let _ = msg.reply("Donne moi **un** nom !");
let _ = msg.react('❎');
return Ok(());
}
let user: String = args.iter().next().unwrap().unwrap();
let user = match get_user_id(user) {
Err(e) => {
let _ = msg.reply(&e);
let _ = msg.react('❎');
return Ok(());
},
Ok(u) => u,
};
let mut data = ctx.data.lock();
let score = data
.get_mut::<Score>()
.expect("Expected Score in ShareMap.");
let entry = score.entry(user.to_string()).or_insert(0);
*entry -= 1;
let _ = msg.react('👌');
update_score(ctx, msg, &mut args, |n| n - 1);
return Ok(());