(Docs): Update command help categories.
This commit is contained in:
@@ -196,7 +196,7 @@ async def turnover():
|
|||||||
|
|
||||||
# Close all completed rooms, update data
|
# Close all completed rooms, update data
|
||||||
await asyncio.gather(*(slot.close() for slot in last_slots))
|
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:
|
if update_slots:
|
||||||
accountability_rooms.update_where(
|
accountability_rooms.update_where(
|
||||||
{'closed_at': utc_now()},
|
{'closed_at': utc_now()},
|
||||||
@@ -276,6 +276,7 @@ async def _accountability_loop():
|
|||||||
# TODO: (FUTURE) handle cases where we actually execute much late than expected
|
# TODO: (FUTURE) handle cases where we actually execute much late than expected
|
||||||
await sleep_until(next_time)
|
await sleep_until(next_time)
|
||||||
if next_time.minute == 55:
|
if next_time.minute == 55:
|
||||||
|
next_time = next_time + datetime.timedelta(minutes=5)
|
||||||
# Open next sessions
|
# Open next sessions
|
||||||
try:
|
try:
|
||||||
await open_next(next_time)
|
await open_next(next_time)
|
||||||
@@ -289,7 +290,6 @@ async def _accountability_loop():
|
|||||||
context="ACCOUNTABILITY_LOOP",
|
context="ACCOUNTABILITY_LOOP",
|
||||||
level=logging.ERROR
|
level=logging.ERROR
|
||||||
)
|
)
|
||||||
next_time = next_time + datetime.timedelta(minutes=5)
|
|
||||||
elif next_time.minute == 0:
|
elif next_time.minute == 0:
|
||||||
# Start new sessions
|
# Start new sessions
|
||||||
try:
|
try:
|
||||||
@@ -304,7 +304,7 @@ async def _accountability_loop():
|
|||||||
context="ACCOUNTABILITY_LOOP",
|
context="ACCOUNTABILITY_LOOP",
|
||||||
level=logging.ERROR
|
level=logging.ERROR
|
||||||
)
|
)
|
||||||
next_time = next_time + datetime.timedelta(minute=55)
|
next_time = next_time + datetime.timedelta(minutes=55)
|
||||||
|
|
||||||
|
|
||||||
async def _accountability_system_resume():
|
async def _accountability_system_resume():
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ third_emoji = "🥉"
|
|||||||
|
|
||||||
@module.cmd(
|
@module.cmd(
|
||||||
"cointop",
|
"cointop",
|
||||||
group="Statistics",
|
group="Economy",
|
||||||
desc="View the LionCoin leaderboard.",
|
desc="View the LionCoin leaderboard.",
|
||||||
aliases=('topc', 'ctop', 'topcoins', 'topcoin', 'cointop100'),
|
aliases=('topc', 'ctop', 'topcoins', 'topcoin', 'cointop100'),
|
||||||
help_aliases={'cointop100': "View the LionCoin top 100."}
|
help_aliases={'cointop100': "View the LionCoin top 100."}
|
||||||
|
|||||||
@@ -11,23 +11,24 @@ from .module import module
|
|||||||
group_hints = {
|
group_hints = {
|
||||||
'Productivity': "*Various productivity tools.*",
|
'Productivity': "*Various productivity tools.*",
|
||||||
'Statistics': "*StudyLion leaderboards and study statistics.*",
|
'Statistics': "*StudyLion leaderboards and study statistics.*",
|
||||||
|
'Economy': "*Buy, sell, and trade with your hard-earned coins!*",
|
||||||
'Personal Settings': "*Tell me about yourself!*",
|
'Personal Settings': "*Tell me about yourself!*",
|
||||||
'Guild Configuration': "*Control how I behave in your server.*",
|
'Guild Configuration': "*Control how I behave in your server.*",
|
||||||
'Meta': "*Information about me!*"
|
'Meta': "*Information about me!*"
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_group_order = (
|
standard_group_order = (
|
||||||
('Productivity', 'Statistics', 'Personal Settings', 'Meta')
|
('Productivity', 'Statistics', 'Economy', 'Personal Settings', 'Meta'),
|
||||||
)
|
)
|
||||||
|
|
||||||
mod_group_order = (
|
mod_group_order = (
|
||||||
('Moderation', 'Meta'),
|
('Moderation', 'Meta'),
|
||||||
('Productivity', 'Statistics', 'Personal Settings')
|
('Productivity', 'Statistics', 'Economy', 'Personal Settings')
|
||||||
)
|
)
|
||||||
|
|
||||||
admin_group_order = (
|
admin_group_order = (
|
||||||
('Guild Configuration', 'Moderation', 'Meta'),
|
('Guild Configuration', 'Moderation', 'Meta'),
|
||||||
('Productivity', 'Statistics', 'Personal Settings')
|
('Productivity', 'Statistics', 'Economy', 'Personal Settings')
|
||||||
)
|
)
|
||||||
|
|
||||||
# Help embed format
|
# Help embed format
|
||||||
|
|||||||
@@ -11,7 +11,8 @@ from .module import module
|
|||||||
|
|
||||||
@module.cmd(
|
@module.cmd(
|
||||||
"stats",
|
"stats",
|
||||||
desc="View your study statistics!"
|
group="Statistics",
|
||||||
|
desc="View a summary of your study statistics!"
|
||||||
)
|
)
|
||||||
@in_guild()
|
@in_guild()
|
||||||
async def cmd_stats(ctx):
|
async def cmd_stats(ctx):
|
||||||
|
|||||||
Reference in New Issue
Block a user