Skip to content

Commit 2daa0c4

Browse files
committed
Ignore bots running !sync.
1 parent 33ba4cb commit 2daa0c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/developer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async def existing_extension_autocomplete(
3939
async def on_message(self, message: dc.Message) -> None:
4040
# Handle !sync command. This can't be a slash command because this command is
4141
# the one that actually adds the slash commands in the first place.
42-
if message.content.strip() != "!sync":
42+
if message.author.bot or message.content.strip() != "!sync":
4343
return
4444

4545
if not self.bot.is_ghostty_mod(message.author):

0 commit comments

Comments
 (0)