Synced repo using 'sync_with_huggingface' Github Action
Browse files
app.py
CHANGED
@@ -90,6 +90,7 @@ async def safetychecks(ctx):
|
|
90 |
await ctx.message.add_reaction(failure_emoji)
|
91 |
return False
|
92 |
|
|
|
93 |
#β
β
check if the command is in the allowed channel(s)
|
94 |
bot_test = 1100458786826747945
|
95 |
deepfloydif_channel = 1113182673859518514
|
@@ -106,6 +107,7 @@ async def safetychecks(ctx):
|
|
106 |
await ctx.message.add_reaction(failure_emoji)
|
107 |
return False
|
108 |
|
|
|
109 |
#β
β
check if the user has the required role(s)
|
110 |
guild_id = 879548962464493619
|
111 |
verified_role_id = 900063512829755413 # @verified = 900063512829755413, HF = 897376942817419265, fellows = 963431900825919498
|
@@ -124,7 +126,7 @@ async def safetychecks(ctx):
|
|
124 |
await thread.send(f"Error: {ctx.author.mention} does not have any of the required roles to use that command.")
|
125 |
await ctx.message.add_reaction(failure_emoji)
|
126 |
return False
|
127 |
-
|
128 |
|
129 |
return True
|
130 |
|
|
|
90 |
await ctx.message.add_reaction(failure_emoji)
|
91 |
return False
|
92 |
|
93 |
+
# review this, may be able to remove
|
94 |
#β
β
check if the command is in the allowed channel(s)
|
95 |
bot_test = 1100458786826747945
|
96 |
deepfloydif_channel = 1113182673859518514
|
|
|
107 |
await ctx.message.add_reaction(failure_emoji)
|
108 |
return False
|
109 |
|
110 |
+
'''
|
111 |
#β
β
check if the user has the required role(s)
|
112 |
guild_id = 879548962464493619
|
113 |
verified_role_id = 900063512829755413 # @verified = 900063512829755413, HF = 897376942817419265, fellows = 963431900825919498
|
|
|
126 |
await thread.send(f"Error: {ctx.author.mention} does not have any of the required roles to use that command.")
|
127 |
await ctx.message.add_reaction(failure_emoji)
|
128 |
return False
|
129 |
+
'''
|
130 |
|
131 |
return True
|
132 |
|