(Docs): Update command help categories.
This commit is contained in:
@@ -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():
|
||||
|
||||
@@ -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."}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user