github-actions[bot]
4db77c9051
Automated Crowdin downstream ( #3616 )
2020-02-28 01:02:44 +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
5ee73cdf63
Add clearer error when pages isn't made of embeds nor strings in menu() ( #3571 )
...
* Update menus.py
* Update menus.py
2020-02-20 22:25:14 -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
github-actions[bot]
6779a76b68
Automated Crowdin downstream ( #3580 )
2020-02-20 13:21:37 +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
Michael H
066bf516d9
new mention behavior, new filter behavior ( #3553 )
...
* new mention behavior, new filter behavior
* and here too, ffs
* docs and reformat
* review handling
2020-02-14 09:07:16 -05:00
github-actions[bot]
0913b68a1e
Automated Crowdin downstream ( #3543 )
2020-02-13 12:54:28 -05:00
zephyrkul
42a23277cd
[Dev] Allow top-level await in code statements ( #3508 )
...
* [dev] allow top-level await in code statements
* style
* use staticmethod, cls is unneeded
* add asyncio and aiohttp to env
* fix repl
* add __builtins__ to repl env
* style...
* fix debug with no coro
* add `optimize=0` to eval
2020-02-13 12:29:10 -05:00
Michael H
c2143fdf86
[commands module] functools.partial support ( #3542 )
...
* No reason we can't support this
* meh
* there we go...
2020-02-12 09:28:52 -05:00
chasehult
26fdbf63ee
string ( #3536 )
2020-02-10 04:10:59 -05:00
Cog-Creators Bot
4370ec922b
Automated Crowdin downstream ( #3531 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-02-08 19:49:30 +01:00
Michael H
00cf395483
Handle deprecations in asyncio ( #3509 )
...
* passing loop to certain things was deprecated. additionally, `asyncio.get_event_loop()` is being deprecated
* awesome, checks are functioning as intended
* fun with fixtures
* we can just stop misuing that anyhow
* Update redbot/pytest/downloader.py
Co-Authored-By: jack1142 <6032823+jack1142@users.noreply.github.com >
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2020-02-05 17:16:13 -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
PredaaA
e44fc69d14
[Core] Add a cli flag for setting a max size of message cache ( #3474 )
...
* Add an arg in cli to change message cache size
* Add an arg in cli to change message cache size
* Changelog
* Actually pass None in message_cache_size
* Update cli.py
* Add a cli arg to disable message cache.
* Add a cli arg to disable message cache.
* well go away you useless
* you actually are an int
* Check if message cache is higher than 0 when set it.
* Use sys.maxsize as max cache size.
* Update cli.py
* Add bot.max_messages property.
* typos
* 🤦
* style
2020-02-03 16:14:45 -05:00
jack1142
64106c771a
Allow to edit prefixes through redbot --edit ( #3486 )
...
* feat: allow to edit prefixes through `redbot --edit`
* enhance: allow to setup multiple prefixes
* fix: gotta break out of the loop
* fix: gotta sort prefixes in reversed order
* fix: editing prefix shouldn't save it as token
* fix: sort prefixes when using flag too
* chore(changelog): add towncrier entry
* docs: update help for `--edit` flag
2020-02-03 16:08:48 -05:00
Michael H
97a9fde5fd
slowmode should properly error out on 7 hours now ( #3453 )
2020-01-27 02:01:22 +01:00
Michael H
a664615a2d
shortdoc should be formatted too, + generic replacement method ( #3451 )
2020-01-27 01:25:58 +01:00
Michael H
3d4f9500e9
[Permissions] Ordering fix ( #3452 )
2020-01-27 01:00:08 +01:00
Michael H
a8450580e8
[Commands Module] Improve usability of type hints ( #3410 )
...
* [Commands Module] Better Typehint Support
We now do a lot more with type hints
- No more rexporting d.py commands submodules
- New type aliases for GuildContext & DMContext
- More things are typehinted
Note: Some things are still not typed, others are still incorrectly
typed, This is progress.
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2020-01-26 17:54:39 -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
Michael H
498d0d22fb
resolves #3443 ( #3447 )
2020-01-25 18:57:07 -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
Stonedestroyer
e1a110b1bf
[Misc] Typo fixes ( #3427 )
...
* [Misc] Typo fixes
* Changelog
* Trivia list
* Update 3427.misc.rst
* Changelog
2020-01-22 10:00:52 +00:00
Michael H
77235f7750
[commands] Implement __call__ to commands.Command ( #3241 )
...
* This is technically awesome, but let's not document it for public use rn
* changelog
2020-01-20 23:23:15 +01:00
Flame442
8f04fd436f
Catches discord.NotFound in utils.mod.mass_purge ( #3414 )
...
* Catches `discord.NotFound` in `mass_purge`
* Create 3378.bugfix.rst
2020-01-20 17:09:17 -05:00
Michael H
6219f0da67
[Modlog API] Add resolution for people inpacted by bad casetypes ( #3333 )
...
* add resolution for people inpacted by bad casetypes
* *some* amount of notice on this
* Fine.
* clearer warnings
* actually, unnneded
2020-01-17 18:51:49 -05:00
Michael H
d52f8974fd
Stop special casing help in bot.embed_requested ( #3382 )
...
- However, we are not changing the signature
- This was previously special cased for reasons related to the older
version of the help formatter we used and never re-evaluated for need.
- We should leave the signature as is both for lack of breaking, and
for potential future changes
// actually this was already done once in GH-2966 but got accidentally overwritten
2020-01-17 23:59:37 +01: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
Stonedestroyer
a203fe34cf
[Typo Fix] Permissions ( #3390 )
...
* [Typo Fix] Permissions
* Changelog file
2020-01-17 04:43:37 -05:00
Michael H
60dc54b081
Allow pre_invoke to be used by 3rd party cogs safely. ( #3369 )
...
* Okay, so there's a lot in this diff
* fix docstrings
* meh
* fix misleading var name
* meh...
* useful typehints
* Apply suggestions from code review
Co-Authored-By: jack1142 <6032823+jack1142@users.noreply.github.com >
* dep warn in locations suitable
* Fix this...
* 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 >
2020-01-15 20:44:21 -05:00
Michael H
a7f0e2b7c6
Globally ensure send_messages for commands ( #3361 )
...
* wew
* typo fix, thanks Danny
2020-01-14 17:42:40 -05:00
jack1142
79dcd22ff6
Update bank.py ( #3366 )
2020-01-14 12:53:28 -05:00
Michael H
3c53b89040
[Help] formatting additions ( #3339 )
...
* formatting additions
* I really need to redo this module later
* fix some casing
2020-01-13 11:50:45 -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
deab24e916
3.2.2 ( #3324 )
...
* page sizing changes
* docs
2020-01-10 06:43:35 -05:00
Michael H
acc5baec7d
possible mongo fix ( #3319 )
...
* possible mongo fix
* prevent swallowing the exception
* better log str
2020-01-09 23:56:05 -05:00
Michael H
ed692bcaa5
This shouldn't be possible normally, but we've have enough issues with it ( #3318 )
2020-01-09 19:20:34 -09:00
Michael H
ed3b4e5b29
Embed pagination fixing (pt2) ( #3248 )
...
* I hate embeds
* changelog
* until splitting the fields, ensure a field
* make this work, from a user perspective
2020-01-09 16:50:04 +01:00
Michael H
9698baf6e7
[3.2.0 Docs] Some clarifications ( #3292 )
...
* docs
* changelog
* Fix python for choco
* k
* little more
2020-01-09 16:16:10 +01:00
jack1142
ab3b567cd8
[Core] Use owner set in config ( #3294 )
...
* Update bot.py
* Create 3293.misc.rst
* style: forking whitespace
2020-01-09 08:52:34 -05:00
Michael H
1c75c47a9c
Allow migrating away from mongo ( #3253 )
...
* Restore mongo driver
* make it possible to convert
* style
* add in known issues with other backends while at it
2020-01-08 13:41:35 -05:00