LinkCop prep for live usage

This commit is contained in:
Logan Cusano
2022-01-29 20:29:44 -05:00
parent 2dfe119bf1
commit afacce854f

View File

@@ -22,15 +22,17 @@ random_message = ["{%mtn_user%}, tsk tsk. Links belong here:\n{%ref_og_msg%}", "
### Channel IDs
# testing 918029426397184000
# links 767303243285790721
# welcome 757379843792044102
# the-round-table 367396189529833474
class LinkCop(commands.Cog):
def __init__(self, bot): # , mention_group='Superadmins', channel_id=757379843792044102):
def __init__(self, bot):
self.bot = bot
self.reply_channel_id = 918029426397184000 # 767303243285790721
self.reply_channel_id = 767303243285790721
self.blocked_channels = [
918029426397184000,
767303243285790721
757379843792044102,
367396189529833474
]
self.whitelisted_groups = [
@@ -52,9 +54,6 @@ class LinkCop(commands.Cog):
if self.bot.user.id not in self.whitelisted_ID:
self.whitelisted_ID.append(self.bot.user.id)
print(self.whitelisted_ID)
print(ctx.author.id)
if ctx.author.id not in self.whitelisted_ID:
try:
if not any(item.id in self.whitelisted_groups for item in ctx.author.roles):