aboutsummaryrefslogtreecommitdiffstats
path: root/bot/pagination.py (unfollow)
Commit message (Collapse)AuthorLines
2020-03-11(Space Cog): Use `fetch_from_nasa` in every command + make modification to ↵Gravatar ks123-8/+11
it to work correctly.
2020-03-11(Space Cog): Create new helper function `create_nasa_embed` and apply this ↵Gravatar ks123-23/+23
to commands.
2020-03-11(Space Cog): Added information about when date is not specified to `.space ↵Gravatar ks123-1/+5
apod` command docstring
2020-03-11(Space Cog): Added rovers aliases to `.space mars dates` commandGravatar ks123-1/+1
2020-03-11(Space Cog): Add `.space mars dates` information to `.space mars` command ↵Gravatar ks123-1/+1
docstring
2020-03-11(Space Cog): Fix `DateConverter`'s docstringGravatar ks123-2/+2
2020-03-11(Space Cog): Add `self.rovers` using to `.space mars` command check.Gravatar ks123-2/+7
2020-03-11(Space Cog): Removed unnecessary part of `.space mars` docstring due `.space ↵Gravatar ks123-4/+0
mars dates` adding
2020-03-11(Space Cog): Added `.space mars dates` command to see what rovers is ↵Gravatar ks123-2/+9
currently available and their date ranges.
2020-03-11(Space Cog): Created task for `.mars` command rovers fetching one time in dayGravatar ks123-0/+15
2020-03-11(Space Cog): Add base URL parameter to helper function `fetch_from_nasa`Gravatar ks123-2/+3
2020-03-10(Space Cog): Removed unnecessary sentence from `.mars` command docstringGravatar ks123-1/+1
2020-03-07(Space Cog): Added optional search term to `.space nasa` command, removed ↵Gravatar ks123-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.Gravatar ks123-3/+19
2020-03-07(Space Cog): Added `invoke_without_command` parameter to `.space` command to ↵Gravatar ks123-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 ↵Gravatar ks123-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 ↵Gravatar ks123-3/+3
new command.
2020-03-07(Space Cog): Created head command `.space` and added all other commands under itGravatar ks123-5/+10
2020-03-05CI: name the use Python version taskGravatar MarkKoz-0/+1
The name is needed to be able to retrieve its output variable.
2020-03-04CI: run pre-commit hooks in CIGravatar MarkKoz-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-04Add more pre-commit hooksGravatar MarkKoz-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-04Update dependenciesGravatar MarkKoz-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 ↵Gravatar Karlis S-2/+2
get_close_matches.
2020-03-04(Games Cog): Moved `string.Template` to `str.format()`, applied changes ↵Gravatar ks123-51/+37
everywhere.
2020-03-04(Games Cog): Moved self.genres to __init__ and added type hints. Added lower ↵Gravatar ks123-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 ↵Gravatar ks123-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 ↵Gravatar ks123-1/+1
lines.
2020-03-04(Games Cog): Stop refreshing genres task when Cog unloadGravatar ks123-0/+5
2020-03-04(Games Cog): Added try block to genres refresh task.Gravatar ks123-1/+6
2020-03-04(Games Cog): Added .games refresh|r command for refreshing genres.Gravatar ks123-1/+13
2020-03-04(Games Cog): Created task for fetching genres (every hour)Gravatar ks123-2/+7
2020-03-04(Games Cog): Fixed _get_genres function looping over genres (started using ↵Gravatar ks123-5/+5
dict.items())
2020-03-04(Games Cog): Fixed get_games_list calling formatting at L192Gravatar ks123-2/+1
2020-03-02(Space Cog): Fixes with random module. Removed manual random list item ↵Gravatar ks123-5/+5
getting with random.choice
2020-03-02(Space Cog): .apod Command Fixes: Renamed default parameters constant, ↵Gravatar ks123-8/+5
changed embed title, removed HD parameter + changed img from hdurl to url.
2020-03-02(Space Cog): Renamed + fixed base URLs constantsGravatar ks123-8/+7
2020-03-02(Games Cog): Fixed companies list generating code (.games <genre> command).Gravatar ks123-3/+2
2020-03-02(Games Cog): Added comments about offsets, use keyword parameters for ↵Gravatar ks123-1/+5
get_companies_list.
2020-03-02(Games Cog): Fixed and added content to docstrings.Gravatar ks123-2/+7
2020-03-01Strip references to seasonalbot chatGravatar S. Co1-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), ↵Gravatar Karlis. S-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 ↵Gravatar Karlis. S-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 URLGravatar Karlis. S-0/+23
2020-02-29(Space Cog): Added .nasa command that show information and facts about NASA ↵Gravatar Karlis. S-0/+24
and/or space
2020-02-29(Space Cog): Created get_random_nasa_item function what will be used in ↵Gravatar Karlis. S-0/+11
(upcoming) .nasa command.
2020-02-29(Space Cog): Created .apod command that support date parameter.Gravatar Karlis. S-2/+27
2020-02-29(Space Cog): Added fetch_from_nasa function to space.py, what do request to ↵Gravatar Karlis. S-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 ↵Gravatar Karlis. S-0/+10
parameters
2020-02-29(Space Cog): Added NASA API key check on load, added loggerGravatar Karlis. S-0/+10
2020-02-29Added NASA API Key to constants.pyGravatar Karlis. S-0/+1