aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | * | | | | | | | | | | | | PEP: Filter out too big PEP numbersGravatar ks1292020-06-22-1/+5
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Async Cache: Make cache handle different caches betterGravatar ks1292020-06-22-7/+9
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | PEP: Define PEP region for grouping functionsGravatar ks1292020-06-22-1/+2
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Merge branch 'master' into pep-improvisationsGravatar ks1292020-05-18-503/+340
| | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | | | PEP: Removed `while` loop from refresh checking on `get_pep_embed`Gravatar ks1292020-05-18-11/+9
| | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | PEP Improvisations: Remove PEP URLs refreshing task + replace it with new systemGravatar ks1292020-05-17-12/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now PEP command request PEP listing when PEP is not found and last refresh was more time ago than 30 minutes instead task.
| | * | | | | | | | | | | | | | PEP Improvisations: Fix cache if statementGravatar ks1292020-05-17-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `not` in check is key exist in cache.
| | * | | | | | | | | | | | | | PEP Improvisations: Move error embed to variables instead creating on `ctx.send`Gravatar ks1292020-05-17-6/+5
| | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | PEP Improvisations: Remove response from logging to avoid newlineGravatar ks1292020-05-17-2/+1
| | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | PEP Improvisations: Fix formatting of blocks Gravatar ks1292020-05-17-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added newline before logging after indention block. Co-authored-by: Mark <[email protected]>
| | * | | | | | | | | | | | | | PEP Improvisations: Simplify cache item check on `async_cache` decoratorGravatar ks1292020-05-17-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Mark <[email protected]>
| | * | | | | | | | | | | | | | PEP Improvisations: Move errors sending from PEP command to `get_pep_embed`Gravatar ks1292020-05-15-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this, all error embeds was returned on `get_pep_embed` but now this send this itself and return only correct embed to make checking easier in command.
| | * | | | | | | | | | | | | | PEP Improvisations: Fix `get_pep_embed` docstringGravatar ks1292020-05-15-1/+1
| | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | PEP Improvisations: Fix `get_pep_zero_embed` docstringGravatar ks1292020-05-15-1/+1
| | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | PEP Improvisations: Move `get_pep_zero_embed` back to CogGravatar ks1292020-05-15-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved `get_pep_zero_embed` back to the cog, but made this `staticmethod`.
| | * | | | | | | | | | | | | | PEP Improvisations: Fix log text formattingGravatar ks1292020-05-15-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use repo own alignment of multiline text.
| | * | | | | | | | | | | | | | PEP Improvisations: Remove unnecessary typehintGravatar ks1292020-05-15-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed unnecessary type hint that I used for IDE and what I forget to remove.
| | * | | | | | | | | | | | | | PEP Improvisations: Fix importsGravatar ks1292020-05-14-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace `in_channel` with `in_whitelist`. This mistake was made to merge conflicts.
| | * | | | | | | | | | | | | | Merge branch 'master' into pep-improvisationsGravatar ks1292020-05-14-269/+800
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | | | | PEP Improvisations: Moved `get_pep_zero_embed` to outside of CogGravatar ks1292020-05-14-14/+15
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | PEP Improvisations: Implemented stats to PEP commandGravatar ks1292020-05-14-7/+11
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | PEP Improvisations: Made PEP URLs refreshing task PEP number resolving easierGravatar ks1292020-05-13-2/+4
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | PEP Improvisations: Added logging to PEP URLs fetching taskGravatar ks1292020-05-13-0/+3
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | PEP Improvisations: Replaced `wait_until_guild_available` with ↵Gravatar ks1292020-05-13-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `wait_until_ready`
| | * | | | | | | | | | | | | | | PEP Improvisations: Added `staticmethod` decorator to `get_pep_zero_embed`Gravatar ks1292020-05-13-1/+2
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | PEP Improvisations: Moved PEP functions to one regionGravatar ks1292020-05-13-27/+29
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Replaced 24 hours with 3 hours in `refresh_peps_urls`Gravatar ks1292020-04-25-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Made modification to include new PEPs faster.
| | * | | | | | | | | | | | | | | Refactor `pep` command, implement cachingGravatar ks1292020-04-25-55/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved PEP embed getting to function, that use caching.
| | * | | | | | | | | | | | | | | Created new task in `Utils` cog: `refresh_peps_urls`Gravatar ks1292020-04-25-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Task refresh listing of PEPs + URLs in every 24 hours
| | * | | | | | | | | | | | | | | Moved `async_cache` decorator from `Doc` cog file to `utils/cache.py`Gravatar ks1292020-04-25-30/+34
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Merge branch 'master' into pep-improvisationsGravatar ks1292020-04-21-6/+44
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | | | | | Improve `!pep` commandGravatar ks1292020-04-21-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Made `pep_number` type hint to `int` to avoid unnecessary manual converting. - Added `ctx.trigger_typing` calling to show user that bot is responding.
| | | | | | | | | | * | | | | | | | Modified instructions for code block without langGravatar Amin Boukari2020-11-05-1/+1
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | * | | | | | | | Changed ```python to ```pyGravatar Amin Boukari2020-11-05-1/+1
| | |_|_|_|_|_|_|_|/ / / / / / / / | |/| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Merge pull request #1265 from python-discord/voicegate/activity-blocksGravatar Dennis Pham2020-11-01-2/+7
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|/ / / / / / / / | |/| | | | | | | | | | | | | | | Voice Gate: User activity blocks
| | * | | | | | | | | | | | | | | Actually fix the issue @kwzrd pointed outGravatar Joe Banks2020-11-01-3/+3
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Correct 404 error message in voice gate commandGravatar Joe Banks2020-11-01-2/+2
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Correct activity block config name in voice gate extensionGravatar Joe Banks2020-11-01-1/+1
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Indent inline comment by two spaces in config-default.ymlGravatar Joe Banks2020-11-01-1/+1
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Change wording of failure message and re-add trailing commaGravatar Joe Banks2020-11-01-1/+1
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Remove full stopGravatar Joe Banks2020-11-01-1/+1
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Add activity blocks threshold to voice gateGravatar Joe Banks2020-10-31-1/+4
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Add new activity block constantGravatar Joe Banks2020-10-31-0/+2
| |/ / / / / / / / / / / / / / /
| | | | | | | | | | | | | | | * fix(bot): statds pr review suggestionsGravatar Thomas Petersson2020-11-09-6/+14
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | * fix(bot): better fallback logicGravatar Thomas Petersson2020-10-05-3/+3
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | * fix(bot): refactor of connect_statsdGravatar Thomas Petersson2020-10-05-9/+5
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | * fix(bot): redundant false checks on self.statsGravatar Thomas Petersson2020-10-05-11/+3
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | * fix(bot): Not assign stats to NoneGravatar Thomas Petersson2020-10-05-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | self.stats is referred to as bot.stats in the project, which was overlooked. This should "disable" stats until it's successfully reconnected. The retry attempts will continue until it stops throwing or fails 10x
| | | | | | | | | | | | | | | * fix(statsd): Gracefully handle gaierroGravatar Thomas Petersson2020-10-05-4/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per issue #1185 the bot might go down if the statsd client fails to connect during instantiation. This can be caused by an outage on their part, or network issues. If this happens getaddrinfo will raise a gaierror. This PR catched the error, sets self.stats to None for the time being, and handles that elsewhere. In addition a fallback logic was added to attempt to reconnect, in the off-chance it's a temporary outage
* | | | | | | | | | | | | | | | Merge branch 'master' of https://github.com/dolphingarlic/botGravatar Andi Qu2020-12-08-16/+5
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \