asfensunny.blogg.se

Petthe gif maker
Petthe gif maker






petthe gif maker

seek ( 0 ) # set the file pointer back to the beginning so it doesn't upload a blank file. ps: save the exported gif if you want to share it, using the link won't work cus it only exists in your browser gifs are generated using gif.js.

petthe gif maker

reply ( 'Please use a custom emoji or tag a member to petpet their avatar.' ) return source = BytesIO ( image ) # file-like container to hold the emoji in memory dest = BytesIO () # container to store the petpet gif in memory petpetgif. read () # retrieve the image bytes else : await ctx. read () # retrieve the image bytes elif type ( image ) = discord. command () async def pet ( ctx, image : Optional ]): if type ( image ) = discord. event async def on_ready (): print ( 'Bot is ready.' ). getenv ( 'DISCORD_BOT_TOKEN' ) client = commands. Videogames, social networks, photo editors, avatar makers. make ( 'test.png', 'out.gif' )ĭiscord.py example: import os import discord from discord.ext import commands from dotenv import load_dotenv from io import BytesIO from typing import Union, Optional from petpetgif import petpet as petpetgif load_dotenv () token = os. dog designer that develops stunning personalized emojis, stickers and gifs for pets. (This parameter correspondsĪnd is passed to the () method.)īasic example: from petpetgif import petpet petpet. (This parameter correspondsĪnd is passed to the () method.)ĭest: A filename (string), pathlib.Path object or a file object. Source: A filename (string), pathlib.Path object or a file object.

petthe gif maker

Usage: from petpetgif import petpet petpet.








Petthe gif maker