EVERYONE IS POLARIAN NOW

This commit is contained in:
delta 2022-07-11 08:30:59 +02:00
parent 67500f8e98
commit ba49971dd0
2 changed files with 8 additions and 7 deletions

View file

@ -60,12 +60,13 @@ impl<'a> StrChunks<'a> {
} }
async fn create_prefix(msg: &Message, is_reply: bool, http: impl CacheHttp) -> (String, usize) { async fn create_prefix(msg: &Message, is_reply: bool, http: impl CacheHttp) -> (String, usize) {
let nick = match msg.member(http).await { // let nick = match msg.member(http).await {
Ok(Member { // Ok(Member {
nick: Some(nick), .. // nick: Some(nick), ..
}) => Cow::Owned(nick), // }) => Cow::Owned(nick),
_ => Cow::Borrowed(&msg.author.name), // _ => Cow::Borrowed(&msg.author.name),
}; // };
let nick = "polarbear";
let mut chars = nick.char_indices(); let mut chars = nick.char_indices();
let first_char = chars.next().unwrap().1; let first_char = chars.next().unwrap().1;

View file

@ -68,7 +68,7 @@ pub async fn irc_loop(
continue; continue;
}; };
let nickname = unwrap_or_continue!(orig_message.source_nickname()); let nickname = "polarbear";
if let Command::PRIVMSG(ref channel, ref message) = orig_message.command { if let Command::PRIVMSG(ref channel, ref message) = orig_message.command {
let channel_id = ChannelId::from(*unwrap_or_continue!(mapping.get(channel))); let channel_id = ChannelId::from(*unwrap_or_continue!(mapping.get(channel)));