remove commented out code

This commit is contained in:
kageru 2020-12-18 01:13:16 +01:00
parent 0e866dfe97
commit f9319a1f10
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2

View File

@ -32,31 +32,6 @@ impl EventHandler for Handler {
react(&ctx, &message, 748564944819060856, "cringe");
}
}
/*
fn reaction_add(&self, ctx: Context, added_reaction: Reaction) {
if is_delet_this(&added_reaction.emoji) {
let msg = added_reaction.message(&ctx).unwrap();
if msg.channel_id != *MEME_CHANNEL
&& is_meme(&msg)
&& msg
.reactions
.iter()
.find(|r| is_delet_this(&r.reaction_type))
.map(|r| r.count >= 5)
.unwrap_or(false)
{
println!(
"Deleting message {:?} with content {} and attachments {:?}",
msg, msg.content, msg.attachments
);
if let Err(e) = msg.delete(&ctx) {
println!("Could not delete, error was: {:?}", e);
}
}
}
}
*/
}
fn is_delet_this(t: &ReactionType) -> bool {