Flame442
47d9069108
[Core] Catch errors about blocked DMs in [p]traceback ( #4329 )
2020-09-20 19:42:28 +02:00
PredaaA
343efba4d5
Handle aiohttp errors in [p]set avatar ( #4437 )
...
* [Core comands] Handle aiohttp errors in set avatar
* Update redbot/core/core_commands.py
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2020-09-19 19:51:38 +02:00
PythonTryHard
e1261b92d1
Typo fix on [p]invite command ( #4382 )
2020-08-31 14:21:15 +01:00
jack1142
85afe19455
Bump black to 20.8b1 (and reformat) ( #4371 )
...
* Bump black version
* Reformat with black
2020-08-29 19:12:28 +02:00
Theo Suricate
ef839722f4
Added length validation for [p]set name and [p]set nickname ( #4364 )
2020-08-24 14:59:09 +01:00
maxbooiii
5cd3a5b5af
missing dots ( #4031 )
2020-08-23 03:13:09 +02:00
Dav
581bdaa496
[Core] Make core_commands.py comply with #4048 ( #4138 )
...
Co-authored-by: Draper <27962761+Drapersniper@users.noreply.github.com >
2020-08-16 11:37:29 +01:00
Vexed
61df4f88b3
[Core] A few data API grammar improvements ( #4164 )
...
* stuff
* .
* oops
* aaaaaaaaaa
2020-08-07 00:22:08 +02:00
Dav
297ba8f2b7
[Core] Typo fix ( #4035 )
2020-08-06 18:54:44 +02:00
Michael H
068ce24513
[Core Commands] Add Help settings view ( #4022 )
...
* add help settings view
* Update redbot/core/commands/help.py
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
* natural language handling of time intervals is useful
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2020-08-06 03:38:34 +02:00
Michael H
4f808306ba
Add a provisional API for replacing the help formatter ( #4011 )
...
* Adds an API for replacing the help formatter
* Apply suggestions from code review
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
* add note about provisionality
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2020-08-06 02:12:14 +02:00
Neuro Assassin
5221b1e4a3
Fix missing self argument in [p]licenseinfo ( #4154 )
2020-08-04 14:13:23 +02:00
jack1142
775528ce9b
Reject package (extension) names that can't be valid Python identifiers ( #3679 )
...
* Reject package names that can't be valid Python identifiers
* Add info to `[p](re)load`
* Improve internal consistency of package vs cog
2020-08-03 15:17:27 +02:00
Michael H
c0b1e50a5f
Begin work on a data request API ( #4045 )
...
[Core] Data Deletion And Disclosure APIs
- Adds a Data Deletion API
- Deletion comes in a few forms based on who is requesting
- Deletion must be handled by 3rd party
- Adds a Data Collection Disclosure Command
- Provides a dynamically generated statement from 3rd party
extensions
- Modifies the always available commands to be cog compatible
- Also prevents them from being unloaded accidentally
2020-08-03 15:09:07 +02:00
Michael H
d73ad3115f
Prevent LicenseInfo command from being a source of user command spam ( #4110 )
...
* Prevent LicenseInfo command from being a source of user command spam
* add dep-warn explaining whats needed for this
* name issues
* Tests...
* An empty commit unbroke some of it, but still style issues
2020-07-29 02:39:37 +02:00
Jamie
260a2d5c78
Use mod/admin_or_permissions instead of just mod/admin. ( #4109 )
...
* Update modcheck.
* _or_permissions for set nickname & serverprefix
2020-07-29 01:38:19 +02:00
Michael H
1d80fe9aec
Create cog disabling API ( #4043 )
...
* create cog disbale base
* Because defaults...
* lol
* announcer needs to respect this
* defaultdict mishap
* Allow None as guild
- Mostly for interop with with ctx.guild
* a whitespace issue
* Apparently, I broke this too
* Apply suggestions from code review
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
* This can probably be more optimized later, but since this is a cached value, it's not a large issue
* Report tunnel closing
* mod too
* whitespace issue
* Fix Artifact of prior method naming
* these 3 places should have the check if i understood it correctly
* Announce the closed tunnels
* tunnel oversight
* Make the player stop at next track
* added where draper said to put it
* Apply suggestions from code review
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
Co-authored-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
2020-07-28 20:52:36 +02:00
Draper
d30e83b5fc
Reduce config calls when changing white/blacklist and use sets for their cache ( #3910 )
...
* optimise use of config ctx manager to reduce calls to config
* fine you potato
* since jack said yes i'll abuse it
* Apply suggestions from code review
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
* difference_update and update
* Apply suggestions from code review
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
* Update redbot/core/settings_caches.py
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
* one last tweak
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2020-07-08 19:25:14 +02:00
Draper
e0b922c949
Make localwhitelist check if caller will still be able to use bot after changes ( #3903 )
...
* Check invokers theoretical perms in localwhitelist add before completing command
* remove unnecessary code
* add check to remove
* ignore bot owner and server owner
* Update core_commands.py
* lets not crash shit
2020-07-07 20:08:06 +02:00
Michael H
60df447550
Add settings view commands ( #4041 )
...
Any group which sent help + settings views has had the settings view
split into a seperate command. This ensures that custom help behavior
does not interfere with settings views.
2020-07-07 00:53:41 +02:00
Vexed
2cf7a1f80d
[Core] Docstring full stops and a few other grammar fixes ( #4023 )
...
* core full stops/other grammar fixes
* need to read better (i'm keeping it on two lines)
* apply review
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2020-07-06 20:21:45 +02:00
jack1142
b49b53934d
Update deprecation warnings ( #3608 )
...
* Make deprecation notice specify minor release based on soonest date
* Stop specifying a specific release in shared libs deprecation notice
* Add actual deprecation warning for `APIToken` (OMG, this is so cool)
* Add dates (2020-08-05 for all)
* address review
* improve consistency
* Add __dir__ and show APIToken in docs (or maybe I want to annoy Flame)
* fix module name when importing non-existent name from parent package
* Fix stack level used by depr warn in `redbot.core.commands`
2020-06-22 03:25:33 +02:00
Draper
175fbebd73
Move logic for fetching latest Red version info to internal util ( #3904 )
...
* Only Send out of date message to Final builds available on PyPi
* Only Send out of date message to Final builds available on PyPi
* sorted the resulting list so that the newest build is first in the list
* forgot about this one
* well jack is a bitch but we love him.
* simplify logic
* Add the new function to `__all__`
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2020-06-18 22:21:59 +02:00
Vexed
3a0574eae8
[Core] Change [p]embedset user docstring and message to explicitly say DMs only ( #3972 )
...
* change docstring and message to explicitly say DMs
* didn't think i'd need to run black...
* wrong branch...
This reverts commit aa6aa5cf4b .
* wait its the right branch
* review - seperate enabled & disabled strings
* review
Co-authored-by: Draper <27962761+Drapersniper@users.noreply.github.com >
Co-authored-by: Draper <27962761+Drapersniper@users.noreply.github.com >
2020-06-18 16:00:08 +02:00
Vexed
f58f6bb6d2
Update dm docstring for readability and grammar (+ period in contact) ( #3946 )
...
* update `dm` docstring
* few changes
* hmm
* cant make my mind up how to word it
* fk i forgot "and"
this is the last one, i promise
* add missing full stop in `contact` as im in this area of core_commands
* oh, see ^^^ review
* `click on` instead of `select`
Co-authored-by: Vexed01 <>
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2020-06-11 19:31:49 +02:00
Draper
76efb16f96
[UX] Add "server" alias for commands that have "guild" in name ( #3947 )
2020-06-11 18:56:57 +02:00
Predeactor
d411873503
Only trigger cooldown when message is parsed in [p]contact ( #3942 )
2020-06-11 18:54:11 +02:00
Flame442
f0a4c1c252
[Core Commands] Fix [p]set custominfo error ( #3923 )
2020-06-11 18:46:30 +02:00
Draper
b1d394eac5
[Core] Add a text only version to [p]info ( #3907 )
...
* ...
* Finish implementation
* some people think an embedless world brings joy ... I agree to disagree.
2020-06-11 15:07:27 +02:00
Neuro Assassin
7a86cc4bf3
[Core] Add bot.set_prefixes() ( #3890 )
...
* Add bot.set_prefixes; change set serverprefix and set prefix to new method
* Address requested changes
* Apply suggestions from code review
* One more
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2020-05-31 00:57:49 +02:00
jack1142
ed89f70f98
Fix uses of re.sub() ( #3826 )
...
* Fix uses of `re.sub()` (pt. 1)
* Fix uses of `re.sub()` (pt. 2)
* Fix uses of `re.sub()` (pt. 3)
* Fix uses of `re.sub()` (pt. 4)
* Revert commands.py
2020-05-28 23:51:53 +02:00
Neuro Assassin
ef76affd77
Fix local blacklist and whitelist commands ( #3857 )
2020-05-19 02:22:05 +02:00
Predeactor
fb26ecf577
Fix casing and add missing dot in two commands ( #3851 )
2020-05-15 15:55:28 +02:00
Qais Patankar
7d28581915
Fix 'authentification' typo ( #3823 )
2020-05-06 20:20:52 +02:00
Flame442
aaee2d9294
Fix incorrect docstring in [p]helpset maxpages ( #3817 )
2020-05-01 18:30:58 +02:00
Draper
bd3d0dd64d
Show current driver in [p]debuginfo ( #3794 )
...
Co-Authored-By: jack1142 <6032823+jack1142@users.noreply.github.com >
2020-04-26 16:07:57 +02:00
Draper
ad979180e5
Make the largest loops lazier and async to avoid blocking ( #3767 )
...
* lets reduce config calls here
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* Lets normalize how we name config attributes across the bot.
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* ....
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* Just a tiny PR improving config call in a lot of places (Specially events and Help)
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* stop using `bot.guilds` in `on_command_add`
* Just a tiny PR improving config call in a lot of places (Specially events and Help)
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* missed this one
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* nothing to see here
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* lets reduce config calls here
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* Just a tiny PR improving config call in a lot of places (Specially events and Help)
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* stop using `bot.guilds` in `on_command_add`
* missed this one
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* welp
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* welp
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* welp
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* jack
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* Update redbot/cogs/mod/kickban.py
Co-Authored-By: jack1142 <6032823+jack1142@users.noreply.github.com >
* Update redbot/cogs/filter/filter.py
Co-Authored-By: jack1142 <6032823+jack1142@users.noreply.github.com >
* jack
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* make all large loops async to avoid blocking larger bots
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* ...
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* okay now working AsyncGen
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* may or may not have forgotten black
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* Apply suggestions from code review
Co-Authored-By: jack1142 <6032823+jack1142@users.noreply.github.com >
* jack's review
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* DOCS
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* DOCS
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* Apply suggestions from code review
Co-Authored-By: jack1142 <6032823+jack1142@users.noreply.github.com >
* jack
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* Apply suggestions from code review
Co-Authored-By: jack1142 <6032823+jack1142@users.noreply.github.com >
* Update redbot/core/utils/__init__.py
Co-Authored-By: jack1142 <6032823+jack1142@users.noreply.github.com >
* Update redbot/core/utils/__init__.py
Co-Authored-By: jack1142 <6032823+jack1142@users.noreply.github.com >
* avoid loop if possible and if not only iterate once
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2020-04-20 19:56:28 +02:00
jack1142
465812b673
Add a command to remove bot's avatar ( #3757 )
...
* Add a command to remove bot's avatar
* blah
2020-04-20 19:40:14 +02:00
Draper
f59e77002b
Optimize config calls in few places ( #3766 )
...
* Just a tiny PR improving config call in a lot of places (Specially events and Help)
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* missed this one
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* welp
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* welp
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* welp
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* jack
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
* Update redbot/cogs/mod/kickban.py
Co-Authored-By: jack1142 <6032823+jack1142@users.noreply.github.com >
* jack
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2020-04-20 19:29:36 +02:00
Kowlin
10ad2a559a
[Core] Support setting avatar via attachment ( #3747 )
...
* [Core] Support avatars via attachments
* Fix the thing I was actually annoyed about.
* Updated error texts
* English is a damn annoying language.
2020-04-13 02:27:55 +02:00
jack1142
7492636818
Fix ignored channels list in [p]ignore ( #3746 )
...
* Fix ignored channels list
* Update settings_caches.py
* Update core_commands.py
2020-04-12 00:09:05 +02:00
Kowlin
da4e4d4ad0
Stop Outdated field from showing in [p]info when up-to-date ( #3730 )
...
* Oudated-B-Gone!
* Meh
* mehhh
2020-04-07 10:01:51 +02:00
jack1142
fce8186759
Add [p]set regionalformat command to set regional formatting ( #3677 )
...
* Add `[p]set region` command to set regional formatting
* Add Babel to intersphinx
* rename 'region' to 'regional format`
2020-03-28 23:23:02 +01:00
jack1142
d35f6abca0
Use Babel in [p]set locale to allow any valid locale ( #3676 )
...
* Use Babel in `[p]set locale` to allow any valid locale
* Remove `[p]listlocales` and link to Crowdin in `[p]set locale`
* import babel.Locale as BabelLocale to avoid confousion
2020-03-28 23:11:25 +01:00
jack1142
7009be8922
white/blacklist commands now properly require at least one user passed ( #3652 )
2020-03-28 01:38:46 +01:00
TrustyJAID
b9f07e8684
[Mod] Move deletedelay to core ( #3638 )
...
* Move deletedelay to core
* line lengths
* address review
* move settings change
* fine...
2020-03-21 18:39:58 +01:00
jack1142
a126da5f23
Prevent PyPI's unavailability from causing command failure ( #3663 )
2020-03-19 08:19:01 +01:00
Dav
4d81887bcf
[Core] Unify commands that set bot's activity status ( #3646 )
...
* alias [p]set game
* Implement suggestions
2020-03-12 22:46:19 +01:00
Stonedestroyer
b52c838018
Fix game command empty argument. ( #3630 )
2020-02-29 15:35:44 +01:00
jack1142
e8b975a095
[Core] Use new PyPI urls ( #3607 )
...
* fix: use new PyPI urls
* Update core_commands.py
* Update core_commands.py
2020-02-28 02:43:21 +01:00