Generates a random seal image for discord.py or py-cord
Project description
randseal
Simple package that can produce a seal image. The image is then output as a discord.File or discord.Embed for discord.py or py-cord.
Usage example. Bot can be a commands.Bot in discord.py or a discord.Bot in py-cord.
import randseal
import discord
bot = discord.Bot(intents=discord.Intents.default())
client = randseal.Client()
@bot.command()
async def sealimg(ctx):
file=await client.asyncFile()
await ctx.respond(file=file)
@bot.command()
async def sealembed(ctx):
await ctx.respond(embed=client.Embed())
bot.run("token")
This package also contains several utility functions for making discord bots.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
randseal-3.2.0.tar.gz
(7.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file randseal-3.2.0.tar.gz.
File metadata
- Download URL: randseal-3.2.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2313a6137b4bd88800bff436c940e33a92d79147989f09bd56d26d64e05529a5
|
|
| MD5 |
645292e1b4fb88b091b7ca5d2784eab3
|
|
| BLAKE2b-256 |
5cfcbf889531f0a4e5d3f890bf49174bb68056aa3acb6d3072bcd60275797b0d
|
File details
Details for the file randseal-3.2.0-py3-none-any.whl.
File metadata
- Download URL: randseal-3.2.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20970c87ee913258d2ead1a739415a086fc9d9d8b7b5203fdcfd72a3a586c540
|
|
| MD5 |
d12cf8d2808c550330781e463dcd3e66
|
|
| BLAKE2b-256 |
d8c421068fdbe38e358212aebcc13206a2caa01d7fffccd04e786ae29d45d67e
|