aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | | | | * | | Decorators: pass bound arguments to callableGravatar MarkKoz2020-07-31-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bound arguments are more convenient to work with than the raw args and kwargs.
| | | | | * | | Decorators: clarify use of mutually_exclusive with commandsGravatar MarkKoz2020-07-31-0/+2
| | | | | | | |
| | | | | * | | Decorators: add logging for mutually_exclusiveGravatar MarkKoz2020-07-31-4/+12
| | | | | | | |
| | | | | * | | Decorators: fix lock creationGravatar MarkKoz2020-07-31-1/+1
| | | | | | | |
| | | | | * | | Decorators: support awaitables for resource IDGravatar MarkKoz2020-07-31-4/+11
| | | | | | | |
| | | | | * | | Decorators: drop arg pos/name support for mutually_exclusiveGravatar MarkKoz2020-07-31-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Supporting ID retrieval by arg name or position made for a confusing interface. I also doubt it would have been used much. A callable can achieve the same thing, albeit with a little more code. Now the decorator instead supports passing an ID directly or a callable.
| | | | | * | | Decorators: add mutually exclusive decoratorGravatar MarkKoz2020-07-31-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will be used to prevent race conditions on a resource by stopping all other access to the resource once its been acquired.
| | | | | * | | Decorators: create helper function to get arg valueGravatar MarkKoz2020-07-31-10/+24
| | | | | | | |
| | | | | * | | Decorators: clean up importsGravatar MarkKoz2020-07-31-28/+26
| | | | | | | |
| | | | | * | | Decorators: more accurate return type for checksGravatar MarkKoz2020-07-31-3/+3
| | | | | | | |
| | | | | * | | Reminders: fix reminder_id type annotationGravatar MarkKoz2020-07-31-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's fine to accept an int since it'll get converted to a string anyway.
| | | | | * | | Reminders: remove _delete_reminder functionGravatar MarkKoz2020-07-31-21/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only one call was benefiting from that function also cancelling the task. Therefore, the function was redundant and has been replaced with a direct request to delete. This change has the consequence of also fixing reminder tasks cancelling themselves. That issue was potentially suppressing errors (such as the duplicate DELETE request which was fixed earlier). Under normal circumstances, the scheduler will automatically removed finished tasks so tasks won't need to cancel/remove themselves.
| | | | | * | | Reminders: remove duplicate deletion in scheduled taskGravatar MarkKoz2020-07-31-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `send_reminder` already deletes the reminder so it's redundant to delete it in the scheduled task too.
| | | | | | | * remove un-used variableGravatar RohanJnr2020-10-02-1/+0
| | | | | | | |
| | | | | | | * Merge branch 'master' into smart_syncing_usersGravatar Rohan Reddy Alleti2020-10-02-228/+99
| | | | | | | |\ | | |_|_|_|_|_|/ | |/| | | | | |
| * | | | | | | Merge pull request #860 from ks129/discord-py-upgrade-migrateGravatar Joe Banks2020-10-02-122/+77
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | discord.py 1.3.x Functionality Migrating
| | * \ \ \ \ \ \ Merge branch 'master' into discord-py-upgrade-migrateGravatar MarkKoz2020-10-02-5710/+11177
| | |\ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | |
| * | | | | | | | Merge pull request #1205 from soumitradev/source_escape_markdownGravatar Matteo Bertucci2020-10-02-2/+4
| |\ \ \ \ \ \ \ \ | | |_|/ / / / / / | |/| | | | | | | Escape markdown in faulty source commands
| | * | | | | | | Merge branch 'master' into source_escape_markdownGravatar Soumitra Shewale2020-10-02-2/+2
| | |\ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | |
| * | | | | | | | PR #1206 PEPs: move URL link to titleGravatar kwzrd2020-10-02-2/+2
| |\ \ \ \ \ \ \ \ | | |_|_|_|/ / / / | |/| | | | | | |
| | * | | | | | | Update !pep 0 commandGravatar Soumitra Shewale2020-10-02-1/+1
| | | | | | | | |
| | * | | | | | | Move PEP command embed URL to titleGravatar Soumitra Shewale2020-10-02-1/+1
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | Closes #1176
| | * | | | | | Get rid of codeblock in souce commitGravatar Soumitra Shewale2020-10-02-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Double backtick will break if argument contains a double backtick, so getting rid of the codeblock itself makes more sense in my opionion. Also fix the style issue with multiline string by storing the escaped arg in another variable
| | * | | | | | LinterGravatar Soumitra Shewale2020-10-02-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I had flake8 turned off in my dpy env -_-
| | * | | | | | Escape markdown in faulty source commandsGravatar Soumitra Shewale2020-10-02-2/+2
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | Closes #1177
| * | | | | | PR #1198: Remove alias cogGravatar kwzrd2020-10-01-102/+3
| |\ \ \ \ \ \
| | * | | | | | Remove special handling for the alias cog in the !source commandGravatar MarkKoz2020-10-01-15/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's obsolete code because the cog has been removed.
| | * | | | | | Remove alias cogGravatar MarkKoz2020-09-30-87/+0
| | | |/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Last few aliases are an anomaly since #1124 was merged. The remaining aliases are seldom used. The code isn't exactly clean and it has some maintenance costs. Resolves #1159
| * | | | | | Merge pull request #1201 from python-discord/bug/fun/1183/pond-ignore-dmGravatar Mark2020-10-01-0/+13
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | Duck pond: ignore reactions in DMs
| | * | | | | | Duck pond: ignore reaction events from other guildsGravatar MarkKoz2020-10-01-2/+8
| | | | | | | |
| | * | | | | | Duck pond: ignore reactions in DMsGravatar MarkKoz2020-09-30-0/+7
| | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also handle the channel not being found, which may be due to a cache issue or because it got deleted. Fixes #1183 Fixes BOT-8T
| | | * | | | (Snekbox Tests, discord.py 1.3.x Migrations): Fixed wrong assertion of help ↵Gravatar ks1292020-04-03-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | command call.
| | | * | | | (Talent Pool, discord.py 1.3.x Migrations): Replaced `help` command getting ↵Gravatar ks1292020-04-03-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | with `ctx.send_help`.
| | | * | | | (Mod Management, discord.py 1.3.x Migrations): Replaced `help` command ↵Gravatar ks1292020-04-03-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | getting with `ctx.send_help`.
| | | * | | | (Mod Management, discord.py 1.3.x Migrations): Replaced `help` command ↵Gravatar ks1292020-04-03-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | getting with `ctx.send_help`, replaced `ctx.invoke` with direct command call.
| | | * | | | (Utils, discord.py 1.3.x Migrations): Replaced `help` command getting with ↵Gravatar ks1292020-04-03-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `ctx.send_help`.
| | | * | | | (Snekbox, discord.py 1.3.x Migrations): Replaced `help` command getting with ↵Gravatar ks1292020-04-03-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `ctx.send_help`.
| | | * | | | (Site, discord.py 1.3.x Migrations): Replaced `help` command getting with ↵Gravatar ks1292020-04-03-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `ctx.send_help`.
| | | * | | | (Reminders, discord.py 1.3.x Migrations): Replaced `ctx.invoke` with direct ↵Gravatar ks1292020-04-03-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | command calling, replaced `help` command getting with `ctx.send_help`.
| | | * | | | (Reddit, discord.py 1.3.x Migrations): Replaced `help` command getting with ↵Gravatar ks1292020-04-03-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `ctx.send_help`.
| | | * | | | (Off-Topic Names, discord.py 1.3.x Migrations): Replaced `help` command ↵Gravatar ks1292020-04-03-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | getting with `ctx.send_help`.
| | | * | | | (Extensions, discord.py 1.3.x Migrations): Replaced `help` command getting ↵Gravatar ks1292020-04-03-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | with `ctx.send_help`.
| | | * | | | (Eval, discord.py 1.3.x Migrations): Replaced `help` command getting with ↵Gravatar ks1292020-04-03-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `ctx.send_help`.
| | | * | | | (Docs, discord.py 1.3.x Migrations): Replaced `ctx.invoke` with direct ↵Gravatar ks1292020-04-03-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | calling command.
| | | * | | | (Sync Cog Tests, discord.py 1.3.x Migrations): Removed `.callback` from ↵Gravatar ks1292020-04-03-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | commands calling.
| | | * | | | (Silence Tests, discord.py 1.3.x Migrations): Removed `.callback` from ↵Gravatar ks1292020-04-03-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | commands calling.
| | | * | | | (Snekbox Tests, discord.py 1.3.x Migrations): Removed `.callback` from ↵Gravatar ks1292020-04-03-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | commands calling.
| | | * | | | (Information Tests): Replaced `asyncio.run` with `await` in `UserCommandTests`.Gravatar ks1292020-04-03-7/+6
| | | | | | |
| | | * | | | (Information Tests): Replaced `asyncio.run` with `await` in `UserEmbedTests`.Gravatar ks1292020-04-03-8/+8
| | | | | | |
| | | * | | | (Information Tests): Replaced `asyncio.run` with `await` in ↵Gravatar ks1292020-04-03-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `UserInfractionHelperMethodTests.`