diff --git a/cogs/voice.py b/cogs/voice.py index 57695a7..f967429 100644 --- a/cogs/voice.py +++ b/cogs/voice.py @@ -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")