Add some command in /help

This commit is contained in:
Hafitz Setya 2021-05-13 09:44:59 +07:00 committed by GitHub
parent 8b39987d69
commit b19caf7f48
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -158,7 +158,7 @@ sudo docker run mirrorbot
<p><a href="https://telegra.ph/How-to-Deploy-a-Mirror-Bot-to-Heroku-with-CLI-05-06"> <img src="https://img.shields.io/badge/see%20on%20telegraph-grey?style=for-the-badge" width="190""/></a></p>
## Using Service Accounts for uploading to avoid user rate limit
# Using Service Accounts for uploading to avoid user rate limit
For Service Account to work, you must set **USE_SERVICE_ACCOUNTS=**"True" in config file or environment variables,
Many thanks to [AutoRClone](https://github.com/xyou365/AutoRclone) for the scripts.
**NOTE**: Using Service Accounts is only recommended while uploading to a Team Drive.
@ -187,7 +187,7 @@ python3 gen_sa_accounts.py --download-keys project_id
python3 add_to_team_drive.py -d SharedTeamDriveSrcID
```
## Youtube-dl authentication using .netrc file
# Youtube-dl authentication using .netrc file
For using your premium accounts in Youtube-dl, edit the netrc file according to following format:
```
machine host login username password my_youtube_password

View File

@ -23,7 +23,7 @@ now=datetime.now(pytz.timezone('Asia/Jakarta'))
@run_async
def stats(update, context):
currentTime = get_readable_time((time.time() - botStartTime))
currentTime = get_readable_time(time.time() - botStartTime)
current = now.strftime('%Y/%m/%d %I:%M:%S %p')
total, used, free = shutil.disk_usage('.')
total = get_readable_file_size(total)
@ -117,13 +117,13 @@ def bot_help(update, context):
/{BotCommands.StatusCommand}: Shows a status of all the downloads
/{BotCommands.ListCommand} [search term]: Searches the search term in the Google drive, if found replies with the link
/{BotCommands.ListCommand} [search term]: Searches the search term in the Google Drive, if found replies with the link
/{BotCommands.StatsCommand}: Show Stats of the machine the bot is hosted on
/{BotCommands.AuthorizeCommand}: Authorize a chat or a user to use the bot (Can only be invoked by owner of the bot)
/{BotCommands.AuthorizeCommand}: Authorize a chat or a user to use the bot (Can only be invoked by Owner of the bot)
/{BotCommands.AuthListCommand}: See Authorized list (Can only be invoked by owner of the bot)
/{BotCommands.AuthListCommand}: See Authorized list (Can only be invoked by Owner of the bot)
/{BotCommands.LogCommand}: Get a log file of the bot. Handy for getting crash reports
@ -133,6 +133,10 @@ def bot_help(update, context):
/{BotCommands.RepoCommand}: Get the bot repo.
/shell: Run commands in Shell (Terminal).
/eval: Run Python code line.
/mediainfo: Get detailed info about replied media.
/tshelp: Get help for Torrent search module.