Skip to content

Commit

Permalink
Update userinfo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
madboy482 authored Feb 25, 2021
1 parent 7f29f58 commit 3a36207
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SaitamaRobot/modules/userinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ def set_about_me(update: Update, context: CallbackContext):

@run_async
@sudo_plus
def stats(update: Update, context: CallbackContext):
def users(update: Update, context: CallbackContext):
process = subprocess.Popen(
"neofetch --stdout", shell=True, text=True, stdout=subprocess.PIPE)
output = process.communicate()[0]
stats = "<b>Current stats:</b>\n" + "\n" + output + "\n".join(
stats = "<b><i>Current stats:</i></b>\n<b><i>Loaded from Romeo Database...✅</i></b>\n" + "\n" + output + "\n".join(
[mod.__stats__() for mod in STATS])
result = re.sub(r'(\d+)', r'<code>\1</code>', stats)
update.effective_message.reply_text(result, parse_mode=ParseMode.HTML)
Expand Down Expand Up @@ -522,7 +522,7 @@ def __user_info__(user_id):
SET_BIO_HANDLER = DisableAbleCommandHandler("setbio", set_about_bio)
GET_BIO_HANDLER = DisableAbleCommandHandler("bio", about_bio)

STATS_HANDLER = CommandHandler("stats", stats)
STATS_HANDLER = CommandHandler("users", stats)
ID_HANDLER = DisableAbleCommandHandler("id", get_id)
GIFID_HANDLER = DisableAbleCommandHandler("gifid", gifid)
INFO_HANDLER = DisableAbleCommandHandler(("info", "book"), info)
Expand Down

0 comments on commit 3a36207

Please sign in to comment.