Fix typo (Right instead of Ok)
This commit is contained in:
parent
59c31dbc50
commit
127df615e7
|
@ -30,7 +30,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
let global_prefix = std::env::var("SHIMMERING_GLOBAL_PREFIX");
|
||||
if message.author.bot || Into::<u64>::into(message.author.id) == 1 {
|
||||
Ok(None)
|
||||
} else if let Right(global_prefix) = global_prefix {
|
||||
} else if let Ok(global_prefix) = global_prefix {
|
||||
Ok(Some(message.content.split_at(global_prefix.len())))
|
||||
} else if message.guild_id.is_none() {
|
||||
if message.content.trim().is_empty() {
|
||||
|
|
Loading…
Reference in a new issue