aboutsummaryrefslogtreecommitdiffstats
path: root/tests/base.py (unfollow)
Commit message (Collapse)AuthorLines
2021-03-26feat: add link to discord dev portal intents sectionGravatar vcokltfre-1/+1
2021-03-26fix: remove . from the hyperlinkGravatar vcokltfre-1/+1
Co-authored-by: Joe Banks <[email protected]>
2021-03-20Added myself to CODEOWNERSGravatar wookie184-0/+1
2021-03-20Added nomination voting channel to configGravatar wookie184-2/+4
Also changed talentpool review cog to post there instead of mod-announcements
2021-03-19Fix review formatting when there's only one infraction typeGravatar Boris Muratov-5/+8
2021-03-19Review commands now use the user ID instead of nomination IDGravatar Boris Muratov-27/+19
The user ID is much more accessible, and is usually what is used to obtain the nomination ID.
2021-03-19Don't reschedule reviews that are long overdueGravatar Boris Muratov-1/+3
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.
2021-03-19Mark as reviewed when nominee is off serverGravatar Boris Muratov-3/+4
This is necessary as otherwise the bot would try to review them every time it restarts
2021-03-19Default message in review when no nomination reason givenGravatar Boris Muratov-1/+1
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-15Info: account for defcon threshold being NoneGravatar MarkKoz-1/+2
Fixes BOT-XK
2021-03-15Defcon: fix naming conflict between threshold cmd and attributeGravatar MarkKoz-2/+2
2021-03-15Code block: remove null bytes before parsing ASTGravatar MarkKoz-0/+3
`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.
2021-03-14fix: more minor spelling/grammar correctionsGravatar vcokltfre-2/+2
2021-03-14fix: minor spelling correctionGravatar vcokltfre-1/+1
2021-03-14fix: add newline file endingsGravatar vcokltfre-2/+2
2021-03-14feat: add new discord.py tagsGravatar vcokltfre-0/+22
2021-03-13Use .gitattributes to normalise line endings on check-inGravatar MarkKoz-2/+1
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.
2021-03-13master => mainGravatar Joe Banks-22/+22
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-13Update help channel names from chemical elements to fruitGravatar Joe Banks-126/+59
* Update and rename elements.json to fruits.json * Update _name.py * Update _cog.py
2021-03-12Added '_' to allowed chars, shortened embed.Gravatar xithrius-21/+12
2021-03-12Fix typo in the token removerGravatar Matteo Bertucci-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-11Remove invoked command and message after failure.Gravatar xithrius-27/+35
2021-03-12Compose: read all environment variables from '.env'Gravatar kwzrd-4/+2
2021-03-11Compose: read GitHub API key from '.env'Gravatar kwzrd-0/+1
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.