mirror of
https://github.com/SamSanai/VoiceMaster-Discord-Bot.git
synced 2024-11-22 01:45:32 +01:00
Fix wrong env var
This commit is contained in:
parent
fda89b3fe1
commit
1194639bb4
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user