aboutsummaryrefslogtreecommitdiffstats
path: root/botcore (follow)
Commit message (Collapse)AuthorAgeLines
...
* 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]>
* Add async_stats subclass of statsdGravatar Chris Lovering2022-03-24-1/+56
| | | | | | This is used by the bots to push stats to statsd in a non-blocking way. Co-authored-by: Joe Banks <[email protected]>
* Change all instance of disnake to discordGravatar Chris Lovering2022-03-15-31/+31
|
* fix: Set the logger class in botcore.utils.logging.py to the CustomLogger classGravatar ToxicKidz2022-03-05-0/+6
| | | | Fixes an issue when using trace logging on loggers that were instantiated before the class was set.
* Surface apply_monkey_patches directly in the util namespaceGravatar Chris Lovering2022-03-03-15/+21
|
* feat: Port the Site API wrapper from the bot repoGravatar ToxicKidz2022-02-25-1/+155
| | | | | Co-authored-by: Johannes Christ <[email protected]> Co-authored-by: MarkKoz <[email protected]>
* Migrate to using disnake over Discord.py 2.0a0Gravatar Chris Lovering2022-02-24-28/+28
|
* Add disnake monkey patchesGravatar Chris Lovering2022-02-24-1/+85
| | | | | | | This covers the monkeypatches for Commands and Groups to allow for root aliases, along with a monkey patch for typing events, in case discord decides to raise 403s again. Co-authored-by: Mark <[email protected]> Co-authored-by: Hassan Abouelela <[email protected]>
* Consistently use double backticks when referring to a variable name.Gravatar Chris Lovering2022-02-24-28/+49
| | | | Also add sphix-style docstrings to functions that were previously missing them.
* Rename loggers.py to logging.py to allow for more generic utils in futureGravatar Chris Lovering2022-02-24-9/+9
|
* Alter docstrings to look better in autodocsGravatar Chris Lovering2022-02-24-13/+30
|
* Move new utilities to the util namespaceGravatar Chris Lovering2022-02-24-14/+23
|
* Merge branch 'main' into port-utilitiesGravatar Chris Lovering2022-02-21-0/+27
|\
| * Add regexes for matching Discord code blocksGravatar Chris Lovering2022-01-09-0/+27
| | | | | | | | These are pulled directly from Python bot's snekbox cog.
* | Port many utilities from botGravatar Hassan Abouelela2022-02-21-3/+496
|/
* Port Regex Utilities From Python BotGravatar Hassan Abouelela2021-12-02-0/+30
|
* Setup attemptGravatar mbaruh2021-11-04-0/+0