Skip to content

Commit f3c9bf8

Browse files
committed
Allow coordination to send repetitive messages
1 parent 140c615 commit f3c9bf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

comandos/flood.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ async def on_message(self, message):
8383
self._msg_author = message.author
8484
self._msg_author_mention = self._msg_author.mention
8585

86-
# skip when user has more roles
87-
if len(self._msg_author.roles) > 1:
86+
# skip coord role
87+
if self.coord_role in self._msg_author.roles:
8888
return
8989

9090
print("FloodSpam.on_message: flood check")

0 commit comments

Comments
 (0)