Added documentation for new commands

This commit is contained in:
Noi 2019-12-26 20:17:39 -08:00
parent 24bcdaacca
commit 707bd4d803
2 changed files with 6 additions and 2 deletions

View file

@ -117,7 +117,7 @@ class WtCommands:
color=14742263,
title='Help & About',
description=dedent('''
World Time v`{0}`
World Time v{0}
Serving {1} communities across {2} time zones.
'''.format(BotVersion, len(self.dclient.guilds), tzcount))
)
@ -131,6 +131,10 @@ class WtCommands:
`tz.set [zone]` - Registers or updates your *zone* with the bot.
`tz.remove` - Removes your name from this bot.
'''))
em.add_field(name='Admin commands', value=dedent('''
`tz.setFor [user] [zone]` - Sets the time zone for another user.
`tz.removeFor [user]` - Removes another user's information.
'''), inline=False)
em.add_field(name='Zones', value=dedent('''
This bot uses zone names from the tz database. Most common zones are supported. For a list of entries, see the "TZ database name" column under https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
'''), inline=False)

View file

@ -4,7 +4,7 @@ import pytz
from datetime import datetime
# Bot's current version (as a string), for use in the help command
BotVersion = "1.1.2"
BotVersion = "1.2.0"
# For case-insensitive time zone lookup, map lowercase tzdata entries with
# entires with proper case. pytz is case sensitive.