aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2021-02-13Add option to schedule threshold resetGravatar mbaruh-16/+46
Added optional argument to defcon threshold to specify for how long it should be on. The notifier will now run only when there is no expiry date specified.
2021-02-13Defcon days is now defcon threshold with DurationDeltaGravatar mbaruh-41/+84
2021-02-13Added cog check to only allow mods in the defcon channelGravatar mbaruh-5/+4
2021-02-13Removed _build_defcon_message methodGravatar mbaruh-24/+15
2021-02-13Added server shutdown and reopen commandsGravatar mbaruh-2/+24
2021-02-13Reordered methodsGravatar mbaruh-18/+18
2021-02-13Removed enabling and switched to redisGravatar mbaruh-132/+65
Removing self.enable and the defon & defoff commands. Defcon will now just be always 'on' and we can set the days threshold to 0 to turn it off. Switched from postgres to redis - if the data gets lost we should just reconfigure defcon again, it should not depend on the site.
2021-01-26Defon doesn't reset the number of daysGravatar Boris Muratov-1/+1
2021-01-26Added cog unloader to cancel notifierGravatar Boris Muratov-0/+8
2021-01-26Moved channel topic change to _defcon_actionGravatar Boris Muratov-3/+1
2021-01-26Moved self.enabled update to _defcon_actionGravatar Boris Muratov-9/+6
2021-01-26Make the cog update even if write to DB failsGravatar Boris Muratov-3/+3
The defcon cog should be functional even if there is some issue with writing to the DB for some reason. The functionality should have retention across restarts, but it shouldn't be its failing point. If necessary, it should be able to work with no DB at all
2021-01-25Update `is_helper_viewable` checkGravatar Anand Krishna-2/+2
2021-01-25Removed the blank lines from __init__ functionGravatar Inheritance-1/+0
2021-01-25Removed the import of helper interpreterGravatar Inheritance-1/+0
2021-01-25Removed self.interpreter from internal cog, and deleted the interpreter ↵Gravatar Inheritance-52/+0
helper file
2021-01-24Fixed python_general const in server commandGravatar Boris Muratov-1/+1
2021-01-24Reorganizes constants.pyGravatar Hassan Abouelela-98/+111
Mirrors the changes from config-default.yml to constants.py.
2021-01-24Reorganizes ConfigGravatar Hassan Abouelela-92/+90
2021-01-24Remove redundant parenthesis.Gravatar kosayoda-3/+3
2021-01-23Handle unloaded cogs when retrieving server info.Gravatar kosayoda-9/+16
2021-01-23Reduce unnecessary line splits and parameters.Gravatar kosayoda-12/+6
2021-01-23Use helper function to determine mod channel.Gravatar kosayoda-1/+1
2021-01-23Extract `is_staff_channel` to a utility function.Gravatar kosayoda-18/+19
2021-01-22Do `is_helper_viewable` check before fetching messageGravatar Anand Krishna-3/+3
2021-01-22Use the SVG badge on the READMEGravatar Matteo Bertucci-1/+1
2021-01-22Update badges on the README fileGravatar Matteo Bertucci-4/+3
2021-01-21Fix aliases of shadow tempbanGravatar Joe Banks-1/+1
2021-01-21Added slowmode tracking to dpy and ot0Gravatar Boris Muratov-2/+12
2021-01-21Changed slowmode reset testsGravatar mbaruh-12/+4
2021-01-21Added slowmode stat for python-general.Gravatar mbaruh-4/+8
2021-01-21Slowmode reset now uses slowmode setGravatar mbaruh-10/+1
2021-01-20Make type hints uniform across fileGravatar Anand Krishna-2/+2
2021-01-20Duck Pond: Add `is_helper_viewable` checkGravatar Anand Krishna-1/+16
2021-01-20Prevent bot from sending DMs to itselfGravatar Joe Banks-0/+4
Fixes BOT-KX
2021-01-20Remove incorrect pointGravatar Chris-1/+0
2021-01-20Apply suggestions from code review Gravatar ChrisJL-2/+2
Grammar Co-authored-by: Mark <[email protected]>
2021-01-19Add a section on why to use a virtual envGravatar Chris-3/+12
2021-01-19Fix urlGravatar Chris-1/+1
2021-01-19grammar and spelling fixesGravatar Chris-18/+18
2021-01-19Remove additional embed messageGravatar Boris Muratov-9/+1
2021-01-19Replace in_whitelist check with commands.has_any_role checkGravatar ks129-2/+1
in_whitelist allow normal users also run commands in bot commands, but branding commands should be mod+ only, so we need to use has_any_role instead from discord.py.
2021-01-18Sync: test chunking of user requestsGravatar MarkKoz-11/+18
2021-01-18Sync: chunk user requestsGravatar MarkKoz-2/+8
The site can't handle huge syncs. Even a bulk patch of 10k users will crash the service. Chunk the requests into groups of 1000 users and await them sequentially. Testing showed that concurrent requests are not scalable and would also crash the service.
2021-01-18Update config-default.ymlGravatar Boris Muratov-0/+4
Whitelisted mod_meta and mod_tools as mod channels
2021-01-17Stop Tag Matching On SuggestionGravatar Hassan Abouelela-6/+1
2021-01-17Checks If Similar Command Is NoneGravatar Hassan Abouelela-0/+3
2021-01-17Adds Return On Tag MatchesGravatar Hassan Abouelela-4/+9
2021-01-17Update to use Member.pending instead of bot.http.get_memberGravatar Joe Banks-3/+1
2021-01-16Removed 'Channels' import, unused.Gravatar xithrius-1/+1