Skip to content

Commit

Permalink
0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoSa-2000 committed Jul 19, 2022
1 parent a67eda6 commit 43dec57
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,11 @@ gif = gif.get_gif()
* Cry
* Cuddle
* Dance
* Disgust
* Facedesk
* Facepalm
* Flick
* Flirt
* Handhold

WIP.
12 changes: 12 additions & 0 deletions animegifs/animegifs.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ def get_gif(self):
gif = random.choice(gifs.cuddle)
elif self.category == 'dance':
gif = random.choice(gifs.dance)
elif self.category == 'disgust':
gif = random.choice(gifs.disgust)
elif self.category == 'facedesk':
gif = random.choice(gifs.facedesk)
elif self.category == 'facepalm':
gif = random.choice(gifs.facepalm)
elif self.category == 'flick':
gif = random.choice(gifs.flick)
elif self.category == 'flirt':
gif = random.choice(gifs.flirt)
elif self.category == 'handhold':
gif = random.choice(gifs.handhold)
else:
raise Exception("Not a valid category.")
return gif
6 changes: 6 additions & 0 deletions animegifs/dis_utils/gifs.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@
cry = data['cry']
cuddle = data['cuddle']
dance = data['dance']
disgust = data['disgust']
facedesk = data['facedesk']
facepalm = data['facepalm']
flick = data['flick']
flirt = data['flirt']
handhold = data['handhold']
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
long_description = "\n" + fh.read()

LONG_DESCRIPTION = long_description
VERSION = '0.2.3'
VERSION = '0.2.4'

setup(
name='animegifs',
Expand Down

0 comments on commit 43dec57

Please sign in to comment.