aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | | * | | | HelpChannels: refactor stat trackingGravatar MarkKoz2021-01-04-27/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Move significant code related to stats to a separate module.
| | | * | | | HelpChannels: move function to the channel moduleGravatar MarkKoz2021-01-04-42/+45
| | | | | | |
| | | * | | | HelpChannels: prevent user from claiming multiple channels quicklyGravatar MarkKoz2021-01-04-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's conceivable for a user to be able to quickly send a message in all available channels before the code has a chance to add the cooldown role. Place a lock on the author to prevent the claim code from running multiple times for the same user.
| | | * | | | HelpChannels: await init task at the start of event listenersGravatar MarkKoz2021-01-04-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It feels safer to do this since the init task moves channels to different categories and the listeners check if channels are in certain categories.
| | | * | | | HelpChannels: use a more accurate lock for messagesGravatar MarkKoz2021-01-04-47/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the `lock_arg` decorator to keep a separate lock for each channel rather than a single lock used by all messages. Separate the core logic in `on_message` into a separate function to facilitate the use of `lock_arg` - not everything in `on_message` needs to be under the lock.
| | | | | * | Handle unloaded cogs when retrieving server info.Gravatar kosayoda2021-01-23-9/+16
| | | | | | |
| | | | | * | Reduce unnecessary line splits and parameters.Gravatar kosayoda2021-01-23-12/+6
| | | | | | |
| | | | | * | Use helper function to determine mod channel.Gravatar kosayoda2021-01-23-1/+1
| | | | | | |
| | | | | * | Extract `is_staff_channel` to a utility function.Gravatar kosayoda2021-01-23-18/+19
| | | | | | |
| | | | | * | Merge branch 'master' into feat/info/server-cmd-enhancementsGravatar Xithrius2021-01-19-55/+970
| | | | | |\ \
| | | | | * | | Remove unverified member information.Gravatar kosayoda2021-01-15-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We do not have the Developers role anymore, so there's no such thing as verified/unverified members.
| | | | | * | | Merge branch 'master' into feat/info/server-cmd-enhancementsGravatar kosayoda2021-01-15-2854/+3003
| | | | | |\ \ \
| | | | | * \ \ \ Update !server with discord 1.5 presence changes.Gravatar kosayoda2020-10-25-3833/+4051
| | | | | |\ \ \ \
| | | | | * | | | | Update relevant channels for features.Gravatar kosayoda2020-09-23-1/+1
| | | | | | | | | |
| | | | | * | | | | Only show server features in certain channels.Gravatar kosayoda2020-09-23-4/+9
| | | | | | | | | |
| | | | | * | | | | Add owners count to server embedGravatar kosayoda2020-09-23-2/+3
| | | | | | | | | |
| | | | | * | | | | Move number of roles to embed description.Gravatar kosayoda2020-09-23-6/+6
| | | | | | | | | |
| | | | | * | | | | Add extended information to !server.Gravatar kosayoda2020-09-21-6/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Includes useful information like the number of nominated/watched members, number of unverified members, defcon status etc. Will not show up if the command is ran outside of a moderation channel.
| | | | | * | | | | Add more role information to server embed.Gravatar kosayoda2020-09-21-12/+35
| | | | | | | | | |
| | | | | * | | | | Move member count to embed field.Gravatar kosayoda2020-09-21-15/+20
| | | | | | | | | |
| | | | | * | | | | Simplify channel counting.Gravatar kosayoda2020-09-21-55/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than do two passes over the channels, a single loop is used to collect all the channel counts into a single dictionary. The get_channel_type_counts method now returns a dictionary of channel to count, allowing the caller liberty to format the values.
| | | | | * | | | | Move member status information to embed field.Gravatar kosayoda2020-09-21-17/+21
| | | | | | | | | |
| | | | | * | | | | Move Channels information to embed field.Gravatar kosayoda2020-09-21-22/+26
| | | | | | | | | |
| | | | | | | | | * Reorganizes constants.pyGravatar Hassan Abouelela2021-01-24-98/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mirrors the changes from config-default.yml to constants.py.
| | | | | | | | | * Reorganizes ConfigGravatar Hassan Abouelela2021-01-24-92/+90
| | |_|_|_|_|_|_|/ | |/| | | | | | |
| * | | | | | | | Merge PR #1202 - fuzzy match the role commandGravatar Mark2021-01-20-9/+16
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | |
| | * | | | | | | Merge branch 'master' into fuzz-the-matchesGravatar Mark2021-01-20-59/+987
| | |\ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | |
| * | | | | | | | Prevent bot from sending DMs to itselfGravatar Joe Banks2021-01-20-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes BOT-KX
| | * | | | | | | Merge branch 'master' into fuzz-the-matchesGravatar kosayoda2021-01-18-3410/+4835
| | |\ \ \ \ \ \ \ | | | | |_|_|_|/ / | | | |/| | | | |
| | * | | | | | | Merge branch 'master' into fuzz-the-matchesGravatar Leon Sandøy2020-10-10-615/+695
| | |\ \ \ \ \ \ \
| | * | | | | | | | Avoid duplicate roles.Gravatar kosayoda2020-10-01-5/+5
| | | | | | | | | |
| | * | | | | | | | Use basic scorer to fuzz a bit stricter.Gravatar kosayoda2020-10-01-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This prevents weird fuzz matches like `!role a b c d` working.
| | * | | | | | | | Fuzzy match roles for `!role` command.Gravatar kosayoda2020-10-01-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An arbitrary cutoff score of 80 is chosen because it works. A bug in the test for the same command is also fixed.
* | | | | | | | | | Update `is_helper_viewable` checkGravatar Anand Krishna2021-01-25-2/+2
| | | | | | | | | |
* | | | | | | | | | Do `is_helper_viewable` check before fetching messageGravatar Anand Krishna2021-01-22-3/+3
| | | | | | | | | |
* | | | | | | | | | Make type hints uniform across fileGravatar Anand Krishna2021-01-20-2/+2
| | | | | | | | | |
* | | | | | | | | | Duck Pond: Add `is_helper_viewable` checkGravatar Anand Krishna2021-01-20-1/+16
|/ / / / / / / / /
* | | | | | | | | Merge pull request #1188 from ks129/help-disabled-commandGravatar Xithrius2021-01-19-4/+13
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ |/| | | | | | | | Help: Add handling of disabled commands to avoid DisabledCommand error
| * | | | | | | | Merge branch 'master' into help-disabled-commandGravatar Xithrius2021-01-19-2857/+3834
| |\ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | |
* | | | | | | | | Merge pull request #1368 from python-discord/mbaruh/filtersGravatar Boris Muratov2021-01-19-9/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Remove additional embed message
| * | | | | | | | | Remove additional embed messageGravatar Boris Muratov2021-01-19-9/+1
|/ / / / / / / / /
* | | | | | | | | Replace in_whitelist check with commands.has_any_role checkGravatar ks1292021-01-19-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.
* | | | | | | | | Merge pull request #1367 from ↵Gravatar Dennis Pham2021-01-18-13/+26
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | python-discord/bug/backend/bot-4x/chunk-sync-requests Sync: chunk user requests
| * | | | | | | | | Sync: test chunking of user requestsGravatar MarkKoz2021-01-18-11/+18
| | | | | | | | | |
| * | | | | | | | | Sync: chunk user requestsGravatar MarkKoz2021-01-18-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.
* | | | | | | | | Merge PR #1289 - add branding managerGravatar Mark2021-01-18-19/+872
|\ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ Merge branch 'master' into branding-managerGravatar Mark2021-01-18-6/+5
| |\ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | |
* | | | | | | | | | Update config-default.ymlGravatar Boris Muratov2021-01-18-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whitelisted mod_meta and mod_tools as mod channels
* | | | | | | | | | Merge pull request #1364 from HassanAbouelela/fix_suggestion_tagsGravatar Xithrius2021-01-17-6/+1
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Fix ZeroDivisionError In Error Handler
| * | | | | | | | | | Stop Tag Matching On SuggestionGravatar Hassan Abouelela2021-01-17-6/+1
|/ / / / / / / / / /