Captain Ezio commited on
Commit
e2a5387
Β·
1 Parent(s): c4f0e3e

Update utils.py

Browse files
Files changed (1) hide show
  1. Powers/plugins/utils.py +19 -11
Powers/plugins/utils.py CHANGED
@@ -211,27 +211,35 @@ async def github(_, m: Message):
211
  created_at = r.get("created_at", "Not Found")
212
  location = r.get("location", None)
213
  email = r.get("email", None)
 
 
 
214
 
215
- REPLY = f"<b>GitHub Info for @{username}:</b>\n"
216
  if name:
217
- REPLY += f"\n<b>Name:</b> <code>{name}</code>\n"
218
  if bio:
219
- REPLY += f"<b>Bio:</b> <code>{bio}</code>\n"
220
  if url:
221
- REPLY += f"<b>URL:</b> <a href='{url}'>{name}</a>\n"
222
- REPLY += f"<b>Public Repos:</b> {public_repos}\n"
223
- REPLY += f"<b>Followers:</b> {followers}\n"
224
- REPLY += f"<b>Following:</b> {following}\n"
225
  if email:
226
- REPLY += f"<b>Email:</b> <code>{email}</code>\n"
227
  if company:
228
  org_url = company.strip("@")
229
  REPLY += (
230
- f"<b>Company:</b> <a href='https://github.com/{org_url}'>{company}</a>\n"
231
  )
 
 
 
 
232
  if location:
233
- REPLY += f"<b>Location:</b> <code>{location}</code>\n"
234
- REPLY += f"<b>Created at:</b> <code>{created_at}</code>\n"
 
235
 
236
  if avtar:
237
  return await m.reply_photo(photo=f"{avtar}", caption=REPLY)
 
211
  created_at = r.get("created_at", "Not Found")
212
  location = r.get("location", None)
213
  email = r.get("email", None)
214
+ updated_at = r.get("updated_at", "Not Found")
215
+ blog = r.get("blog", None)
216
+ twitter = r.get("twitter_username", None)
217
 
218
+ REPLY = f"<b>πŸ§‘β€πŸ’» GitHub Info for @{username}:</b>\n"
219
  if name:
220
+ REPLY += f"\n<b>πŸ—£ Name:</b> <code>{name}</code>\n"
221
  if bio:
222
+ REPLY += f"<b>🎯 Bio:</b> <code>{bio}</code>\n"
223
  if url:
224
+ REPLY += f"<b>πŸ“Ž URL:</b> <a href='{url}'>{name}</a>\n"
225
+ REPLY += f"<b>πŸ”‘ Public Repos:</b> {public_repos}\n"
226
+ REPLY += f"<b>🧲 Followers:</b> {followers}\n"
227
+ REPLY += f"<b>✨ Following:</b> {following}\n"
228
  if email:
229
+ REPLY += f"<b>βœ‰οΈ Email:</b> <code>{email}</code>\n"
230
  if company:
231
  org_url = company.strip("@")
232
  REPLY += (
233
+ f"<b>ℒ️ Organization:</b> <a href='https://github.com/{org_url}'>{company}</a>\n"
234
  )
235
+ if blog:
236
+ REPLY += f"<b>πŸ“ Blog:</b> <code>{blog}</code>\n""
237
+ if twitter:
238
+ REPLY += f"<b>⚜️ Twitter:</b> <a href='https://twitter.com/{twitter}'>{twitter}</a>\n"
239
  if location:
240
+ REPLY += f"<b>πŸš€ Location:</b> <code>{location}</code>\n"
241
+ REPLY += f"<b>πŸ’« Created at:</b> <code>{created_at}</code>\n"
242
+ REPLY += f"<b>⌚️ Updated at:</b> <code>{updated_at}</code>\n"
243
 
244
  if avtar:
245
  return await m.reply_photo(photo=f"{avtar}", caption=REPLY)