| Commit message (Collapse) | Author | Lines |
|
|
|
Co-authored-by: Joe Banks <[email protected]>
|
|
|
|
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]>
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
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.
|