aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2021-02-17Threshold has false-y value when set to 0Gravatar mbaruh-15/+20
2021-02-17Error loading settings will also ping devops roleGravatar mbaruh-1/+5
2021-02-17Gave more meaningful name and description to the cacheGravatar mbaruh-5/+8
2021-02-17Changed server command to work with new defcon cogGravatar mbaruh-6/+7
2021-02-14Renamed _defcon_action to _update_threshold and updated docstringGravatar mbaruh-4/+4
2021-02-14Removed cog check, shutdown restricted to adminsGravatar mbaruh-4/+5
2021-02-14_update_channel_topic not longer needs to be awaitedGravatar mbaruh-3/+3
It's important to note that it's appropriate for the sync and action methods to have a lock between them, because if an action is made before syncing is complete it gets screwed and starts throwing excpetion for every command.
2021-02-13Prevent channel description edit from locking commandsGravatar mbaruh-1/+2
Because some parts are defined as atomic transaction, we can't use them with channel description edits which are heavily rate limited. Description edits are now run in a separate task.
2021-02-13Status command displays verification levelGravatar mbaruh-0/+1
2021-02-13Fixed on_messageGravatar mbaruh-8/+11
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