Package: weeby.py
weeby.pyAPI Wrapper in Python for WeebyAPICheckout WeebyAPI :https://weebyapi.xyzGet your API token here :https://weebyapi.xyz/discordDiscord Bot using WeebyAPI :https://github.com/asheeeshh/Kanna-ChanInstallationpipinstallweeby.pyUsing JSON Response methodimportweebymy_weeby=weeby.Weeby('your_weebyAPI_token_goes_here')# Random Message# types available -> 8ball, belikebill, dadjoke, geography, joke, roastmy_weeby.get_json_response().random(type="roast")# Returns String# Random Animal Image# types available -> bird, bunny, cat, dog, fox, goose, kangaroo, koala, lizard, pandamy_weeby.get_json_response().animal_image(type="cat")# Returns Image URL# Random Meme from SubReddit# types available -> meme, memes, wholesome, dankmy_weeby.get_json_response().meme(type="meme")# Returns List with Image URL and PermaLink# Random Word# types available -> random, halloween, christmas, listmy_weeby.get_json_response().word(type="random")# Returns random word or list of words# Lyricsmy_weeby.get_json_response().lyrics(track="6 months by john k")# Returns Lyrics of the song (JSON Response)# WeebyAPI Statsmy_weeby.get_json_response().stats()# Return JSON with stats of WeebyAPIUsing Image Effect MethodimportweebyfromPILimportImagefromioimportBytesIOmy_weeby=weeby.Weeby('your_weebyAPI_token_goes_here')# General Effects'''Types available -> blur, contrast, edge, greyscale, invert, pixelize, sepia, sharpen,silhouette, threshold, blurple, invertedthreshold, invertedgreyscaleReturns Image BufferImage type -> .png/.jpg/.gif'''image=my_weeby.apply_effect().general(image_url="your_image_url",type="greyscale")im=Image.open(BytesIO(image))im.save("generated.png")# Intensity Effects'''Types avaialable -> brightness, darkness, distortReturns Image BufferImage type -> .png/.jpg/.gif'''image=my_weeby.apply_effect().intensity(image_url="your_image_url",type="darkness",intensity=50)im=Image.open(BytesIO(image))im.save("generated.png")# Level Effects'''Types avaialable -> fisheye, desaturateReturns Image BufferImage type -> .png/.jpg/.gif'''image=my_weeby.apply_effect().intensity(image_url="your_image_url",type="desaturate",level=10)im=Image.open(BytesIO(image))im.save("generated.png")# Resize Image (Limit: 1-2000 for both width and height)'''Returns Image BufferImage type -> .png/.jpg/.gif'''image=my_weeby.apply_effect().intensity(image_url="your_image__url",width=200,height=200)im=Image.open(BytesIO(image))im.save("generated.png")Using Overlays MethodimportweebyfromPILimportImagefromioimportBytesIOmy_weeby=weeby.Weeby('your_weebyAPI_token_goes_here')'''Types of Overlays available :approved, bazinga, caution, christmas, easter, fire, glass,halloween, hearts, jail, rainbow, rejected, simp, snow, thuglife, balance, brilliance, braveryImage Type: .jpg/.png/.gifReturns: Image Buffer (Asset)'''image=my_weeby.set_overlay().overlay(image_url="your_image_url"type="jail")im=Image.open(BytesIO(image))im.save("generated.png)GIF Methodimportweeby'''Types of GIF available: akko, angry, baka, bath, boom, boop, beer, bite, blush, bonk, bored,cheer, chase, clap, confused, cookie, cringe, cry, cuddle, dab, dance, facepalm, feed, flower,fly, gabriel, glomp, grin, happy, hate, handhold, highfive, hug, icecream, kick, kiss, laugh, lick,love, lurk, miyano, nervous, no, nom, nuzzle, panic, pat, pikachu, poke, pout, punch, rawr,run, sagiri, shrug, sip, slap, sleepy, smug, stare, sword, tease, teleport, think, throw,thumbs, tickle, triggered, wag, wave, wedding, wink, yes, zerotwoReturns : GIF URL'''my_weeby.get_gif().gif(type="baka")Generator Methodimportweebymy_weeby=weeby.Weeby('your_weebyAPI_token_goes_here')# One Image'''Types Available: 3000years, airpods, amiajoke, bad, beautiful,berniemittens, bobross, challenger, delet, dexter, fear, garbage, heman, jokeoverhead, painting, patrick, photograph, picture, respect, sacred, thumbs, tobecontinued, truth, wanted, wedontdothathere, whodidthis, worthless, leonardopointing, jojoshock, hot, soraselfie, helivesinyou, stonks, mycollectiongrows, tableflip, tattoo, leonardoglass, standingkitty, rickripswall, wynaut, berniefinancialsupport, vsaucecomputer, waitthatsillegalImage type: .gif/.png/.jpgReturns: Image Buffer'''buffer=my_weeby.generate().one_image(type="",url="")# Two Images'''Types Available: batslap, bed, crush, cuddle, dwightscared, hug, nani, peterglasses, samepicture, ship, whowouldwin, expectreality, amogusImage Type: .gif/.png/.jpgReturns: Image Buffer'''buffer=my_weeby.generate().two_image(type="",url1="",url2="")# Text'''Types Available: belikebill, clyde, hollywoodstarReturns: Image Buffer'''buffer=my_weeby.generate().text(type="",text="")# Two Text'''Types Available: drakeposting, spiderman, twobuttons, tuxedopooh, icarlyReturns: Image Buffer'''buffer=my_weeby.generate().two_text(type="",text1="",text2="")# Image & Text'''Types Avilable: achievement, bartchalkboard, changemymind, lisapresentation, jimwhiteboardReturns: Image Buffer'''buffer=my_weeby.generate().image_text(type="",url="",text="")# Eject'''url: link to the image -> .gif/.png/.jpgtext: name/username of the useroutcome: imposter/notimposter/ejectedReturns: Image Buffer'''buffer=my_weeby.generate().eject(url="",text="",outcome="")# Friendship'''url1: link to first image -> .gif/.png/.jpgurl2: link to second image -> .gif/.png/.jpgtext1: name of first usertext2: name of second userReturns: Image Buffer'''buffer=my_weeby.generate().friendship(url1="",url2="",text1="",text2="")# Demotivational'''url: link to image -> .gif/.png/.jpgtitle: title -> strtext: text -> strReturns: Image Buffer'''buffer=my_weeby.generate().demotivational(url="",title="",text="")# RIP'''url: link to image -> .gif/.png/.jpgname: name of the usermessage: text to displayReturns: Image Buffer'''buffer=my_weeby.generate().rip(url="",name="",message="")# Tweet'''url: link to image -> /gif/.png/.jpgname: name of the usertext: text to displayReturns: Image Buffer'''buffer=my_weeby.generate().tweet(url="",name="",text="")# Tweet Fetch'''name: name of the usertext: text to displayReturns: Image Buffer'''buffer=my_weeby.generate().tweet_fetch(name="",text="")# Triggered'''url: link to image -> .gif/.png/.jpgtint: bool -> True/FalseReturns: Image Buffer (gif)'''buffer=my_weeby.generate().triggered(url="",tint=True)# Currency'''type: type of currency | dollar, euro, pound, yenamount: amount -> intReturns: Image Buffer'''buffer=my_weeby.generate().currency(type="",amount=10)# Color'''hex: hex code of color without the '#'Returns: Image Buffer'''buffer=my_weeby.generate().color(hex="")# This is Spotify'''url: link to image -> .gif/.png/.jpghex: hex code of color without the '#'text: text to displayReturns: Image Buffer'''buffer=my_weeby.generate().spotify(url="",hex="",text="")# Spotify Now Playing'''url: link to image -> .gif/.png/.jpgtitle: title of songartist: artist namealbum: album nameReturns: Image Buffer'''buffer=my_weeby.generate().spotifynp(url="",title="",artist="",album="")Ending NoteConsider leaving a ⭐ if you found this library helpful.Follow mehereContributions to the project are most welcome!Feel free to fork this repo and contribute.Thank You!