Skip to content

Commit c7b7de8

Browse files
authored
Able to put more bot owners
1 parent 7cae7c9 commit c7b7de8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

bot.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
BOT_PREFIX = ('YOUR_BOT_PREFIX_HERE')
1414
TOKEN = 'YOUR_BOT_TOKEN_HERE'
15-
OWNER = 'YOUR_DISCORD_USER_ID_HERE'
15+
OWNERS = ['YOUR_DISCORD_USER_ID_HERE', 'ANOTHER_DISCORD_USER_ID_HERE']
1616
BLACKLIST = []
1717
client = Bot(command_prefix=BOT_PREFIX)
1818

@@ -176,7 +176,7 @@ async def shutdown(context):
176176
description='Ask the owner to remove from the list if it was unfair.', color=0x00FF00)
177177
await client.say(embed=embed)
178178
else:
179-
if context.message.author.id == OWNER:
179+
if context.message.author.id in OWNERS:
180180
embed = discord.Embed(title='Shutdown!', description='Shutting down. Bye! :wave:', color=0x00FF00)
181181
await client.send_message(context.message.channel, embed=embed)
182182
await client.logout()
@@ -193,7 +193,7 @@ async def echo(context, *, content):
193193
embed = discord.Embed(title='You\'re blacklisted!', description='Ask the owner to remove from the list if it was unfair.', color=0x00FF00)
194194
await client.say(embed=embed)
195195
else:
196-
if context.message.author.id == OWNER:
196+
if context.message.author.id in OWNERS:
197197
await client.delete_message(context.message)
198198
await client.say(content)
199199
else:
@@ -206,7 +206,7 @@ async def embed(context, *args):
206206
embed = discord.Embed(title='You\'re blacklisted!', description='Ask the owner to remove from the list if it was unfair.', color=0x00FF00)
207207
await client.say(embed=embed)
208208
else:
209-
if context.message.author.id == OWNER:
209+
if context.message.author.id in OWNERS:
210210
mesg = ' '.join(args)
211211
embed = discord.Embed(description=mesg, color=0x00FF00)
212212
await client.say(embed=embed)
@@ -225,7 +225,7 @@ async def kick(context, member: discord.Member, *args):
225225
description='Ask the owner to remove from the list if it was unfair.', color=0x00FF00)
226226
await client.say(embed=embed)
227227
else:
228-
if context.message.author.server_permissions.kick_members or context.message.author.id == OWNER:
228+
if context.message.author.server_permissions.kick_members or context.message.author.id in OWNERS:
229229
if member.server_permissions.administrator:
230230
embed = discord.Embed(title='Error!', description='User has Admin permissions.', color=0x00FF00)
231231
await client.send_message(context.message.channel, embed=embed)
@@ -252,7 +252,7 @@ async def nick(context, member: discord.Member, *, name : str):
252252
embed = discord.Embed(title='You\'re blacklisted!', description='Ask the owner to remove from the list if it was unfair.', color=0x00FF00)
253253
await client.say(embed=embed)
254254
else:
255-
if context.message.author.server_permissions.administrator or context.message.author.id == OWNER:
255+
if context.message.author.server_permissions.administrator or context.message.author.id in OWNERS:
256256
if name.lower() == "!reset":
257257
name = None
258258
embed = discord.Embed(title='Changed Nickname!', description='**{0}** new nickname is **{1}**!'.format(member, name), color=0x00FF00)
@@ -271,7 +271,7 @@ async def ban(context, member: discord.Member, *args):
271271
description='Ask the owner to remove from the list if it was unfair.', color=0x00FF00)
272272
await client.say(embed=embed)
273273
else:
274-
if context.message.author.server_permissions.administrator or context.message.author.id == OWNER:
274+
if context.message.author.server_permissions.administrator or context.message.author.id in OWNERS:
275275
if member.server_permissions.administrator:
276276
embed = discord.Embed(title='Error!', description='User has Admin permissions.', color=0x00FF00)
277277
await client.send_message(context.message.channel, embed=embed)
@@ -300,7 +300,7 @@ async def unban(context, user: discord.User):
300300
description='Ask the owner to remove from the list if it was unfair.', color=0x00FF00)
301301
await client.say(embed=embed)
302302
else:
303-
if context.message.author.server_permissions.administrator or context.message.author.id == OWNER:
303+
if context.message.author.server_permissions.administrator or context.message.author.id in OWNERS:
304304
embed = discord.Embed(title='User Unbanned!',
305305
description='**{0}** was unbanned by **{1}**!'.format(user, context.message.author),
306306
color=0x00FF00)
@@ -323,7 +323,7 @@ async def warn(context, member: discord.Member, *args):
323323
description='Ask the owner to remove from the list if it was unfair.', color=0x00FF00)
324324
await client.say(embed=embed)
325325
else:
326-
if context.message.author.server_permissions.administrator or context.message.author.id == OWNER:
326+
if context.message.author.server_permissions.administrator or context.message.author.id in OWNERS:
327327
mesg = ' '.join(args)
328328
embed = discord.Embed(title='User Warned!',
329329
description='**{0}** was warned by **{1}**!'.format(member, context.message.author),
@@ -347,7 +347,7 @@ async def purge(context, number):
347347
description='Ask the owner to remove from the list if it was unfair.', color=0x00FF00)
348348
await client.say(embed=embed)
349349
else:
350-
if context.message.author.server_permissions.administrator or context.message.author.id == OWNER:
350+
if context.message.author.server_permissions.administrator or context.message.author.id in OWNERS:
351351
await client.delete_message(context.message)
352352
number = int(number)
353353
counter = 0

0 commit comments

Comments
 (0)