Predeactor
7630e24822
[Core] Add plural forms in allowlist and blocklist commands ( #4705 )
...
* Plurial for blocklist/allowlist
* duh
* Apply suggestions from code review
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2021-01-22 02:56:07 +00:00
Lui
8dbabe24e0
[Streams] Use timezone-aware time ( #4694 )
...
* [Streams] Remove timezone replacement
* [Streams] Convert naive now time to UTC
* [Streams] Format with black
2021-01-21 16:29:54 +01:00
Lui
5b21d37571
[Streams] Change streamtypes log name ( #4744 )
2021-01-21 16:15:52 +01:00
bobloy
676f34185d
[Core] Add sensible character lengths to activity statuses ( #4663 )
...
* Add sensible character lengths
* Add translation function
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2021-01-21 13:41:28 +00:00
Predeactor
edbbd76b3c
Document that discord.DMChannel can be used in MessagePredicate ( #4718 )
...
* Allow "discord.DMChannel" for MessagePredicate
This closes #4707 .
* Optional only takes a single type, use Union
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2021-01-21 11:42:10 +01:00
Fixator10
315b3e5c98
Add on_red_before_identify dispatch ( #4647 )
...
* add before_identify_hook with `on_identify` dispatch
* move before_identify_hook closer to other "hooks"
* add `red_` prefix to avoid potential conflict
* on_red_before_identify
Co-authored-by: Fixator10 <fixator10@users.noreply.github.com >
2021-01-21 10:20:20 +01:00
bobloy
41e980c517
Fix usage in [p]filter's commands, make commands consistent ( #4599 )
...
* Make *words a required argument.
* Also make delete consistant, and name not positional
2021-01-21 00:23:16 +01:00
Ryan
0358055cce
[Docs] Document pyenv workaround for pm2 ( #4709 )
...
* add pyenv specific fixes to pm2
* switch note to code-block
* forgot a new line
2021-01-21 00:12:58 +01:00
PredaaA
dcf7368e54
Show command aliases in help with setting to disable ( #3040 )
...
* Update help.py
* Create 3040.enhance.rst
* remove towncrier entry
* Make it i18n friendly.
* That was uneeded to change this actually.
* ...
* ..
* .
* Add a setting for aliases.
* DOTS
* Update redbot/core/core_commands.py
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
* Address requested changes maybe
* New format + changes requested.
* okay we'll get there someday
* honk
* aaaaaaaaaaaaaaa
* Black
* Fix missing humanize_timedelta import.
* style
* Two things from my very old pending review, see commit desc
```py
valid_alias_list = [
af
for a in aliases
if (af := f"{a}")
and len(af) < 500
and ((a_counter + len(af)) < 500)
and (a_counter := a_counter + len(af))
]
```
^ This can be simplified:
```suggestion
valid_alias_list = [
alias
for alias in aliases
if (a_counter := a_counter + len(alias)) < 500
]
```
Although I think it would be somewhat clearer to use a `for` loop rather than a list comprehension (+ we can just `break` when there's not gonna be another alias that could fit in the list since it's sorted):
```suggestion
valid_alias_list = []
for alias in aliases:
if (a_counter := a_counter + len(alias)) < 500:
valid_alias_list.append(alias)
else:
break
```
* style *again*
* use qualified name of the parent command
* meh
* another meh
* Revert the last commit...
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
Co-authored-by: Drapersniper <27962761+drapersniper@users.noreply.github.com >
2021-01-20 23:40:27 +01:00
bobloy
0994d56d4f
Merge remote-tracking branch 'origin/cog_guide_core' into cog_guide_core
...
# Conflicts:
# docs/cog_guides/core.rst
# redbot/core/core_commands.py
2021-01-20 15:48:07 -05:00
bobloy
52105818be
Regenerate docs
2021-01-20 15:44:06 -05:00
jack1142
4138410d33
Ensure no role hierarchy bypassing in Mutes ( #4741 )
...
* Ensure no role hierarchy bypassing on bad role configuration
* Do the same for `[p]muteset role`
2021-01-20 13:32:59 -07:00
jack1142
537656c365
Fix role position checks ( #4740 )
2021-01-20 13:32:43 -07:00
bobloy
aee645523f
Up to command defaultdisablecog
2021-01-20 15:02:42 -05:00
bobloy
b746d48bc0
Up to allowlist
2021-01-20 14:56:53 -05:00
bobloy
0d0b07a79d
A little more contact
2021-01-20 14:56:53 -05:00
bobloy
0ff4da0050
tagline and contact
2021-01-20 14:56:53 -05:00
bobloy
da91f94406
spagetthi ctrl+v
2021-01-20 14:56:53 -05:00
bobloy
728e6e1d52
Maxpages and delete delay docstrings
2021-01-20 14:56:53 -05:00
bobloy
ad279b3225
Regenerate docs
2021-01-20 14:56:53 -05:00
bobloy
94a611726c
Docstrings up to helpset pagecharlimit
2021-01-20 14:56:51 -05:00
bobloy
16316d0907
set activity statuses docstrings
2021-01-20 14:55:24 -05:00
bobloy
8b1efe04f9
Regenerate docs (fix bullet lists)
2021-01-20 14:55:24 -05:00
bobloy
29132c68ea
Regenerate docs
2021-01-20 14:55:24 -05:00
bobloy
c5fce970e3
Bullet lists need blank lines.
2021-01-20 14:55:24 -05:00
bobloy
066953f1ac
More docstrings into the set command
2021-01-20 14:55:24 -05:00
bobloy
bae343badb
Regenerate docs with new .. warning code
2021-01-20 14:55:24 -05:00
bobloy
172873f3e0
Some small docstrings
2021-01-20 14:55:24 -05:00
bobloy
99f9273e07
Regenerate docs with new code
2021-01-20 14:55:24 -05:00
bobloy
43d6bffbca
Remove link
2021-01-20 14:55:23 -05:00
bobloy
9df953ed18
Regenerate docs
2021-01-20 14:55:23 -05:00
bobloy
c60d948cce
Refix line lengths
2021-01-20 14:55:23 -05:00
bobloy
ad5e4fdbf8
"cog packages" for loads
2021-01-20 14:55:21 -05:00
bobloy
04fd00808e
docstring semantics
2021-01-20 14:53:25 -05:00
bobloy
8d12fa60a7
Black formatting
2021-01-20 14:52:56 -05:00
bobloy
f789046a1b
Up to load docstrings
2021-01-20 14:52:53 -05:00
bobloy
60552b0145
Add document link
2021-01-20 14:51:39 -05:00
bobloy
f3264c67ca
Lots more docstrings
2021-01-20 14:51:39 -05:00
bobloy
720676caa9
Regenerated docs
2021-01-20 14:51:39 -05:00
bobloy
6c627d7983
Mydata docstrings
2021-01-20 14:51:39 -05:00
bobloy
bfd53d7cd6
Core guide initial commit
2021-01-20 14:51:39 -05:00
Dav
d7a3da49f0
[Mod] Make tempban not fail if no vanity url is set up ( #4714 )
...
* catch if a vanity url is not set up
* black
Co-authored-by: David Bauch <david.bauch@capgemini.com >
2021-01-17 23:42:00 +01:00
Grant LeBlanc
2b5d72c7a4
[Trivia] Add support for payout to multiple trivia winners ( #4649 )
...
* Add payout splitting for trivia game tie instances
* Add check for non-human players
* Apply suggestions from code review
* `pay_winner()` -> `pay_winners()`
* style
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2021-01-17 23:32:04 +01:00
Ryan
e4d24578b5
[Bank API] Cache global bank settings ( #4723 )
...
* cache global bank settings
* Make the global variable name clearer
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2021-01-17 23:08:59 +01:00
BreezeQS
2b72f9bb99
[Docs] Restructure of the Host List ( #4710 )
...
* Update hostlist
My first pr??
* Rephrase of unsupported warning
Exact reason for lack of container support added. Information about docker support added in case someone finds that repo and tries it.
* Remove azure from free list
Later found unreasonable to include it due to the 750 hours being spread across the entire year, ends up less than 24 hours a week.
* Oops
Fixed something that caused docs build to error
* Removal of extra space
Fix of spelling error noticed during review
Co-authored-by: bobloy <alboblexloy@gmail.com >
* Fix capitalization error
Idk if this was really necessary, but oh well
* Rephrase free tier note
* Rephrase docker warning
* Small changes
Added galaxygate and ramnode, removed contabo, rephrased a few things, added voice region tip.
* Small fix
Just realized i accidentailly removed Contabo
* Update docs/host-list.rst
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
* Update docs/host-list.rst
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
* Update docs/host-list.rst
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
* Update docs/host-list.rst
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
* Update docs/host-list.rst
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
* Update docs/host-list.rst
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
* Update docs/host-list.rst
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
* Update docs/host-list.rst
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
* Update docs/host-list.rst
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
* Update docs/host-list.rst
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
* Update docs/host-list.rst
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
* Update docs/host-list.rst
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
Co-authored-by: bobloy <alboblexloy@gmail.com >
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
2021-01-16 18:36:22 -05:00
bobloy
8d512e206a
[Docs] Filter Cog Guide ( #4579 )
...
* Add filter to index
* Initial generated docs
* Start on docstrings
* More docstrings
* Some more docstrings
* Rest of the doc strings
* Regenerate docs
* Remove unnecessary language. Move to one line.
* Regenerate docs
* Update redbot/cogs/filter/filter.py
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
* Update redbot/cogs/filter/filter.py
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
* Update redbot/cogs/filter/filter.py
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
* Update docs/cog_guides/filter.rst
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
* Update docs/cog_guides/filter.rst
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
* Update docs/cog_guides/filter.rst
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com >
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com >
2021-01-16 02:10:45 +00:00
jack1142
19711d35b2
Update actions/labeler to use v3 version ( #4730 )
2021-01-13 04:16:07 +01:00
jack1142
1e1fff0d49
Someone can yell at me later... ( #4729 )
2021-01-13 04:03:26 +01:00
jack1142
21f75c0711
Fix the negation rules in labeler configuration ( #4727 )
2021-01-12 14:29:19 +01:00
Flame442
a2d0a364fe
Fix auto labeler error from invalid yaml -> json ( #4719 )
2021-01-10 00:31:07 +01:00