aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2021-03-19Replace mentions for ID's in watchlist listsGravatar Boris Muratov-1/+1
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.
2021-03-19Properly await coroutine in post_reviewGravatar Boris Muratov-1/+3
2021-03-19Use ctx.send instead of ctx.channel.sendGravatar Boris Muratov-1/+1
Co-authored-by: ToxicKidz <[email protected]>
2021-03-19Add additional logging to _review.pyGravatar Boris Muratov-0/+8
2021-03-19Apply requested style and grammar changesGravatar Boris Muratov-2/+2
2021-03-13Apply requested grammar and style changes.Gravatar Boris Muratov-8/+13
2021-03-13Use log instead of erroneous self.logGravatar Boris Muratov-1/+1
2021-03-12Improve string building for long linesGravatar Boris Muratov-9/+15
2021-03-12Reviewer no longer subclasses SchedulerGravatar Boris Muratov-5/+31
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.
2021-03-11The 'seen vote' emoji is now a random ducky.Gravatar Boris Muratov-4/+15
2021-03-11Limit new commands to mods+Gravatar Boris Muratov-0/+2
2021-03-11Added an auto-reviewer to the talentpool cogGravatar Boris Muratov-26/+404
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.