From d39ec3153afadd6395f80f6a76770b4ddabd18d2 Mon Sep 17 00:00:00 2001 From: Conatum Date: Sun, 19 Sep 2021 10:30:25 +0300 Subject: [PATCH] (Docs): Update command help categories. --- bot/modules/accountability/tracker.py | 6 +++--- bot/modules/economy/cointop_cmd.py | 2 +- bot/modules/meta/help.py | 7 ++++--- bot/modules/study/stats_cmd.py | 3 ++- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/bot/modules/accountability/tracker.py b/bot/modules/accountability/tracker.py index 2f56a442..de9124a3 100644 --- a/bot/modules/accountability/tracker.py +++ b/bot/modules/accountability/tracker.py @@ -196,7 +196,7 @@ async def turnover(): # Close all completed rooms, update data await asyncio.gather(*(slot.close() for slot in last_slots)) - update_slots = [slot.slotid for slot in last_slots if slot.data] + update_slots = [slot.data.slotid for slot in last_slots if slot.data] if update_slots: accountability_rooms.update_where( {'closed_at': utc_now()}, @@ -276,6 +276,7 @@ async def _accountability_loop(): # TODO: (FUTURE) handle cases where we actually execute much late than expected await sleep_until(next_time) if next_time.minute == 55: + next_time = next_time + datetime.timedelta(minutes=5) # Open next sessions try: await open_next(next_time) @@ -289,7 +290,6 @@ async def _accountability_loop(): context="ACCOUNTABILITY_LOOP", level=logging.ERROR ) - next_time = next_time + datetime.timedelta(minutes=5) elif next_time.minute == 0: # Start new sessions try: @@ -304,7 +304,7 @@ async def _accountability_loop(): context="ACCOUNTABILITY_LOOP", level=logging.ERROR ) - next_time = next_time + datetime.timedelta(minute=55) + next_time = next_time + datetime.timedelta(minutes=55) async def _accountability_system_resume(): diff --git a/bot/modules/economy/cointop_cmd.py b/bot/modules/economy/cointop_cmd.py index fb2301da..de53d91f 100644 --- a/bot/modules/economy/cointop_cmd.py +++ b/bot/modules/economy/cointop_cmd.py @@ -15,7 +15,7 @@ third_emoji = "🥉" @module.cmd( "cointop", - group="Statistics", + group="Economy", desc="View the LionCoin leaderboard.", aliases=('topc', 'ctop', 'topcoins', 'topcoin', 'cointop100'), help_aliases={'cointop100': "View the LionCoin top 100."} diff --git a/bot/modules/meta/help.py b/bot/modules/meta/help.py index 3e77ea1c..f7bd5508 100644 --- a/bot/modules/meta/help.py +++ b/bot/modules/meta/help.py @@ -11,23 +11,24 @@ from .module import module group_hints = { 'Productivity': "*Various productivity tools.*", 'Statistics': "*StudyLion leaderboards and study statistics.*", + 'Economy': "*Buy, sell, and trade with your hard-earned coins!*", 'Personal Settings': "*Tell me about yourself!*", 'Guild Configuration': "*Control how I behave in your server.*", 'Meta': "*Information about me!*" } standard_group_order = ( - ('Productivity', 'Statistics', 'Personal Settings', 'Meta') + ('Productivity', 'Statistics', 'Economy', 'Personal Settings', 'Meta'), ) mod_group_order = ( ('Moderation', 'Meta'), - ('Productivity', 'Statistics', 'Personal Settings') + ('Productivity', 'Statistics', 'Economy', 'Personal Settings') ) admin_group_order = ( ('Guild Configuration', 'Moderation', 'Meta'), - ('Productivity', 'Statistics', 'Personal Settings') + ('Productivity', 'Statistics', 'Economy', 'Personal Settings') ) # Help embed format diff --git a/bot/modules/study/stats_cmd.py b/bot/modules/study/stats_cmd.py index b7abc152..90768202 100644 --- a/bot/modules/study/stats_cmd.py +++ b/bot/modules/study/stats_cmd.py @@ -11,7 +11,8 @@ from .module import module @module.cmd( "stats", - desc="View your study statistics!" + group="Statistics", + desc="View a summary of your study statistics!" ) @in_guild() async def cmd_stats(ctx):