mirror of
https://github.com/SamSanai/VoiceMaster-Discord-Bot.git
synced 2024-11-22 09:55:50 +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()
|
c = conn.cursor()
|
||||||
guildID = ctx.guild.id
|
guildID = ctx.guild.id
|
||||||
id = ctx.author.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):
|
def check(m):
|
||||||
return m.author.id == ctx.author.id
|
return m.author.id == ctx.author.id
|
||||||
await ctx.channel.send("**You have 60 seconds to answer each question!**")
|
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):
|
async def setlimit(self, ctx, num):
|
||||||
conn = sqlite3.connect('voice.db')
|
conn = sqlite3.connect('voice.db')
|
||||||
c = conn.cursor()
|
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,))
|
c.execute("SELECT * FROM guildSettings WHERE guildID = ?", (ctx.guild.id,))
|
||||||
voice=c.fetchone()
|
voice=c.fetchone()
|
||||||
if voice is None:
|
if voice is None:
|
||||||
@ -266,7 +266,7 @@ class voice(commands.Cog):
|
|||||||
guild = ctx.message.guild
|
guild = ctx.message.guild
|
||||||
guildID = ctx.guild.id
|
guildID = ctx.guild.id
|
||||||
id = ctx.author.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):
|
def check(m):
|
||||||
return m.author.id == ctx.author.id
|
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")
|
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