To be || not to be

This commit is contained in:
Tom 2023-04-08 20:58:55 +02:00
parent fff7611e9b
commit 5d2f9a777c

View file

@ -137,7 +137,7 @@ async fn default_register(ctx: Context<'_>) -> Result<(), Error> {
ctx.say(format!("Commands: {}", commands.len())).await?;
fn globals_filter(name: &String) -> bool {
name.starts_with("invite") or name.starts_with("boop") or name.starts_with("fix")
name.starts_with("invite") || name.starts_with("boop") || name.starts_with("fix")
}
// If the user is the bot owner, also correct the global commands.