chore: ruff formatting

This commit is contained in:
neoarz
2025-11-02 23:32:52 -05:00
parent 2ce2c69a87
commit 1eff6c9f53
91 changed files with 3824 additions and 2518 deletions

View File

@@ -1,15 +1,17 @@
import os
from discord.ext import commands
def get_owner_friend_ids():
owner_friends = os.getenv("OWNER_FRIENDS", "")
if not owner_friends.strip():
return []
return [int(id.strip()) for id in owner_friends.split(",") if id.strip().isdigit()]
def is_owner_or_friend():
async def predicate(ctx):
owner_friend_ids = get_owner_friend_ids()
return ctx.author.id in owner_friend_ids or await ctx.bot.is_owner(ctx.author)
return commands.check(predicate)
return commands.check(predicate)