Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

randseal

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

randseal

Generates random seal images for discord.py or py-cord

pipPyPI
Version
3.3.1
Maintainers
1

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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts