Skip to content

Commit

Permalink
feat: Better Channel Log System
Browse files Browse the repository at this point in the history
  • Loading branch information
KimmyXYC committed Aug 24, 2024
1 parent 6f066f8 commit b3f3dbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/LogChannel.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def create_log(self, request: types.ChatJoinRequest, log_type):
f"<b>User</b>: {mention}\n"
f"<b>User ID</b>: <code>{request.from_user.id}</code>"
)
message_text = self.message_text + f"\n<b>Status</b>: Pending"
message_text = self.message_text + "\n<b>Status</b>: Pending"
try:
self.message = await self.bot.send_message(self.channel_id, message_text, parse_mode="HTML")
except Exception as e:
Expand All @@ -45,7 +45,7 @@ async def update_log_admin(self, status, admin_mention):
async def update_log(self, status, allow_count, deny_count):
self.message_text += (
f"\n<b>Status</b>: {status}\n"
f"<b>Result</b>Allow : Deny = {allow_count} : {deny_count}"
f"<b>Result</b>: Allow : Deny = {allow_count} : {deny_count}"
)
try:
await self.bot.edit_message_text(self.message_text, self.channel_id, self.message.message_id, parse_mode="HTML")
Expand Down

0 comments on commit b3f3dbb

Please sign in to comment.