Skip to main content

Some utilities for discord.py. Making Discord bot development easier.

Project description

discoutils

discoutils is a module that helps discord bot development easy

installation

pip install discoutils

Help Commands

There are two help commands currently but soon there will be more.

MinimalEmbedHelp

MinimalEmbedHelp.png

import discord
from discord.ext import commands
from discoutils import MinimalEmbedHelp

bot = commands.Bot(command_prefix=".", help_command=MinimalEmbedHelp())

DefaultEmbedHelp

DefaultEmbedHelp.png

import discord
from discord.ext import commands
from discoutils import DefaultEmbedHelp

bot = commands.Bot(command_prefix=".", help_command=DefaultEmbedHelp())

Random Functions

There are only 3 functions for now we will be adding more functions soon

Random Colors For Embeds

randomColor()

Example:

import discord
from discord.ext import commands
from discoutils import random_things

# test embed

@bot.command()
async def test(ctx):
    embed = discord.Embed(title = 'test',description='test',color=random_things.randomColor())
    await ctx.send(embed=embed)

Random Dog Images

random_dog()

Example:

import discord
from discord.ext import commands
from discoutils import random_things

# test embed

@bot.command()
async def test(ctx):
    embed = discord.Embed(title = 'test',description='test')
    embed.set_image(url=random_things.random_dog())
    await ctx.send(embed=embed)

Random Cat Images

random_cat()

Example:

import discord
from discord.ext import commands
from discoutils import random_things

# test embed

@bot.command()
async def test(ctx):
    embed = discord.Embed(title = 'test',description='test')
    embed.set_image(url=random_things.random_cat())
    await ctx.send(embed=embed)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discoutils-0.0.3.4.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

discoutils-0.0.3.4-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page