Drag commited on
Commit
82dbb22
·
1 Parent(s): 134d2fa

Update info.py

Browse files
Files changed (1) hide show
  1. Mikobot/plugins/info.py +18 -18
Mikobot/plugins/info.py CHANGED
@@ -85,45 +85,45 @@ async def info(update: Update, context: ContextTypes.DEFAULT_TYPE):
85
 
86
  if chat_obj.type == ChatType.PRIVATE:
87
  if chat_obj.username:
88
- head = f"⇨【 <b>USER INFORMATION</b> 】⇦\n\n"
89
  if chat_obj.username.endswith("bot"):
90
- head = f"⇨【 <b>BOT INFORMATION</b> 】⇦\n\n"
91
 
92
- head += f"➲ <b>ID:</b> <code>{chat_obj.id}</code>"
93
- head += f"\n➲ <b>First Name:</b> {chat_obj.first_name}"
94
  if chat_obj.last_name:
95
- head += f"\n➲ <b>Last Name:</b> {chat_obj.last_name}"
96
  if chat_obj.username:
97
- head += f"\n➲ <b>Username:</b> @{chat_obj.username}"
98
- head += f"\n➲ <b>Permalink:</b> {mention_html(chat_obj.id, 'link')}"
99
 
100
  if chat_obj.username and not chat_obj.username.endswith("bot"):
101
- head += f"\n\n💎 <b>Premium User:</b> {premium}"
102
 
103
  if chat_obj.bio:
104
- head += f"\n\n<b>➲ Bio:</b> {chat_obj.bio}"
105
 
106
  chat_member = await chat.get_member(chat_obj.id)
107
  if isinstance(chat_member, ChatMemberAdministrator):
108
- head += f"\n➲ <b>Presence:</b> {chat_member.status}"
109
  if chat_member.custom_title:
110
- head += f"\n➲ <b>Admin Title:</b> {chat_member.custom_title}"
111
  else:
112
- head += f"\n➲ <b>Presence:</b> {chat_member.status}"
113
 
114
  if is_approved(chat.id, chat_obj.id):
115
- head += f"\n➲ <b>Approved:</b> This user is approved in this chat."
116
 
117
  disaster_level_present = False
118
 
119
  if chat_obj.id == OWNER_ID:
120
- head += "\n\n👑 <b>The disaster level of this person is My Owner.</b>"
121
  disaster_level_present = True
122
  elif chat_obj.id in DEV_USERS:
123
- head += "\n\n🐉 <b>This user is a member of Infamous Hydra.</b>"
124
  disaster_level_present = True
125
  elif chat_obj.id in DRAGONS:
126
- head += "\n\n🐲 <b>The disaster level of this person is Dragon.</b>"
127
  disaster_level_present = True
128
  if disaster_level_present:
129
  head += " [?]"
@@ -194,7 +194,7 @@ async def info(update: Update, context: ContextTypes.DEFAULT_TYPE):
194
 
195
  @support_plus
196
  async def stats(update: Update, context: ContextTypes.DEFAULT_TYPE):
197
- stats = "📊 <b>Yae Miko Bot's Statistics:</b>\n\n" + "\n".join(
198
  [mod.__stats__() for mod in STATS]
199
  )
200
  result = re.sub(r"(\d+)", r"<code>\1</code>", stats)
@@ -202,7 +202,7 @@ async def stats(update: Update, context: ContextTypes.DEFAULT_TYPE):
202
  keyboard = [
203
  [
204
  InlineKeyboardButton(
205
- " Infamous • Hydra", url="https://t.me/Infamous_Hydra"
206
  ),
207
  ]
208
  ]
 
85
 
86
  if chat_obj.type == ChatType.PRIVATE:
87
  if chat_obj.username:
88
+ head = f"⇨【 USER INFORMATION 】⇦\n\n"
89
  if chat_obj.username.endswith("bot"):
90
+ head = f"⇨【 BOT INFORMATION 】⇦\n\n"
91
 
92
+ head += f"➲ ID: <code>{chat_obj.id}</code>"
93
+ head += f"\n➲ First Name: {chat_obj.first_name}"
94
  if chat_obj.last_name:
95
+ head += f"\n➲ Last Name: {chat_obj.last_name}"
96
  if chat_obj.username:
97
+ head += f"\n➲ Username:</b> @{chat_obj.username}"
98
+ head += f"\n➲ Permalink: {mention_html(chat_obj.id, 'link')}"
99
 
100
  if chat_obj.username and not chat_obj.username.endswith("bot"):
101
+ head += f"\n\n💎 Premium User: {premium}"
102
 
103
  if chat_obj.bio:
104
+ head += f"\n\n Bio: {chat_obj.bio}"
105
 
106
  chat_member = await chat.get_member(chat_obj.id)
107
  if isinstance(chat_member, ChatMemberAdministrator):
108
+ head += f"\n➲ Presence: {chat_member.status}"
109
  if chat_member.custom_title:
110
+ head += f"\n➲ Admin Title: {chat_member.custom_title}"
111
  else:
112
+ head += f"\n➲ Presence: {chat_member.status}"
113
 
114
  if is_approved(chat.id, chat_obj.id):
115
+ head += f"\n➲ Approved: This user is approved in this chat."
116
 
117
  disaster_level_present = False
118
 
119
  if chat_obj.id == OWNER_ID:
120
+ head += "\n\n👑 The disaster level of this person is My Owner."
121
  disaster_level_present = True
122
  elif chat_obj.id in DEV_USERS:
123
+ head += "\n\n🐉 This user is a member of Infamous Hydra."
124
  disaster_level_present = True
125
  elif chat_obj.id in DRAGONS:
126
+ head += "\n\n🐲 The disaster level of this person is Dragon."
127
  disaster_level_present = True
128
  if disaster_level_present:
129
  head += " [?]"
 
194
 
195
  @support_plus
196
  async def stats(update: Update, context: ContextTypes.DEFAULT_TYPE):
197
+ stats = "📊 <b>ʀᴇsᴏʟᴜᴛᴇ ᴅᴇғᴇɴᴅᴇʀ Bᴏᴛ's Sᴛᴀᴛɪsᴛɪᴄs:</b>\n\n" + "\n".join(
198
  [mod.__stats__() for mod in STATS]
199
  )
200
  result = re.sub(r"(\d+)", r"<code>\1</code>", stats)
 
202
  keyboard = [
203
  [
204
  InlineKeyboardButton(
205
+ "𝑟𝑒𝑠𝑜𝑙𝑢𝑡𝑒 𝑑𝑒𝑓𝑒𝑛𝑑𝑒𝑟", url="https://t.me/Serene_Swordsman"
206
  ),
207
  ]
208
  ]