Commit Graph

38 Commits

Author SHA1 Message Date
classabbyamp
d7de78e582
common.py: use tz-aware datetime for proper timestamp display
https://docs.pycord.dev/en/stable/api/data_classes.html#discord.Embed.timestamp
2023-01-28 20:11:23 -05:00
classabbyamp
b000c9173e
common.py: don't error when creating embeds for users without avatars
behaviour changed in pycord 2.0:
https://docs.pycord.dev/en/stable/api/models.html#discord.User.display_avatar

fixes #467
2023-01-28 20:11:00 -05:00
0x5c
a4c8a056ac First steps for move from aiohttp to httpx 2023-01-13 03:44:27 -05:00
classabbyamp
c7ea5e0998 migrate to pycord 2023-01-01 16:22:42 -05:00
0x5c
04ccd807cd
Changed the licence to LiLiQ-Rplus-1.1
Fixes #387
2021-06-26 20:23:55 -04:00
Abigail G
dc1efa7b0c
make help command sort by category
fixes #390
2021-04-11 15:20:42 -04:00
0x5c
9e36aab469
Renamed clock emoji to "stopwatch", added proper clock
Fixes #408
2021-04-03 18:06:14 -04:00
Abigail G
22c2cab4d1
update copyright name 2021-03-28 13:57:03 -04:00
0x5c
6e54a27f14
Release the Cats! - Reorganised extensions and recategorised commands
Fixes #389 - Main issue
Fixes #388 - Accidental, Satmatch deadcode removal
2021-03-28 09:50:51 -04:00
0x5c
f6d69f7498
Changed all categories to enums
- Accidentally fixed capitalisation of help command categories

Fixes #383
2021-03-28 02:38:36 -04:00
0x5c
98b2f30dcc
Moved map/plan code to a single function
Also changed ?bandplan aliases

Fixes #189
2021-03-27 18:00:28 -04:00
0x5c
0241d1856a
Added and switched to the Resource Manager
- Added Resource Manager
- Migrated most exts to it
- Added config entry for the resources URL
- Added my ID to template
- Bumped copyright on edited files

Fixes #246
2021-03-18 09:17:30 -04:00
Abigail G
d7e544edcd
hamstudy improvements
- added orange colour for timeouts
- added emojis in the last field
- made the correct answer bold after answering/timeout
- minor code optimisations
2021-02-28 01:51:19 -05:00
0x5c
e8bb18ea8c
Merge pull request #290 from miaowware/error
Fixed numerous small potential bugs
2020-10-28 23:33:58 -04:00
0x5c
19952396f2
Fixed numerous small potential bugs
- Most are typing related

Fixes #289
2020-10-28 23:22:28 -04:00
classabbyamp
2eea7dce23
move CallsignInfoData to resources/callsign_info (#258)
fixes #255
2020-10-28 21:04:14 -04:00
classabbyamp
756a15c4c5
added ?worksplit command (#247)
fixes #233
2020-09-27 16:07:21 -04:00
classabbyamp
b462527211
add canadian callsign info, improve the prefix info data system
fixes #243
2020-09-24 19:02:12 -04:00
Abigail
4b122518f5 migrate classabbyamp/discord-qrm2 to miaowware/qrm2 2020-02-15 06:27:48 -05:00
0x5c
fdfc8cce06
Copyright headers cleanup
Element of #142
New year lint removal
2020-01-31 06:50:50 -05:00
0x5c
56b74108eb
Block-style line continuations for data
Element of #142
New year lint removal
2020-01-30 06:55:11 -05:00
0x5c
29d0440d3d
Normalised string quote type
- "" instead of '', except for dictionary lookups in f-strings

Element of #142
New year lint removal
2020-01-30 06:15:42 -05:00
Abigail Gold
29e75c38e1
Merge pull request #178 from classabbyamp/help-checks
Verify checks in help commands
2020-01-28 22:49:53 -05:00
0x5c
976b3e8bf3
Improved error handling in commands
- Changed all "status != 200" to raise a custom exception
- Raise appropriate exceptions in 'grid'
- Removed command-specific error handling in 'extctl' commands

Fixes #146
2020-01-27 00:37:52 -05:00
Abigail Gold
8686b0ef96
Merge branch 'master' into help-checks 2020-01-21 22:34:59 -05:00
Abigail
831667ec10 helpcommand now verifies checks when displaying help
Additionally:
- added admin category
- removed hidden flag from commands
- added checks to all extctl commands

Fixes #109
2020-01-21 22:21:30 -05:00
Abigail Gold
b6f6d0408c
WIP: answer hamstudy by reaction 2020-01-20 20:50:55 -05:00
0x5c
0608a74e6c
echo: New converters for arguemnts
- Created a GlobalChannelConverter
- Accepts Union[GlobalChannelConverter, UserConverter]

Fixes #145
2020-01-08 02:19:35 -05:00
Abigail Gold
8f15feab94
update copyright for nuevo ans
Fixes #150
2020-01-06 23:27:48 -05:00
0x5c
0615df0829
Better command error handling
- Added handling for all subclasses of CommandError
- Added more emojis
- Renamed some emojis
- debug_mode -> bot.qrm.debug_mode

Fixes #22

Co-authored-by: Abigail Gold <dev@kb6.ee>
2020-01-03 23:03:17 -05:00
0x5c
1b21583d41
Merge branch 'master' into 5c-metadata
Fix conflicts
2019-12-23 21:13:01 -05:00
0x5c
96b2a8f259
Metadata update!
- Added flag emojis to commands with countries.
- Added image attribution and description to "image" commands.
- Added file metadata to image resources.
- Added new key in options.py: pika.
- Added classes to deal with file metadata.
- Added common paths to common.py.
- Changed directory/file names of resources.
- Documented the new metadata format.

Fixes #83 - Metadata storage
Fixes #86 - Country flags
2019-12-23 20:51:31 -05:00
Abigail
f1993c85b2 combine all aiohttp operations into a single session
Fixes #49
2019-12-23 17:54:20 -05:00
Abigail
7a9d64465e convert all embed creation to embed_factory 2019-12-16 03:49:34 -05:00
Abigail Gold
12dc87ae9b
changed all references of qrmbot to qrm2. Fixes #96 2019-12-08 15:40:17 -05:00
0x5c
bb8cb1eff5
Moved checks and helpers to common.py
Fixes #87
2019-12-08 04:10:19 -05:00
0x5c
387355af7e
Extention control commands
- Extctl: live load/reload/unload/list of extensions.
- Added helper to create error embeds.
- Added status emojis to common.py.

Fixes #82
Fixes #88
2019-12-07 11:38:34 -05:00
Abigail Gold
ad2c559a0f
Custom Help Command (#55)
* 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
2019-12-06 01:19:42 -05:00