| Commit message (Collapse) | Author | Lines | ||
|---|---|---|---|---|
| 2020-03-11 | (Space Cog): Use `fetch_from_nasa` in every command + make modification to ↵ | -8/+11 | ||
| it to work correctly. | ||||
| 2020-03-11 | (Space Cog): Create new helper function `create_nasa_embed` and apply this ↵ | -23/+23 | ||
| to commands. | ||||
| 2020-03-11 | (Space Cog): Added information about when date is not specified to `.space ↵ | -1/+5 | ||
| apod` command docstring | ||||
| 2020-03-11 | (Space Cog): Added rovers aliases to `.space mars dates` command | -1/+1 | ||
| 2020-03-11 | (Space Cog): Add `.space mars dates` information to `.space mars` command ↵ | -1/+1 | ||
| docstring | ||||
| 2020-03-11 | (Space Cog): Fix `DateConverter`'s docstring | -2/+2 | ||
| 2020-03-11 | (Space Cog): Add `self.rovers` using to `.space mars` command check. | -2/+7 | ||
| 2020-03-11 | (Space Cog): Removed unnecessary part of `.space mars` docstring due `.space ↵ | -4/+0 | ||
| mars dates` adding | ||||
| 2020-03-11 | (Space Cog): Added `.space mars dates` command to see what rovers is ↵ | -2/+9 | ||
| currently available and their date ranges. | ||||
| 2020-03-11 | (Space Cog): Created task for `.mars` command rovers fetching one time in day | -0/+15 | ||
| 2020-03-11 | (Space Cog): Add base URL parameter to helper function `fetch_from_nasa` | -2/+3 | ||
| 2020-03-10 | (Space Cog): Removed unnecessary sentence from `.mars` command docstring | -1/+1 | ||
| 2020-03-07 | (Space Cog): Added optional search term to `.space nasa` command, removed ↵ | -6/+11 | ||
| random page due no way to fetch how much pages is really there with specific search term. | ||||
| 2020-03-07 | (Space Cog): Added date parameter to `.space epic` command. | -3/+19 | ||
| 2020-03-07 | (Space Cog): Added `invoke_without_command` parameter to `.space` command to ↵ | -1/+1 | ||
| not call head command when trying to use subcommand. | ||||
| 2020-03-07 | (Space Cog): Improved `.space mars` command, added possibility for SOL date ↵ | -13/+42 | ||
| and way to change rover. Added custom converter for SOL and standard date. | ||||
| 2020-03-07 | (Space Cog): Renamed `.space earth` command to `.space epic` for upcoming ↵ | -3/+3 | ||
| new command. | ||||
| 2020-03-07 | (Space Cog): Created head command `.space` and added all other commands under it | -5/+10 | ||
| 2020-03-05 | CI: name the use Python version task | -0/+1 | ||
| The name is needed to be able to retrieve its output variable. | ||||
| 2020-03-04 | CI: run pre-commit hooks in CI | -44/+63 | ||
| Pre-commit creates its own environment in which it installs hooks. To speed up runs, the pipeline will cache this for use with future jobs. The cache will update if .pre-commit-config.yaml changes. The flake8 pre-commit hook invokes flake8 via `pipenv run flake8`. It's normally useful to use pipenv here cause it ensures flake8 is invoked within the context of the venv. However, in CI, there is no venv - dependencies are installed directly to the system site-packages. `pipenv run` does not work in such case because it tries to create a new venv if one doesn't exist (it doesn't consider the system interpreter to be a venv). This workaround (okay, it's a hack) creates an executable shell script which replaces the original pipenv binary. The shell script simply ignores the first argument (i.e. ignores `run` in `pipenv run`) and executes the rest of the arguments as a command. It essentially makes `pipenv run flake8` equivalent to just having ran `flake8`. When pre-commit executes pipenv, the aforementioned script is what will run. * Re-format indentation of azure-pipelines.yml | ||||
| 2020-03-04 | Add more pre-commit hooks | -100/+113 | ||
| Hooks added: * check-merge-conflict - checks for files with merge conflict strings * check-toml - attempts to load all toml files to verify syntax * check-yaml - attempts to load all yaml files to verify syntax * end-of-file-fixer - ensures files end in a newline and only a newline * mixed-line-ending - replaces mixed line endings with LF * trailing-whitespace - trims trailing whitespace * python-check-blanket-noqa - enforces that noqa annotations always occur with specific codes Changes made to comply with new hooks: * Remove trailing whitespaces * Convert some CRLF files to LF * Remove noqa and add missing type annotations * Add missing newlines at end of files See: python-discord/organisation#138 | ||||
| 2020-03-04 | Update dependencies | -290/+317 | ||
| The pipfile will need to be re-locked to add a dependency so may as well re-pin some dependencies to reflect the more recent versions that will be used. discord.py was pinned to a patch version instead of a minor version to be on the safe side. Notable updates: * discord.py -> 1.3.2 * flake8-annotation -> 2.0 * pre-commit -> 2.1 | ||||
| 2020-03-04 | (Games Cog): Added space between game search result + removed cutoff in ↵ | -2/+2 | ||
| get_close_matches. | ||||
| 2020-03-04 | (Games Cog): Moved `string.Template` to `str.format()`, applied changes ↵ | -51/+37 | ||
| everywhere. | ||||
| 2020-03-04 | (Games Cog): Moved self.genres to __init__ and added type hints. Added lower ↵ | -3/+3 | ||
| `difflib.get_close_matches` cutoff from 0.6 (default) to 0.4. | ||||
| 2020-03-04 | (Games Cog): Replaced - with space in genre aliases, added multiword genres ↵ | -9/+10 | ||
| support for .games command, modified docstring to explain this and added str.title() to embed title genre showing. | ||||
| 2020-03-04 | (Games Cog): Remove too much empty lines in .games search command, simplify ↵ | -1/+1 | ||
| lines. | ||||
| 2020-03-04 | (Games Cog): Stop refreshing genres task when Cog unload | -0/+5 | ||
| 2020-03-04 | (Games Cog): Added try block to genres refresh task. | -1/+6 | ||
| 2020-03-04 | (Games Cog): Added .games refresh|r command for refreshing genres. | -1/+13 | ||
| 2020-03-04 | (Games Cog): Created task for fetching genres (every hour) | -2/+7 | ||
| 2020-03-04 | (Games Cog): Fixed _get_genres function looping over genres (started using ↵ | -5/+5 | ||
| dict.items()) | ||||
| 2020-03-04 | (Games Cog): Fixed get_games_list calling formatting at L192 | -2/+1 | ||
| 2020-03-02 | (Space Cog): Fixes with random module. Removed manual random list item ↵ | -5/+5 | ||
| getting with random.choice | ||||
| 2020-03-02 | (Space Cog): .apod Command Fixes: Renamed default parameters constant, ↵ | -8/+5 | ||
| changed embed title, removed HD parameter + changed img from hdurl to url. | ||||
| 2020-03-02 | (Space Cog): Renamed + fixed base URLs constants | -8/+7 | ||
| 2020-03-02 | (Games Cog): Fixed companies list generating code (.games <genre> command). | -3/+2 | ||
| 2020-03-02 | (Games Cog): Added comments about offsets, use keyword parameters for ↵ | -1/+5 | ||
| get_companies_list. | ||||
| 2020-03-02 | (Games Cog): Fixed and added content to docstrings. | -2/+7 | ||
| 2020-03-01 | Strip references to seasonalbot chat | -15/+12 | ||
| Redirect any output to seasonalbot commands, where relevant | ||||
| 2020-02-29 | (Space Cog): Modified base URLs (removed slash at end, added to queries), ↵ | -11/+14 | ||
| modified .mars command result check, some very small fixes. | ||||
| 2020-02-29 | (Space Cog): Added .mars command, removed get_random_nasa_command (no need ↵ | -11/+35 | ||
| for it) and moved all what this do to .nasa command. | ||||
| 2020-02-29 | (Space Cog): Added .earth command, created new base URL: NASA Epic API base URL | -0/+23 | ||
| 2020-02-29 | (Space Cog): Added .nasa command that show information and facts about NASA ↵ | -0/+24 | ||
| and/or space | ||||
| 2020-02-29 | (Space Cog): Created get_random_nasa_item function what will be used in ↵ | -0/+11 | ||
| (upcoming) .nasa command. | ||||
| 2020-02-29 | (Space Cog): Created .apod command that support date parameter. | -2/+27 | ||
| 2020-02-29 | (Space Cog): Added fetch_from_nasa function to space.py, what do request to ↵ | -0/+8 | ||
| NASA API and support arguments endpoint and params. | ||||
| 2020-02-29 | (Space Cog): Added NASA API base URL and .apod command HTTP request default ↵ | -0/+10 | ||
| parameters | ||||
| 2020-02-29 | (Space Cog): Added NASA API key check on load, added logger | -0/+10 | ||
| 2020-02-29 | Added NASA API Key to constants.py | -0/+1 | ||