Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shengan committed Oct 14, 2024
1 parent c66019d commit c95ca9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ws/plugins/admin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,18 @@ def web_sign(self, message):

async def handle(self, message):
msg = None
self.is_at = False
if message[:3] == r'\tx':
message = message[3:]
msg = await self.set_group_special_title(message)
elif message[:2] == '头衔':
self.is_at = True
message = message[2:]
msg = await self.set_group_special_title_self(message)
elif message[:5] == r'\sign':
message = message[5:]
msg = self.web_sign(message)
elif '专属头衔' in message:
elif message.startswith('专属头衔'):
group_id = self.data['group_id']
if self.is_tx_self.get(group_id, False) is True:
return
Expand Down

0 comments on commit c95ca9d

Please sign in to comment.