mirror of
https://github.com/miaowware/qrm2.git
synced 2025-04-16 16:28:37 -04:00
* subclasses HelpCommand to implement a custom help command. add cog names for display in the help command. Globalsettings is no longer a cog. HelpCommand uses the custom attribute category for grouping commands. * PEP8 fixes * improve variable names for help command clarity. Fixes #70 * improve help command formatting add aliases for weather commands add help text for ae7q call and qrz * move global_settings to common * rename import alias * fix loading/unloading of help command * fix info command * fix options import * changed canonical command names to be more descriptive * remove cog names and revert map/bandplan error listing * add link to hamstudy references
28 lines
703 B
Python
28 lines
703 B
Python
"""
|
|
Common tools for the bot.
|
|
---
|
|
Copyright (C) 2019 Abigail Gold, 0x5c
|
|
|
|
This file is part of discord-qrmbot and is released under the terms of the GNU
|
|
General Public License, version 2.
|
|
---
|
|
|
|
`colours`: Colours used by embeds.
|
|
|
|
`cat`: Category names for the HelpCommand.
|
|
"""
|
|
|
|
from types import SimpleNamespace
|
|
|
|
|
|
colours = SimpleNamespace(good=0x43B581,
|
|
neutral=0x7289DA,
|
|
bad=0xF04747)
|
|
# meow
|
|
cat = SimpleNamespace(lookup='Information Lookup',
|
|
fun='Fun',
|
|
maps='Mapping',
|
|
ref='Reference',
|
|
study='Exam Study',
|
|
weather='Land and Space Weather')
|