EVERYONE IS POLARIAN NOW
This commit is contained in:
parent
67500f8e98
commit
ba49971dd0
|
@ -60,12 +60,13 @@ impl<'a> StrChunks<'a> {
|
|||
}
|
||||
|
||||
async fn create_prefix(msg: &Message, is_reply: bool, http: impl CacheHttp) -> (String, usize) {
|
||||
let nick = match msg.member(http).await {
|
||||
Ok(Member {
|
||||
nick: Some(nick), ..
|
||||
}) => Cow::Owned(nick),
|
||||
_ => Cow::Borrowed(&msg.author.name),
|
||||
};
|
||||
// let nick = match msg.member(http).await {
|
||||
// Ok(Member {
|
||||
// nick: Some(nick), ..
|
||||
// }) => Cow::Owned(nick),
|
||||
// _ => Cow::Borrowed(&msg.author.name),
|
||||
// };
|
||||
let nick = "polarbear";
|
||||
|
||||
let mut chars = nick.char_indices();
|
||||
let first_char = chars.next().unwrap().1;
|
||||
|
|
|
@ -68,7 +68,7 @@ pub async fn irc_loop(
|
|||
continue;
|
||||
};
|
||||
|
||||
let nickname = unwrap_or_continue!(orig_message.source_nickname());
|
||||
let nickname = "polarbear";
|
||||
if let Command::PRIVMSG(ref channel, ref message) = orig_message.command {
|
||||
let channel_id = ChannelId::from(*unwrap_or_continue!(mapping.get(channel)));
|
||||
|
||||
|
|
Loading…
Reference in a new issue