aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | | * | | | | | | | | | | 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
| | | | | | | | | | | | | |
| | | | | | | | * | | | | | 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 branch 'trashcan-mods' of github.com:python-discord/bot into trashcan-modsGravatar Matteo Bertucci2021-01-24-59/+983
| | | | | | | | | |\ \ \ \ \
| | | | | | | | | | * \ \ \ \ Merge branch 'master' into trashcan-modsGravatar Xithrius2021-01-19-59/+983
| | | | | | | | | | |\ \ \ \ \ | | | | | | | | | |_|/ / / / / | | | | | | | | |/| | | | | |
| | | | | | | | | * | | | | | Make sure that the paginator doesn't choke on DMsGravatar Matteo Bertucci2021-01-24-1/+2
| | | | | | | | | |/ / / / /
| | | | | | | | | * | | | | Restrict paginator usage to the author and moderatorsGravatar Matteo Bertucci2021-01-17-4/+11
| | | | | | | | | | | | | |
| | | | | | | | | * | | | | Add an allow_moderation_roles argument to the wait_for_deletion() utilGravatar Matteo Bertucci2021-01-16-1/+5
| | | | | | |_|_|/ / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `allow_moderation_roles` bool can be specified to allow anyone with a role in `MODERATION_ROLES` to delete the message.
| | | | | | | | | | | * | Rename voice.md to voice-verification.mdGravatar PH-KDX2021-01-23-0/+0
| | | | | | | | | | | | |
| | | | | | | | | | | * | Create voice.mdGravatar PH-KDX2021-01-22-0/+3
| | |_|_|_|_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | This tag would provide info for users which are not voice-verified, so that they can easily be directed toward the appropriate channel.
* | | | | | | | | | | | swap single quotes to double quotes where they were unnecessaryGravatar Numerlor2021-03-25-20/+20
| | | | | | | | | | | |
* | | | | | | | | | | | Replace shorten with custom algo to find good cutoff pointsGravatar Numerlor2021-03-16-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shorten collapses the whitespace, causing issues with codeblocks
* | | | | | | | | | | | Update the symbol_name when fetching the DocItem from get_symbol_itemGravatar Numerlor2021-03-16-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving the block handling the fetching into a separate method meant that symbol_name was no longer updated inside the create_symbol_embed method, causing the whole message to be included in the embed title in case the space shortcut was used
* | | | | | | | | | | | Correct length limits to embed limitsGravatar Numerlor2021-03-12-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the code used limits that apply to raw messages, not embeds. Both the description and footer limits are separate, while their individual limits are 2048 chars instead of 2000. The footer overhead was removed from the max description length and the footer is now truncated to 200 chars which is roughly 2 lines
* | | | | | | | | | | | Use a clearer approach with less duplicate codeGravatar Numerlor2021-03-10-46/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]>
* | | | | | | | | | | | Hold the symbol_get_event in the entire body of create_symbol_embedGravatar Numerlor2021-03-10-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While the previous code was safe, the synchronization was spread out over different modules and was hard to wrap around. Additionally changes could introduce context switches without the author being aware of them causing potential race conditions with the refresh. Moving the whole body into the with block solves both of these issues
* | | | | | | | | | | | Handle arbitrary amount of backslashes preceding the quote charGravatar Numerlor2021-03-07-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests for this were added additionally
* | | | | | | | | | | | Remove superfluous commentGravatar Numerlor2021-03-06-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After the move to a separate method, the docstring now documents the behaviour so a comment is unnecessary
* | | | | | | | | | | | Handle unexpected errors when requesting markdownGravatar Numerlor2021-03-06-1/+12
| | | | | | | | | | | |
* | | | | | | | | | | | Create the footer text before an inventory refresh can occurGravatar Numerlor2021-03-06-5/+6
| | | | | | | | | | | |
* | | | | | | | | | | | Abstract logic from create_symbol_embed into additional methodsGravatar Numerlor2021-03-06-18/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The method was also renamed from get_symbol_embed to create_symbol_embed
* | | | | | | | | | | | Correct tests casesGravatar Numerlor2021-03-05-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests were not adjusted after the converter was corrected to accept digits
* | | | | | | | | | | | Clarify the use of _set_expires and needs_expireGravatar Numerlor2021-03-05-0/+3
| | | | | | | | | | | |
* | | | | | | | | | | | Rename markup_hint to MarkupGravatar Numerlor2021-03-05-2/+2
| | | | | | | | | | | |
* | | | | | | | | | | | Name tasksGravatar Numerlor2021-03-05-5/+13
| | | | | | | | | | | |
* | | | | | | | | | | | Use scheduling's create_taskGravatar Numerlor2021-03-05-1/+1
| | | | | | | | | | | |
* | | | | | | | | | | | Add comment explaining purpose of create_task over awaitGravatar Numerlor2021-03-05-0/+1
| | | | | | | | | | | |
* | | | | | | | | | | | Set future result to None on exceptionsGravatar Numerlor2021-03-05-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can still provide th user with at least the link to the docs, for which we already have handling in the cog with a generic "unable to parse message", using exceptions for that would mean setting it here, immediately catching it and then providing the same or very similar message.
* | | | | | | | | | | | Correct typehintGravatar Numerlor2021-03-05-2/+2
| | | | | | | | | | | |
* | | | | | | | | | | | Move future assignment and check outside of the tryGravatar Numerlor2021-03-05-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No exceptions can be raised from the two lines of code because of the data structures used, moving it out makes for flatter code.
* | | | | | | | | | | | Rename params to clearer and more concise alternativesGravatar Numerlor2021-03-05-6/+6
| | | | | | | | | | | |
* | | | | | | | | | | | Explain use of various containers in the cogGravatar Numerlor2021-03-05-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]>
* | | | | | | | | | | | Use placeholder consistent with others in the cogGravatar Numerlor2021-03-05-1/+1
| | | | | | | | | | | |
* | | | | | | | | | | | Add comments to the parsing moduleGravatar Numerlor2021-03-05-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]>
* | | | | | | | | | | | Account for ellipses when determining the truncation description indexGravatar Numerlor2021-03-05-3/+3
| | | | | | | | | | | |
* | | | | | | | | | | | Remove placeholder in shorten callGravatar Numerlor2021-03-05-1/+1
| | | | | | | | | | | |
* | | | | | | | | | | | Use clearer branchingGravatar Numerlor2021-03-05-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]>
* | | | | | | | | | | | Add comments for purpose of DocItem attributesGravatar Numerlor2021-03-05-5/+5
| | | | | | | | | | | |