aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2023-04-04Add warning not to pip install unrelated packages.Gravatar Steele Farnsworth-3/+3
This is in response to recent attacks where the attacker DMs someone who opens a thread and tells the thread opener to pip install a malicious package under the false pretense that it will solve their problem. The warning replaces "For more tips, check out our guide on asking good questions", which is stated in the thread closer embed.
2023-04-01Ping help thread owner if thread closes without engagement.Gravatar Steele Farnsworth-2/+13
Add logic to see if anyone other than the OP (or bots) engaged in a help thread when it closes for inactivity. Currently only looks at the last 10 messages. If not, includes a ping to the OP before the embed in the closing message.
2023-04-01Update ping cooldown for helpersGravatar bradtimmis-3/+3
2023-03-31Fix import order.Gravatar Steele Farnsworth-2/+1
2023-03-31Add blank line for linting.Gravatar Steele Farnsworth-0/+1
2023-03-31Make new helper role pingable for help request.Gravatar Steele Farnsworth-1/+3
Previously, the message from the bot requesting that new helpers answer off-topic questions did not cause a ping. Solved by this commit.
2023-04-01Avoid race conditions and stricter cooldownGravatar mbaruh-6/+11
2023-03-31Use broader heuristic for detecting questions.Gravatar Steele-13/+4
Namely just seeing if there's a question mark in it that isn't part of a URL.
2023-03-31Change "Help!" to "answer this!"Gravatar Steele-1/+1
It may occasionally be confusing why the bot thinks people need to "help" if there's a false positive (ie if the message is not a question).