[safetychecks] bot_test >>> testing_the_bot, huggingfolks >>> fellows
Browse files
app.py
CHANGED
@@ -84,8 +84,10 @@ async def safetychecks(ctx):
|
|
84 |
await ctx.reply(f"β
{bot} is online")
|
85 |
|
86 |
#β
β
check if the command is in the allowed channel(s)
|
87 |
-
|
88 |
-
|
|
|
|
|
89 |
print(f"If using a command, commands are not permitted in {ctx.channel}")
|
90 |
return False
|
91 |
else:
|
@@ -93,7 +95,7 @@ async def safetychecks(ctx):
|
|
93 |
|
94 |
#β
β
check if the user has the required role(s)
|
95 |
guild_id = 879548962464493619
|
96 |
-
required_role_id =
|
97 |
guild = bot.get_guild(guild_id)
|
98 |
required_role = guild.get_role(required_role_id)
|
99 |
if required_role not in ctx.author.roles:
|
|
|
84 |
await ctx.reply(f"β
{bot} is online")
|
85 |
|
86 |
#β
β
check if the command is in the allowed channel(s)
|
87 |
+
bot_test = 1100458786826747945
|
88 |
+
testing_the_bot = 1113182673859518514
|
89 |
+
channel_id = testing_the_bot
|
90 |
+
if ctx.channel.id != channel_id: # #bot-test = 1100458786826747945, #testing-the-bot = 1113182673859518514
|
91 |
print(f"If using a command, commands are not permitted in {ctx.channel}")
|
92 |
return False
|
93 |
else:
|
|
|
95 |
|
96 |
#β
β
check if the user has the required role(s)
|
97 |
guild_id = 879548962464493619
|
98 |
+
required_role_id = 963431900825919498 # @verified = 900063512829755413, HF = 897376942817419265, fellows = 963431900825919498
|
99 |
guild = bot.get_guild(guild_id)
|
100 |
required_role = guild.get_role(required_role_id)
|
101 |
if required_role not in ctx.author.roles:
|