aboutsummaryrefslogtreecommitdiffstats
path: root/botcore (follow)
Commit message (Collapse)AuthorAgeLines
* Added comments for regex additionGravatar ionite342022-08-16-1/+1
|
* Removed redundant capture groupGravatar ionite342022-08-16-1/+1
|
* Unified usage of flags kwargGravatar ionite342022-08-16-2/+2
|
* Removed a redundant regex character classGravatar ionite342022-08-16-1/+1
|
* Added regex for leading https or wwwGravatar ionite342022-08-16-0/+1
|
* Remove explicit cleanup of the redis session (#111)Gravatar ChrisJL2022-07-27-3/+0
|
* Bump async-rediscache to v1.0.0-rc2Gravatar Chris Lovering2022-07-27-2/+2
|
* Fix suppressed_exceptions type hint (#112)Gravatar Numerlor2022-07-26-2/+2
| | | | The previous type hint expected a tuple with a single exception type instead of a variable length tuple of exception types
* Mark aiodns As An Explicit DependencyGravatar Hassan Abouelela2022-07-23-1/+1
| | | | | | | aiodns is required by aiohttp when using an AsyncResolver, as is done in BotBase. This makes aiodns a required dependency. Signed-off-by: Hassan Abouelela <[email protected]>
* Merge remote-tracking branch 'origin/bot-core-100' into bot-core-100Gravatar Izan2022-07-23-1/+100
|\
| * Merge branch 'main' into bot-core-100Gravatar TizzySaurus2022-07-23-1/+100
| |\
| | * Add an optional message attr to ViewWithUserAndRoleCheckv7.4.0Gravatar ChrisJL2022-07-21-2/+14
| | | | | | | | | | | | | | | On view timeout, this message has it's view removed if set. Co-authored-by: Boris Muratov <[email protected]>
| | * Fix interactions.DeleteMessageButton not working due to using wrong delete ↵Gravatar Chris Lovering2022-07-16-1/+1
| | | | | | | | | | | | method.
| | * Add a generic view and buttonGravatar Chris Lovering2022-07-16-1/+88
| | | | | | | | | | | | | | | | | | The view implements an interaction check for allowed_users and allowed_roles. The button deleted the message attached the the parent view on click.
* | | Raise error when referenced message has no contentGravatar Izan2022-07-23-2/+6
| | |
* | | Reformat docstring to use Google's style & raise error instead of returning NoneGravatar Izan2022-07-23-4/+17
|/ /
* | Add commands.py to __init__.pyGravatar Izan2022-07-15-1/+2
| |
* | Add `clean_text_or_reply` util.Gravatar Izan2022-07-14-0/+21
|/
* Only close stats._transport if BotBase.stats was createdGravatar Chris Lovering2022-07-09-1/+1
|
* Don't try to connect to statsd_url if it's NoneGravatar Chris Lovering2022-06-30-2/+4
|
* Switch `typing.Hashable` With `Collections.abc.Hashable`Gravatar Hassan Abouelela2022-06-29-9/+9
| | | | | | | Switches out the Hashable type from the typing library for the generic from collections. Signed-off-by: Hassan Abouelela <[email protected]>
* Replace Typing GenericsGravatar Hassan Abouelela2022-06-26-8/+10
| | | | | | | | Replaces all typing generics with collection equivalents as per PEP 585. `typing.Callable` was not included in this due to a sphinx-autodoc bug not handling it well. Signed-off-by: Hassan Abouelela <[email protected]>
* Document Create Task Return TypeGravatar Hassan Abouelela2022-06-26-2/+5
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Declare Static MethodGravatar Hassan Abouelela2022-06-26-1/+2
| | | | | | | The `maybe_raise_for_status` function is declared as a class function, but does not need to be so. Signed-off-by: Hassan Abouelela <[email protected]>
* Fix Incorrect Typehints & DocstringsGravatar Hassan Abouelela2022-06-26-2/+2
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Fix Docstring For Role Change Wrapper UtilGravatar Hassan Abouelela2022-06-26-4/+4
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Add Typehints To Typing PatcherGravatar Hassan Abouelela2022-06-26-2/+3
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Clean Up Startup Ping FunctionGravatar Hassan Abouelela2022-06-26-2/+2
| | | | | | | | The function was missing the self arg, which would lead to an exception at startup for any projects that don't override it. It's also not being awaited despite being an async function. Signed-off-by: Hassan Abouelela <[email protected]>
* Remove Discord `MissingSentinel`Gravatar Hassan Abouelela2022-05-28-2/+4
| | | | | | | | Replaces the access to `discord.utils._MissingSentinel` with a simple boolean flag. This has the benefit of behaving more nicely with our doc generation. Signed-off-by: Hassan Abouelela <[email protected]>
* Fix Discord Invite Regex DocsGravatar Hassan Abouelela2022-05-10-3/+4
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Remove trailing whitespace from docstringGravatar GDWR2022-05-10-3/+3
|
* `DISCORD_INVITE` captures until a whitespaceGravatar GDWR2022-05-10-1/+5
|
* Set BotBase.statsd correctly based on init kwargsGravatar Chris Lovering2022-04-25-1/+4
|
* Type-hint `ignore_module`v6.3.0Gravatar mbaruh2022-04-22-1/+1
|
* Don't look for extensions in packages prefixed with an underscoreGravatar mbaruh2022-04-21-2/+7
| | | | Before this, even if a package is prefixed with an underscore, `walk_extensions` will ignore the package itself, but will still look for extensions inside it.
* Load each cog in it's own taskGravatar Chris Lovering2022-04-21-2/+8
|
* Add unqualify to the utils namespaceGravatar Chris Lovering2022-04-20-0/+2
| | | | This is for bots that want to use the unqualify function for their own extension cogs
* Allow passing an api_client kwarg to BotBaseGravatar Chris Lovering2022-04-18-5/+6
|
* Reconnect to redis session on setup if it is closedGravatar Chris Lovering2022-04-18-1/+6
|
* Create a dummy AsyncstatsdClient before connecting to the real urlGravatar Chris Lovering2022-04-08-2/+7
| | | | This is in case a connection cannot be made on init.
* Move the creation of BotBase._guild_available to within the setup hookGravatar Chris Lovering2022-04-08-1/+3
| | | | This is to avoid a deprecation notice.
* Move the creation of BotBase's AsyncResolver to async setupGravatar Chris Lovering2022-04-02-6/+9
| | | | There is a deprecation notice that this must be created within an async function. This isn't a breaking change.
* Use imperative mood in docstringsGravatar ChrisJL2022-04-02-1/+1
| | | Co-authored-by: Mark <[email protected]>
* Remove BotBase.closing_tasksGravatar Chris Lovering2022-03-31-7/+0
| | | | | | | | | Doing a naive git log --grep closing_tasks on the bot repo I found these two places it was used: https://github.com/python-discord/bot/commit/429cc865309242f0cf37147f9c3f05036972eb8c - Reddit cog to revoke the access token on unload, which has since been moved to lance (without this feature). https://github.com/python-discord/bot/commit/f4004d814c1babfb5906afb8cd9944ceef90a2a3 - Silence cog, which has been removed since. Since this list of tasks to close when closing the Discord connection is no longer used, it has been removed from BotBase.
* Add __all__ attrs to async_stats and site_api modulesGravatar Chris Lovering2022-03-31-0/+6
|
* Remove inappropriate abstractmethod tagsGravatar Chris Lovering2022-03-31-3/+0
|
* Mark async-rediscache as an optional extra dependencyGravatar Chris Lovering2022-03-31-3/+12
|
* Provide a bot.all_extensions instance attributeGravatar Chris Lovering2022-03-24-6/+13
| | | | This allows commands like extensions and source to see all of the available commands, rather than just the currently loaded commands.
* Remove unneeded kwargs in BotBaseGravatar Chris Lovering2022-03-24-6/+0
| | | | | | Since *args and **kwargs already allow these to be passed, there is no use in explicitly listing them. allowed_roles has been left there, to ensure that it is always passed, since it's important to use this to avoid bots being able to ping large roles.
* Add BotBase that will act as a base for all our botsGravatar Chris Lovering2022-03-24-8/+272
| | | | | | | This commit also modifies the extensions util, since it's now directly used by bot-core. Co-authored-by: Mark <[email protected]> Co-authored-by: Hassan Abouelela <[email protected]>