aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | | * | | improve code efficiency and use updated API changes to paginationGravatar RohanJnr2020-10-07-98/+48
| | | | | |
| | | * | | Merge remote-tracking branch 'upstream/master' into smart_syncing_usersGravatar RohanJnr2020-10-04-280/+340
| | | |\ \ \ | |_|_|/ / / |/| | | / / | | | |/ /
* | | | | PR #1196: Bump 'discord.py` to 1.5 & use intentsGravatar kwzrd2020-10-04-165/+27
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Use invite for tracking offline presences instead of `ctx`Gravatar Senjan212020-10-03-2/+2
| | | | |
| * | | | Add trailing comma to intentsGravatar Senjan212020-10-03-1/+1
| | | | |
| * | | | Merge branch 'master' into discordpy-15Gravatar Senjan212020-10-03-242/+151
| |\ \ \ \
| * | | | | add missing test for `user` commandGravatar Senjan212020-10-03-0/+5
| | | | | |
| * | | | | Add missing blank line to satisfy the linting godsGravatar Senjan212020-10-02-0/+1
| | | | | |
| * | | | | Remove presence stat tracking.Gravatar Senjan212020-10-02-35/+2
| | | | | |
| * | | | | Remove failing unit testsGravatar Senjan212020-10-02-78/+0
| | | | | | | | | | | | | | | | | | | | | | | | Testing `information` cog seems redutant as it is not too important part of the bot.
| * | | | | update member status info in `server` commandGravatar Senjan212020-09-30-7/+6
| | | | | |
| * | | | | Remove Custom Status and Status from `create_user_embed`Gravatar Senjan212020-09-30-32/+0
| | | | | |
| * | | | | Add intents setup to the botGravatar Senjan212020-09-30-1/+9
| | | | | |
| * | | | | Deps: bump 'discord.py' to 1.5 & re-lockGravatar kwzrd2020-09-29-18/+9
| | | | | | | | | | | | | | | | | | | | | | | | This also removes a duplicate 'discord' entry from the lockfile.
* | | | | | Merge pull request #835 from python-discord/bug/util/795/reminders-dupe-deleteGravatar Mark2020-10-03-100/+265
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | Fix reminders sending duplicate DELETE request and cancelling themselves
| * | | | | Merge remote-tracking branch 'origin/master' into ↵Gravatar MarkKoz2020-10-03-3533/+3101
| |\ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | bug/util/795/reminders-dupe-delete
* | | | | | Merge pull request #1210 from python-discord/joseph/add-socket-statsGravatar Joe Banks2020-10-03-5/+37
|\ \ \ \ \ \ | | | | | | | | | | | | | | Add a socket stats command
| * | | | | | Cap most_common to 25 to not go over the embed fields limitGravatar Joe Banks2020-10-03-1/+1
| | | | | | |
| * | | | | | Add a socket stats commandGravatar Joe Banks2020-10-03-5/+37
|/ / / / / /
* | | | | | Merge pull request #1207 from hedythedev/masterGravatar Dennis Pham2020-10-02-6/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix typos in docstrings and comments
| * \ \ \ \ \ Merge branch 'master' into masterGravatar Dennis Pham2020-10-02-130/+88
| |\ \ \ \ \ \ | |/ / / / / / |/| | | | | |
* | | | | | | Merge pull request #1208 from python-discord/reminder-no-mentionGravatar Mark2020-10-02-4/+5
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | | Reminder: no feedback message when no mention is used
| * | | | | | Reminder: no feedback message when no mentionGravatar Matteo Bertucci2020-10-02-4/+5
| | | | | | |
| | * | | | | fix line length in bot/exts/info/information.pyGravatar Hedy Li2020-10-02-3/+3
| | | | | | |
| | * | | | | Merge pull request #1 from python-discord/masterGravatar Hedy Li2020-10-02-104/+22
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | merge back new changes
| | * | | | | | fix spelling typos in bot/ python filesGravatar Hedy Li2020-10-01-4/+4
| | | |_|/ / / | | |/| | | |
| | | | * | | Lock: make LockGuard.locked a propertyGravatar MarkKoz2020-10-03-1/+2
| | | | | | |
| | | | * | | Lock: rename variable to avoid shadowingGravatar MarkKoz2020-10-03-3/+3
| | | | | | |
| | | | * | | Reminders: fix conflict with the _can_modify checkGravatar MarkKoz2020-09-09-1319/+1347
| | | | |\ \ \
| | | | * | | | Fix attribute docstring for LockedResourceErrorGravatar MarkKoz2020-09-09-1/+1
| | | | | | | |
| | | | * | | | Move lock decorators to utils/lock.pyGravatar MarkKoz2020-09-09-86/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `LockGuard` was lonely and the decorators were cluttering up decorators.py.
| | | | * | | | Decorators: rename mutually_exclusive decoratorsGravatar MarkKoz2020-09-09-14/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A mutex is the same thing as a lock. The former is a relatively esoteric contraction, so the latter is preferred.
| | | | * | | | Decorators: remove locked() decoratorGravatar MarkKoz2020-09-09-35/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was not being used anywhere.
| | | | * | | | Decorators: replace asyncio.Lock with a custom objectGravatar MarkKoz2020-08-22-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Concerns were raised over possible race conditions due `asyncio.Lock` internally awaiting coroutines. Does a mere `await` suspend the current coroutine, or does it have to actually await something asynchronous, like a future? Avoid answering that question by doing away with the awaits, which aren't necessary but are there as a consequence of using `asyncio.Lock`. Instead, add a custom `LockGuard` object to replace the previous locks.
| | | | * | | | Explicitly use kwarg with respect_role_hierarchyGravatar MarkKoz2020-08-01-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clarify the significance of the argument being passed.
| | | | * | | | Decorators: fix type annotations for checksGravatar MarkKoz2020-08-01-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The annotation was previously changed on the basis of an incorrect return annotation PyCharm inferred for `check()`.
| | | | * | | | Reminders: use singular form for mutually exclusive namespaceGravatar MarkKoz2020-07-31-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The exception it raises reads better if the singular form of the word is used.
| | | | * | | | Reminders: show error to users if reminder is in useGravatar MarkKoz2020-07-31-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Silent failure is confusing to users. Showing an error message clears up why nothing happened with their command.
| | | | * | | | Send users an error message if command raises LockedResourceErrorGravatar MarkKoz2020-07-31-0/+3
| | | | | | | |
| | | | * | | | Decorators: optionally raise an exception if resource is lockedGravatar MarkKoz2020-07-31-4/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The exception will facilitate user feedback for commands which use the decorator.
| | | | * | | | Decorators: add some trace loggingGravatar MarkKoz2020-07-31-0/+3
| | | | | | | |
| | | | * | | | Decorators: wrap mutually_exclusive to use get_arg_valueGravatar MarkKoz2020-07-31-7/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of taking a callable, this wrapper just takes a name or position to get the resource ID.
| | | | * | | | Decorators: remove redundant word in docstringGravatar MarkKoz2020-07-31-1/+1
| | | | | | | |
| | | | * | | | Decorators: use type aliases from function moduleGravatar MarkKoz2020-07-31-4/+2
| | | | | | | |
| | | | * | | | Decorators: remove default value for respect_role_hierarchyGravatar MarkKoz2020-07-31-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Explicit is better than implicit, and this default value wasn't much of a convenience.
| | | | * | | | Decorators: use new func utils in respect_role_hierarchyGravatar MarkKoz2020-07-31-30/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the `_get_arg_value` call with `function.get_arg_value` cause the latter makes use of bound arguments, which are more accurate.
| | | | * | | | Add a function to get bound argsGravatar MarkKoz2020-07-31-4/+17
| | | | | | | |
| | | | * | | | Add a function to wrap a decorator to use get_arg_valueGravatar MarkKoz2020-07-31-1/+28
| | | | | | | |
| | | | * | | | Reminders: make operations mutually exclusiveGravatar MarkKoz2020-07-31-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes race conditions between editing, deleting, and sending a reminder. If one operation is already happening, the others will be aborted.
| | | | * | | | Add util function to get value from argGravatar MarkKoz2020-07-31-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a more advanced version meant to eventually replace the `_get_arg_values` in decorators.py.