Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Rishiraj0100/discoutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)