aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | | * | | | | | | | | | Add avatar_url in python_news.pyGravatar Leon Sandøy2020-07-13-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/python-discord/bot/issues/667
| | | * | | | | | | | | | Better docstring for DMRelay cog.Gravatar Leon Sandøy2020-07-13-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/python-discord/bot/issues/667
| | | * | | | | | | | | | Add a way to respond to DMs.Gravatar Leon Sandøy2020-07-12-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This shouldn't be used as a replacement for ModMail, but I think it makes sense to have the feature just in case #dm-log provides an interesting use-case where responding as the bot makes sense. It's a bit of a curiosity, and Ves hates it, but I included it anyway. https://github.com/python-discord/bot/issues/667
| | | * | | | | | | | | | Fix DuckPond tests now that send_webhook is gone.Gravatar Leon Sandøy2020-07-12-39/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the tests were failing because they were expecting send_webhook to be a method of the DuckPond cog, other tests simply were no longer applicable, and have been removed. https://github.com/python-discord/bot/issues/667
| | | * | | | | | | | | | Only relay DMs, and only from humans.Gravatar Leon Sandøy2020-07-12-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/python-discord/bot/issues/667
| | | * | | | | | | | | | Replace channel ID with webhook ID for dm_log.Gravatar Leon Sandøy2020-07-12-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/python-discord/bot/issues/667
| | | * | | | | | | | | | Relay all DMs and embeds to #dm-log.Gravatar Leon Sandøy2020-07-12-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/python-discord/bot/issues/667
| | | * | | | | | | | | | Refactor python_news.py to use webhook util.Gravatar Leon Sandøy2020-07-12-43/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/python-discord/bot/issues/667
| | | * | | | | | | | | | Refactor Duck Pond embed sender to be a util.Gravatar Leon Sandøy2020-07-12-22/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/python-discord/bot/issues/667
| | | * | | | | | | | | | Add the #dm_log ID to constants.Gravatar Leon Sandøy2020-07-12-0/+2
| |_|/ / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/python-discord/bot/issues/667
| | | | | | | | | | * | Jam Tests: space out lines for readabilityGravatar MarkKoz2020-07-22-0/+6
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: remove default_args attributeGravatar MarkKoz2020-07-22-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kind of redundant since it's only used by two tests.
| | | | | | | | | | * | Jam Tests: re-arrange tests to follow definition order in the cogGravatar MarkKoz2020-07-22-10/+10
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: fix utils patchGravatar MarkKoz2020-07-22-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stop needs to be called on the patcher, not the mock. Furthermore, using addCleanup is safer than tearDown because the latter may not be called if an exception is raised in setUp.
| | | | | | | | | | * | Jam Tests: Fix `test_duplicate_member_provided` assertionsGravatar ks1292020-06-13-1/+3
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Fix wrong function name and convert them to mocksGravatar ks1292020-06-13-1/+3
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Simplify and make tests more secureGravatar ks1292020-06-13-6/+4
| | | | | | | | | | | |
| | | | | | | | | | * | Jams: Fix `get_overwrites` return typeGravatar ks1292020-06-13-2/+2
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Update `Context` to `Guild` for tests tooGravatar ks1292020-06-13-19/+19
| | | | | | | | | | | |
| | | | | | | | | | * | Jams: Use `Guild` instead `Context` for helper functionsGravatar ks1292020-06-13-19/+19
| | | | | | | | | | | |
| | | | | | | | | | * | Fix `create_channels`, `get_category` docstringsGravatar ks1292020-06-13-2/+2
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Apply recent command splitting to `test_jam_roles_adding`Gravatar ks1292020-06-11-2/+2
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Remove unnecessary `Context` mock resetsGravatar ks1292020-06-11-2/+0
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Implement default argumentsGravatar ks1292020-06-11-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To avoid repeating same arguments, added default arguments that is unpacked on function call.
| | | | | | | | | | * | Jam Tests: Apply recent changes to `test_category_dont_exist`Gravatar ks1292020-06-11-2/+1
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Simplify and update `test_category_channel_exist`Gravatar ks1292020-06-11-3/+1
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Merge text and voice channel creation testsGravatar ks1292020-06-11-21/+24
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Apply recent changes to overwrites testGravatar ks1292020-06-11-2/+1
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Add more assertions to result message sending testGravatar ks1292020-06-11-1/+7
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Make early exiting test more secureGravatar ks1292020-06-11-2/+6
| | | | | | | | | | | |
| | | | | | | | | | * | Jams: Convert some functions to staticmethodGravatar ks1292020-06-11-3/+6
| | | | | | | | | | | |
| | | | | | | | | | * | Jams: Move roles adding to another function from inside of commandGravatar ks1292020-06-11-8/+11
| | | | | | | | | | | |
| | | | | | | | | | * | Jams: Change return plain text to channel mention in `create_channels`Gravatar ks1292020-06-11-1/+1
| | | | | | | | | | | |
| | | | | | | | | | * | Jams: Move channels creation to new function instead inside commandGravatar ks1292020-06-11-19/+26
| | | | | | | | | | | |
| | | | | | | | | | * | Jams: Move overwrites generation to outside of commandGravatar ks1292020-06-11-22/+28
| | | | | | | | | | | |
| | | | | | | | | | * | Jams: Move category checking and creation to another functionGravatar ks1292020-06-11-16/+22
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Use class member of patch instead decorator on most of testsGravatar ks1292020-06-11-21/+19
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Fix `test_result_sending` docstringGravatar ks1292020-06-11-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Mark <[email protected]>
| | | | | | | | | | * | Jam Tests: Create test for `setup` functionGravatar ks1292020-06-11-1/+11
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Create test for successful `ctx.send` callingGravatar ks1292020-06-11-0/+6
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Create test for team jam roles addingGravatar ks1292020-06-11-0/+14
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Create test for team voice channel creatingGravatar ks1292020-06-11-0/+12
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Make text channel creation test more specificGravatar ks1292020-06-11-1/+8
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Created test for channel overwritesGravatar ks1292020-06-11-0/+24
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Created test for creating text channel for teamGravatar ks1292020-06-11-0/+5
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Created test that make sure when category exist, don't createGravatar ks1292020-06-11-0/+8
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Added utils.get assert to category creating testGravatar ks1292020-06-11-0/+1
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Created test for category creating when not existGravatar ks1292020-06-11-2/+14
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Created tests for removing duplicate team membersGravatar ks1292020-06-11-0/+9
| | | | | | | | | | | |
| | | | | | | | | | * | Jam Tests: Created tests for case when too small amount of members givenGravatar ks1292020-06-11-1/+17
| | | | | | | | | | | |