| Commit message (Collapse) | Author | Lines |
|
|
|
|
|
Also changed talentpool review cog to post there instead of mod-announcements
|
|
|
|
The user ID is much more accessible, and is usually what is used to obtain the nomination ID.
|
|
If it's been over a day overdue for a review, don't reschedule it.
This is done in order to not fire reviews for all nominations which
are over 30 days old when the auto-reviewing feature is merged.
|
|
This is necessary as otherwise the bot would try to review them every time it restarts
|
|
|
|
Uncached mentions render as 'invalid' users on mobile, and with the list now showing the user's name we can now just show the ID without many problems.
|
|
|
|
Co-authored-by: ToxicKidz <[email protected]>
|
|
|
|
|
|
shorten collapses the whitespace, causing issues with codeblocks
|
|
Moving the block handling the fetching into a separate method meant that
symbol_name was no longer updated inside the create_symbol_embed method, causing
the whole message to be included in the embed title in case the space shortcut
was used
|
|
Fixes BOT-XK
|
|
|
|
`ast.parse` raises a ValueError complaining that source code strings
cannot contain null bytes. It seems like they may accidentally get
pasted into Discord by users sometimes.
|
|
Remove the mixed line endings pre-commit hook because it is obsolete.
Relying on git to handle line endings means contributors have more
flexibility with which line endings they want to use on check-out.
The settings in .gitattributes only impose which line endings will
be used upon check-in (LF), which should not impact local development;
git will still respect the core.eol and core.autocrlf settings.
|
|
|
|
|
|
|
|
* Update and rename elements.json to fruits.json
* Update _name.py
* Update _cog.py
|
|
|
|
|
|
|
|
It didn't make much sense for the Reviewer to subclasses Scheduler.
The Scheduler has methods that don't make sense to use on the Reviewer directly.
There is now a Scheduler object as an attribute of the Reviewer.
Interacting with it is done by adding __contains__, cancel, and cancel_all methods.
|
|
Previously the code used limits that apply to raw messages, not embeds.
Both the description and footer limits are separate, while their
individual limits are 2048 chars instead of 2000.
The footer overhead was removed from the max description length
and the footer is now truncated to 200 chars which is roughly 2 lines
|
|
|
|
|
|
|
|
|
|
|
|
This commit adds the functionality to automatically review a nominee a
set number of days after being nominated.
This is implemented by subclassing the Scheduler and formatting a
review after 30 days.
The review contains details of the nominee, their nominations, the
number of messages they have and the channels they're most active in,
and statistics about their infractions and previous nominations.
Lastly, the bot will add three emojis to the review: eyes to mark as
seen, a thumbsup, and thumbsdown for the vote itself.
The code accounts for the possibility of the review being too long for
a single message but splitting it where necessary.
|