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.1.0.tar.gz
(5.5 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.1.0.tar.gz.
File metadata
- Download URL: randseal-3.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90239533cec8e214289b87fce06d1bbd9728ac803bbd7aa49a96aba2c5345683
|
|
| MD5 |
7ce2bb3f2d67d1c25040ce836e4adbb7
|
|
| BLAKE2b-256 |
7dc7ebbe2269b7f6f7dc1ae72e029723b7dc932ce7b5da932a83769d967a9d3d
|
File details
Details for the file randseal-3.1.0-py3-none-any.whl.
File metadata
- Download URL: randseal-3.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00a5db06dc58a68c71ac17900d65ee79c6b0908f70fa58d94a8ea7cb32014ec3
|
|
| MD5 |
a9dd1cec2b217cb44d102f9126bf7787
|
|
| BLAKE2b-256 |
3636234f74bd0a027dd465927afe9f3a7040a014ebdcd805317aac42d302f666
|