1
Fork 0

Fix typo (Right instead of Ok)

This commit is contained in:
prescientmoon 2025-02-11 09:37:13 +01:00
parent 59c31dbc50
commit 127df615e7
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -27,10 +27,10 @@ async fn main() -> anyhow::Result<()> {
prefix_options: poise::PrefixFrameworkOptions {
stripped_dynamic_prefix: Some(|_ctx, message, _user_ctx| {
Box::pin(async {
let global_prefix = std::env::var("SHIMMERING_GLOBAL_PREFIX");
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() {