get rid of small error thing

Kaveen Kumarasinghe 2 years ago
parent 2a576c07e4
commit 24cd5011c4

@ -508,6 +508,8 @@ class GPT3ComCon(commands.Cog, name="GPT3ComCon"):
content = message.content.lower()
# Only allow the bot to be used by people who have the role "Admin" or "GPT"
# check if message.author has attribute roles
if hasattr(message.author, "roles"):
general_user = not any(
role in set(self.DAVINCI_ROLES).union(set(self.CURIE_ROLES))
for role in message.author.roles
@ -518,6 +520,8 @@ class GPT3ComCon(commands.Cog, name="GPT3ComCon"):
if not admin_user and not general_user:
return
else:
return
conversing = self.check_conversing(message)

Loading…
Cancel
Save