Removed excess use statements
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
use std::collections::VecDeque;
|
||||
use irc::proto::{Message, Command::PRIVMSG};
|
||||
use regex::Regex;
|
||||
use irc::proto::Message,
|
||||
use rand::prelude::Rng;
|
||||
|
||||
|
||||
@@ -17,7 +16,7 @@ const BULLY_PHRASES:[&str;12] = [
|
||||
" doesn't care about your race, sex, or age... or anything about you really, ",
|
||||
" has more maidens than you, ",
|
||||
"'s faith in society has plummeted since meeting you, ",
|
||||
" think you're about as good as the dining hall food, ",
|
||||
" thinks you're about as good as the dining hall food, ",
|
||||
" gives eMoTiOnAL dAmAgE to ",
|
||||
" has a confession to make. You're ugly, ",
|
||||
" thinks you were probably the pilot of Ever Given when it clogged the Suez Canal, "
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
use std::collections::VecDeque;
|
||||
use irc::proto::{Message, Command::*};
|
||||
use regex::Regex;
|
||||
use irc::proto::Message;
|
||||
use rand::prelude::Rng;
|
||||
|
||||
const LENNYS:[&str;12] = ["( ͡° ͜ʖ ͡°)","( ͠° ͟ʖ ͡°)","ᕦ( ͡° ͜ʖ ͡°)ᕤ","( ͡° ͜ʖ ͡°)","( ͡~ ͜ʖ ͡°)","( ͡o ͜ʖ ͡o)","͡° ͜ʖ ͡ -","( ͡͡ ° ͜ ʖ ͡ °)","( ͡ ͡° ͡° ʖ ͡° ͡°)","(ง ͠° ͟ل͜ ͡°)ง","( ͡° ͜ʖ ͡ °)","( ͡°╭͜ʖ╮͡° )"];
|
||||
@@ -8,7 +7,7 @@ pub const PATTERN: &str = "^\\$[Ll]enny\\s*(?P<text>.*)$";
|
||||
const USAGE: &str = "Usage: ![Ll]enny
|
||||
Displays a Lenny face ( ͡° ͜ʖ ͡°)";
|
||||
|
||||
pub fn mod_message(captures: regex::Captures, message: &Message, message_buf: &VecDeque<Message>) -> Option<(String,String)> {
|
||||
pub fn mod_message(captures: regex::Captures, message: &Message, _message_buf: &VecDeque<Message>) -> Option<(String,String)> {
|
||||
let lenny = LENNYS[rand::thread_rng().gen_range(0..LENNYS.len())].to_string();
|
||||
let text = captures.get(1).unwrap().as_str();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user