Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
Β·
e2a5387
1
Parent(s):
c4f0e3e
Update utils.py
Browse files- 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
|
216 |
if name:
|
217 |
-
REPLY += f"\n<b
|
218 |
if bio:
|
219 |
-
REPLY += f"<b
|
220 |
if url:
|
221 |
-
REPLY += f"<b
|
222 |
-
REPLY += f"<b
|
223 |
-
REPLY += f"<b
|
224 |
-
REPLY += f"<b
|
225 |
if email:
|
226 |
-
REPLY += f"<b
|
227 |
if company:
|
228 |
org_url = company.strip("@")
|
229 |
REPLY += (
|
230 |
-
f"<b
|
231 |
)
|
|
|
|
|
|
|
|
|
232 |
if location:
|
233 |
-
REPLY += f"<b
|
234 |
-
REPLY += f"<b
|
|
|
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)
|