Commit Graph

35 Commits

Author SHA1 Message Date
Adam Goldsmith 4e127558fd Use `logging.info` instead of `print` 2024-04-20 20:07:53 -04:00
Adam Goldsmith 71e23ec4c0 Don't try to track non-existant channels 2024-04-20 20:03:42 -04:00
Adam Goldsmith b9698fe213 Include guild name in channel permissions messages 2022-06-06 21:44:33 -04:00
Adam Goldsmith d58d56ff0e Re-enable periodic updates 2022-06-06 21:35:03 -04:00
Adam Goldsmith bbd899cdfb Create ArkhamDBClient in setup_hook instead of on_ready 2022-06-06 21:34:06 -04:00
Adam Goldsmith c429278cc8 Add adbupdate command to force an update without sending a message 2022-06-04 22:39:16 -04:00
Adam Goldsmith 2684d6083b Create aiohttp session in on_ready to avoid separate loops
Fixes `RuntimeError: Timeout context manager should be used inside a
task` errors when querying arkhamdb
2022-06-04 22:39:04 -04:00
Adam Goldsmith 7dadef6911 Use less generic command names and call correct methods for new discord.py 2022-06-04 22:39:02 -04:00
Adam Goldsmith 144dcd509e Add invite URL and check for expected permissions 2022-06-04 22:36:58 -04:00
Adam Goldsmith 0adb6d32ff WIP: Initial attempt to make slash commands work 2022-06-04 22:17:51 -04:00
Adam Goldsmith 5d96211700 Include encounter cards when getting card information 2022-04-02 12:16:42 -04:00
Adam Goldsmith 8904d521cd Handle `deck["xp_spent"]` being None 2022-04-02 11:57:35 -04:00
Adam Goldsmith a018aeb1c3 Use logging module for informational prints 2022-03-14 13:40:43 -04:00
Adam Goldsmith bdb9387d91 Truncate long validation error message 2022-03-14 12:15:44 -04:00
Adam Goldsmith 83dfec3aa6 Use configargparse to accept discord token from env or config file 2022-03-14 11:58:17 -04:00
Adam Goldsmith dcab5b6b40 Add CLI argument for channel list json file 2022-03-14 11:57:13 -04:00
Adam Goldsmith 877d0426a3 Handle null XP values 2022-03-14 03:00:34 -04:00
Adam Goldsmith 3b3962ec9a Add validator to check for overused cards 2022-03-14 02:53:47 -04:00
Adam Goldsmith e4deb176a9 Show deck problem, if there is one 2022-03-14 02:03:20 -04:00
Adam Goldsmith cba33c9470 Add/apply `black` formatter 2022-03-14 02:03:20 -04:00
Adam Goldsmith 16e3182d52 Improve typing annotations 2022-03-14 02:03:20 -04:00
Adam Goldsmith c6503b91af Add unspent XP to deck status text 2022-03-14 01:10:44 -04:00
Adam Goldsmith 0a147407c1 Use typing indicator while updating 2021-05-09 09:58:31 -04:00
Adam Goldsmith cd7c979d10 Fix typo preventing reactive updates from working 2021-05-09 09:58:00 -04:00
Adam Goldsmith fab1483f18 Also react to message deletion, move shared event logic into method 2021-05-03 01:16:55 -04:00
Adam Goldsmith 37ac796c62 Change update time to one hour 2021-05-03 01:07:17 -04:00
Adam Goldsmith 81a083618d Close arkhamdb session in a more clean way 2021-05-03 00:48:34 -04:00
Adam Goldsmith 344c65398c Add a `forget` command to remove a channel from monitoring 2021-05-03 00:45:20 -04:00
Adam Goldsmith 196d69da51 Fix accidental deleting/updating of messages with no embed 2021-05-03 00:44:26 -04:00
Adam Goldsmith 480d234c0c Move channel list into ArkhamDBUpdater class 2021-05-03 00:44:26 -04:00
Adam Goldsmith fb0a4cec6c Use command.Bot for better commands/automatic help 2021-05-03 00:44:03 -04:00
Adam Goldsmith add2e0362a Pre-compile arkhamdb URL regex 2021-05-02 23:26:36 -04:00
Adam Goldsmith 4ba198c00e Move actual arkhamdb communication to its own class 2021-05-02 23:23:03 -04:00
Adam Goldsmith dfe4be1f6d Fix comparison to last message for determining if update required 2021-05-02 22:44:34 -04:00
Adam Goldsmith 3308f3c7f9 Initial Commit: Basic collection of deck ids, then posting the latest 2021-05-02 15:42:28 -04:00