Skip to content

Commit

Permalink
New wide filter (#2)
Browse files Browse the repository at this point in the history
* Update docs.md

* Update changelog.md

* Update client.py
  • Loading branch information
VACEfron authored Aug 1, 2020
1 parent bb18bdd commit aacaca8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion alexflipnote/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ async def facts(self, text: str) -> Image:
return Image(url, self._session)

async def filter(self, name: str, image: str) -> Image:
options = ['blur', 'invert', 'b&w', 'deepfry', 'snow', 'gay',
options = ['blur', 'invert', 'b&w', 'deepfry', 'wide', 'snow', 'gay',
'pixelate', 'jpegify', 'magik', 'communist']
if name not in options:
raise NotFound("Filter not found. Valid options: " + ", ".join(options))
Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
See here what changed or broke each version. \
For any questions and support, you can join the [AlexFlipnote server](https://discord.gg/alexflipnote)

## 1.3.1
Added support for the new `wide` filter.

## 1.3.1
This one fixed `alexflipnote.Image.read()` raising a TypeError instead of returning BytesIO.

Expand Down
4 changes: 2 additions & 2 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Get the facts book.
### await alex_api.filter(name, image)
Put a filter on an image.

**Available options:** `blur`, `invert`, `b&w`, `deepfry`, `snow`, `gay`, `pixelate`, `jpegify`, `magik`, `communist`
**Available options:** `blur`, `invert`, `b&w`, `deepfry`, `wide`, `snow`, `gay`, `pixelate`, `jpegify`, `magik`, `communist`

**Parameters**:
- name `string` | The filter name, see **Available options**.
Expand Down Expand Up @@ -444,4 +444,4 @@ The objects you can pass to the icon param for `alex_api.achievement()` and `ale
`Icon.iron_door`, `Icon.diamond_chestplate`, `Icon.flint_and_steel`, `Icon.glass_bottle`, `Icon.splash_potion`, `Icon.creeper_spawnegg`,
`Icon.coal`, `Icon.iron_sword`, `Icon.bow`, `Icon.arrow`, `Icon.iron_chestplate`, `Icon.bucket`,
`Icon.bucket_with_water`, `Icon.bucket_with_lava`, `Icon.bucket_with_milk`, `Icon.diamond_boots`, `Icon.wooden_hoe`, `Icon.bread`,
`Icon.wooden_sword`, `Icon.bone`, `Icon.oak_log`
`Icon.wooden_sword`, `Icon.bone`, `Icon.oak_log`

0 comments on commit aacaca8

Please sign in to comment.