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
Draper
6c062ab1e2
[Core] Update licenseinfo command to conform with non-American English. ( #3460 )
...
* Update the licence command to confirm with non-American English and keep it inline with the `colour`/`color` command
Signed-off-by: Draper <27962761+Drapersniper@users.noreply.github.com >
* What is Black
Signed-off-by: Draper <27962761+Drapersniper@users.noreply.github.com >
* improve error handling
Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
2020-02-22 20:52:01 +01:00
jack1142
901c4f7b80
Update core_commands.py ( #3585 )
2020-02-20 22:25:36 -05:00
jack1142
54b712fa71
Fix type hints for var-positional parameters in whitelist/blacklist commands ( #3577 )
...
* Fix type hints in whitelist/blacklist commands
* fix formatting (yay for black diff in CI again)
2020-02-20 22:23:45 -05:00
zephyrkul
e70fcef651
[Core] Utilize clean prefix ( #3579 )
...
* [core] use clean prefix
* forgot an import
2020-02-20 18:58:41 +01:00
jack1142
bb90a50ae4
i18n fixes for #3562 ( #3565 )
2020-02-17 12:11:42 -05:00
Dav
6c62817de5
[Core] Setting the bot's game/listening/watching displays new text in chat message and is capped at 128 chars. ( #3562 )
...
* Le code.
* Say Status instead of Game/Listening/Watching
2020-02-17 11:48:43 -05:00
TrustyJAID
74a3eba08f
[Mod] Move ignored guilds and channels to core ( #3472 )
...
* Move ignored guilds and channels to core
Add caching for ignored guilds and channels
Add caching for whitelist and blacklist
Fix #3220
Add consume-rest for whitelist and blacklist commands to add multiple users or roles in one command
* Add ability to ignore channel categories
* black
* moveignorechannels should be owner only and cleanup changes
* add changelog entries
* address Feedback
2020-02-15 01:21:09 -05:00
aikaterna
12e6f44135
[Core] No DMing the bot ( #3478 )
...
* [Core] No DMing the bot
* Return early if target user is a bot
2020-02-03 16:26:33 -05:00
jack1142
068585379a
docs: deprecation of shared libraries has been postponed to 3.4 ( #3449 )
2020-01-26 12:16:44 -05:00
Stonedestroyer
41fdcb2ae8
[Core] Embeds toggle for channels. ( #3418 )
...
* [Core] Embedset toggle for channels.
* Typo fix
* Add to contact as well
Thanks Jack.
* Add guild only and check.
2020-01-26 12:15:22 -05:00
Michael H
2ac4dde729
update for d.py 1.3 ( #3445 )
...
* update for d.py 1.3
* Update redbot/core/commands/commands.py
Co-Authored-By: Danny <Rapptz@users.noreply.github.com >
* a few more places we use owner info
* add the cli flag + handling
* set fix
* Handle MaxConcurrencyReached.
* Bump `aiohttp-json-rpc`
Co-authored-by: Danny <Rapptz@users.noreply.github.com >
Co-authored-by: Kowlin <Kowlin@users.noreply.github.com >
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2020-01-25 18:59:08 -05:00
DevilXD
ee53d50c3a
Help delete pages delay feature ( #3433 )
...
* Added 'deletedelay' feature for help
* Fixes
* More fixes
* Use better message when disabling
* Added changelog entry
* Addressed feedback
* Improved the pages check
* Added additional command check
* Improved command description
* Final feedback improvements
2020-01-22 17:15:51 -05:00
Stonedestroyer
8570971f68
[Core] Make bot name adjustable in bot. ( #3429 )
...
* First draft
* Up for discussion
* Revert "Up for discussion"
This reverts commit 2f00b7ded8 .
2020-01-22 12:52:06 -05:00
Michael H
cd7f4681a4
Cache prefixes ( #3150 )
...
* Cache prefixes
- This works towards #3148
- Ends up centralizing some logic
- Including that prefixes should be a reverse sorted list
* handle global prefix attempts at none
* fix prefix set for server
* cache using guild id
2020-01-17 16:49:25 -05:00
Stonedestroyer
48ccd9070c
[Core] Adds server IDs to servers command. ( #3393 )
...
* [Core] Adds server ID to servers command.
* Changelog
2020-01-17 06:08:31 -05:00
Michael H
ef8b57a1d2
Add a command to set the bot description ( #3340 )
...
* description-command
* Cap the description length
* mmk
2020-01-13 10:12:31 -05:00
Michael H
d9d2e0017e
patchup name error from 3254 ( #3267 )
2020-01-04 00:39:48 -05:00