Restore the gates on images running fix docker hub path for image Drop down one version on teh build plugin Drop down one version on teh build plugin Drop down one version on teh build plugin force test the build and push workflow fix image tag in ci/cd Set push to true on workflow fix argo command making a small change to get the pipeline to run tsting argocd action Test the filters workflow Test the filters workflow test check if python was changed check if python was changed Indent build block Trying more ci/cd shit Trying more ci/cd shit Trying more ci/cd shit Trying more ci/cd shit Trying more ci/cd shit Trying more ci/cd shit Trying more ci/cd shit tryin more shit more ci/cd testing more ci/cd testing commiting an obvious bad python change to see if CI/CD bails testing testing testing testing testing testing Testing workflow
46 lines
1.3 KiB
Python
Executable File
46 lines
1.3 KiB
Python
Executable File
from discord.ext import commands
|
|
import discord
|
|
import animals
|
|
|
|
|
|
class AnimalFunctions(commands.Cog):
|
|
def __init__(self, bot):
|
|
self.bot: commands.Bot = bot
|
|
|
|
@commands.slash_command(
|
|
guild_ids=None, name="redpanda", description="Posts a photo of a redpanda"
|
|
)
|
|
async def redpanda(self, ctx: commands.Context):
|
|
await ctx.respond(animals.get_red_panda())
|
|
|
|
@commands.slash_command(
|
|
guild_ids=None, name="dog", description="Posts a photo of a Dog"
|
|
)
|
|
async def dog(self, ctx: commands.Context):
|
|
await ctx.respond(animals.get_dog())
|
|
|
|
@commands.slash_command(
|
|
guild_ids=None, name="sheeb", description="Posts a photo of a Sheeb"
|
|
)
|
|
async def sheeb(self, ctx: commands.Context):
|
|
await ctx.respond(animals.random_sheeb())
|
|
|
|
@commands.slash_command(
|
|
guild_ids=None, name="cowboy", description="Posts a photo of a bad dog"
|
|
)
|
|
async def cowboy(self, ctx: commands.Context):
|
|
await ctx.respond(animals.cowboy())
|
|
|
|
@commands.slash_command(
|
|
guild_ids=None,
|
|
name="dale",
|
|
description="Posts a photo of the goodest boy. Rest in power king",
|
|
)
|
|
async def dale(self, ctx: commands.Context):
|
|
await ctx.defer()
|
|
await ctx.send_followup(file=discord.File(animals.dale()))
|
|
|
|
|
|
def setup(bot):
|
|
bot.add_cog(AnimalFunctions(bot))
|