Skip to content

Commit 00693c3

Browse files
authored
Ignore bots running !sync (#392)
2 parents 0f76385 + 2daa0c4 commit 00693c3

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)