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
import discord
from discord.ext import commands
from discoutils import MinimalEmbedHelp
bot = commands.Bot(command_prefix=".", help_command=MinimalEmbedHelp())
DefaultEmbedHelp
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 details)
Built Distribution
File details
Details for the file discoutils-0.0.3.4.tar.gz
.
File metadata
- Download URL: discoutils-0.0.3.4.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e8b61bcc9332127a6dda45c42af5976388f5e00f9d194719a5fb43a5c3792ce |
|
MD5 | 477902f89739c05371e531bfd3f0c3d6 |
|
BLAKE2b-256 | 224a5952e4a033ccc63b1046c999e4ee6ca8d271d391485e4f774b3e5f9f5281 |
File details
Details for the file discoutils-0.0.3.4-py3-none-any.whl
.
File metadata
- Download URL: discoutils-0.0.3.4-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6110d0b57638c09ad9a37ea07dfca398da18edeb206f156e54ed4b8ddd04ad6c |
|
MD5 | 6024f36cf84f8edab482e142afbcfee2 |
|
BLAKE2b-256 | f6d768faaad62edd2179ac9cbd60002a7e163260cb031df71aa72f87b98d5542 |