From a632b778213454eebddecea67b21e1f3347e9762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9A=E7=BE=85=E7=8B=BC?= Date: Wed, 21 Aug 2024 17:38:43 +0800 Subject: [PATCH] typesetting --- modules/github/repo.py | 5 +---- modules/github/user.py | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/github/repo.py b/modules/github/repo.py index 72d34c62ec..a828ef2873 100644 --- a/modules/github/repo.py +++ b/modules/github/repo.py @@ -37,12 +37,9 @@ async def repo(msg: Bot.MessageSession, name: str): desc = '\n' + result['description'] message = f'''{result['full_name']} ({result['id']}){desc} - -Language · {result['language']} | Fork · {result['forks_count']} - | Star · {result['stargazers_count']} | Watch · {result['watchers_count']} +Language · {result['language']} | Fork · {result['forks_count']} | Star · {result['stargazers_count']} | Watch · {result['watchers_count']} License: {rlicense} Created {time_diff(result['created_at'])} ago | Updated {time_diff(result['updated_at'])} ago - {website}{str(Url(result['html_url']))}''' if mirror: diff --git a/modules/github/user.py b/modules/github/user.py index 09e18f91fb..5cd3ccf761 100644 --- a/modules/github/user.py +++ b/modules/github/user.py @@ -29,11 +29,8 @@ async def user(msg: Bot.MessageSession, name: str): optional_text = '\n' + ' | '.join(optional) message = f'''{result['login']} aka {result['name']} ({result['id']}){bio} - -Type · {result['type']} | Follower · {result['followers']} | Following · {result['following']} - | Repo · {result['public_repos']} | Gist · {result['public_gists']}{optional_text} +Type · {result['type']} | Follower · {result['followers']} | Following · {result['following']} | Repo · {result['public_repos']} | Gist · {result['public_gists']}{optional_text} Account Created {time_diff(result['created_at'])} ago | Latest activity {time_diff(result['updated_at'])} ago - {str(Url(result['html_url']))}''' is_dirty = await dirty_check(message, result['login']) or darkCheck(message)