This commit is contained in:
NikolajDanger
2022-05-17 11:38:23 +02:00
parent 918bc959aa
commit 6cf1741d84
3 changed files with 17 additions and 41 deletions

View File

@ -32,7 +32,7 @@ class MiscCog(commands.Cog):
@cog_ext.cog_slash(**params["help"])
async def help_command(self, ctx: SlashContext, command=""):
"""Get help for commands."""
await self.bot.other.helpFunc(ctx, command)
await self.bot.other.help_func(ctx, command)
@cog_ext.cog_slash(**params["thank"])
async def thank(self, ctx: SlashContext):
@ -42,37 +42,37 @@ class MiscCog(commands.Cog):
@cog_ext.cog_slash(**params["hello"])
async def hello(self, ctx: SlashContext):
"""Greet the bot."""
await self.bot.other.helloFunc(ctx)
await self.bot.other.hello_func(ctx)
@cog_ext.cog_slash(**params["roll"])
async def roll(self, ctx: SlashContext, dice="1d20"):
"""Roll dice."""
await self.bot.other.rollDice(ctx, dice)
await self.bot.other.roll_dice(ctx, dice)
@cog_ext.cog_slash(**params["image"])
async def image(self, ctx: SlashContext):
"""Get a random image from Bing."""
await self.bot.other.imageFunc(ctx)
await self.bot.other.image_func(ctx)
@cog_ext.cog_slash(**params["movie"])
async def movie(self, ctx: SlashContext):
"""Get a random movie from the Plex server."""
await self.bot.other.movieFunc(ctx)
await self.bot.other.movie_func(ctx)
@cog_ext.cog_slash(**params["name"])
async def name(self, ctx: SlashContext):
"""Generate a random name."""
await self.generators.nameGen(ctx)
await self.generators.name_gen(ctx)
@cog_ext.cog_slash(**params["tavern"])
async def tavern(self, ctx: SlashContext):
"""Generate a random tavern name."""
await self.generators.tavernGen(ctx)
await self.generators.tavern_gen(ctx)
@cog_ext.cog_slash(**params["wiki"])
async def wiki(self, ctx: SlashContext, wiki_page=""):
"""Get a page on a fandom wiki."""
await self.bot.other.findWikiPage(ctx, page)
await self.bot.other.find_wiki_page(ctx, wiki_page)
@cog_ext.cog_slash(**params["add_movie"])
async def add_movie(self, ctx: SlashContext, movie):

Binary file not shown.

Before

Width:  |  Height:  |  Size: 697 KiB

After

Width:  |  Height:  |  Size: 586 KiB