Skip to content

Commit

Permalink
Updated to version 3.3.0, converted width/heights to int to match mat…
Browse files Browse the repository at this point in the history
…rix spec
  • Loading branch information
TomCasavant committed Sep 29, 2023
1 parent fc5e0ab commit 8750ae6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions giphy.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ async def handler(self, evt: MessageEvent, search_term: str) -> None:
try:
gif_link = data["data"]["images"]["original"]["url"]
info = {}
info["width"] = data["data"]["images"]["original"]["width"]
info["height"] = data["data"]["images"]["original"]["height"]
info["width"] = int(data["data"]["images"]["original"]["width"])
info["height"] = int(data["data"]["images"]["original"]["height"])
info["mime"] = "image/gif" # this shouldn't really change
except Exception as e:
await evt.respond("Blip bloop... Something is wrecked up here!")
Expand Down Expand Up @@ -109,8 +109,8 @@ async def handler(self, evt: MessageEvent, search_term: str) -> None:
)["gif"]
gif_link = gif["url"]
info = {}
info["width"] = gif["dims"][0]
info["height"] = gif["dims"][1]
info["width"] = int(gif["dims"][0])
info["height"] = int(gif["dims"][1])
info["mime"] = "image/gif" # this shouldn't really change
except Exception as e:
await evt.respond("Blip bloop... Something is wrecked up here!")
Expand Down
2 changes: 1 addition & 1 deletion maubot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ maubot: 0.1.0
id: casavant.tom.giphy

# A PEP 440 compliant version string.
version: 3.2.1
version: 3.3.0

# The SPDX license identifier for the plugin. https://spdx.org/licenses/
# Optional, assumes all rights reserved if omitted.
Expand Down

0 comments on commit 8750ae6

Please sign in to comment.