Fix wrong env var

This commit is contained in:
EchtkPvL 2024-10-21 10:52:39 +02:00
parent fda89b3fe1
commit 1194639bb4

View File

@ -103,7 +103,7 @@ class voice(commands.Cog):
c = conn.cursor()
guildID = ctx.guild.id
id = ctx.author.id
if ctx.author.id == ctx.guild.owner_id or ctx.author.id == os.getenv('DISCORD_TOKEN'):
if ctx.author.id == ctx.guild.owner_id or ctx.author.id == os.getenv('DISCORD_ADMIN'):
def check(m):
return m.author.id == ctx.author.id
await ctx.channel.send("**You have 60 seconds to answer each question!**")
@ -140,7 +140,7 @@ class voice(commands.Cog):
async def setlimit(self, ctx, num):
conn = sqlite3.connect('voice.db')
c = conn.cursor()
if ctx.author.id == ctx.guild.owner.id or ctx.author.id == os.getenv('DISCORD_TOKEN'):
if ctx.author.id == ctx.guild.owner.id or ctx.author.id == os.getenv('DISCORD_ADMIN'):
c.execute("SELECT * FROM guildSettings WHERE guildID = ?", (ctx.guild.id,))
voice=c.fetchone()
if voice is None:
@ -266,7 +266,7 @@ class voice(commands.Cog):
guild = ctx.message.guild
guildID = ctx.guild.id
id = ctx.author.id
if ctx.author.id == ctx.guild.owner_id or ctx.author.id == os.getenv('DISCORD_TOKEN'):
if ctx.author.id == ctx.guild.owner_id or ctx.author.id == os.getenv('DISCORD_ADMIN'):
def check(m):
return m.author.id == ctx.author.id
await ctx.channel.send("**Do you really want to purge everything?** You have 60 seconds to type YES/Y")