the hell is going on bro

This commit is contained in:
C committed 2025-04-01 12:15:25 -07:00
1 parent b910c71bfe
commit 8ce5412f9d
3 files changed
+158 -21

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
from discord.ext import commands
# Copyright (C) Flumboni - All Rights Reserved
# Unauthorized copying of this file, via any medium is strictly prohibited
# Proprietary and confidential
def check_flum():
async def predicate(ctx):
ids = [320825953154760704, 344273597612818444, 274983796414349313]
return ctx.author.id not in ids
return commands.check(predicate)
def check_bot():
async def predicate(ctx):
return not ctx.author.bot
return commands.check(predicate)
async def check(ctx):
ids = [232948417087668235, 124316478978785283, 131131701148647424]
return ctx.author.id in ids
def _check():
return commands.check(check)
def get_user(message, user):
try:
member = message.mentions[0]
except:
member = message.guild.get_member_named(user)
if not member:
try:
member = message.guild.get_member(int(user))
except ValueError:
pass
if not member:
return None
return member