🧹 More refactoring
This commit is contained in:
@ -50,7 +50,7 @@ class BlackjackCog(commands.Cog):
|
||||
@cog_ext.cog_subcommand(**params["blackjack_bet"])
|
||||
async def blackjack_bet(self, ctx, bet):
|
||||
"""Enter the game of blackjack with a bet."""
|
||||
await self.bot.games.blackjack.enterGame(ctx, bet)
|
||||
await self.bot.games.blackjack.enter_game(ctx, bet)
|
||||
|
||||
@cog_ext.cog_subcommand(**params["blackjack_stand"])
|
||||
async def blackjack_stand(self, ctx, hand=""):
|
||||
|
@ -15,7 +15,7 @@ class MiscCog(commands.Cog):
|
||||
self.bot = bot
|
||||
self.bot.remove_command("help")
|
||||
self.generators = bot.other.generators
|
||||
self.bedre_netflix = bot.other.bedre_netflix
|
||||
self.plex = bot.other.plex
|
||||
self.nerd_shit = bot.other.nerd_shit
|
||||
|
||||
@cog_ext.cog_slash(**params["ping"])
|
||||
@ -76,17 +76,17 @@ class MiscCog(commands.Cog):
|
||||
@cog_ext.cog_slash(**params["add_movie"])
|
||||
async def add_movie(self, ctx, movie):
|
||||
"""Search for a movie and add it to the Plex server."""
|
||||
await self.bedre_netflix.requestMovie(ctx, movie)
|
||||
await self.plex.request_movie(ctx, movie)
|
||||
|
||||
@cog_ext.cog_slash(**params["add_show"])
|
||||
async def add_show(self, ctx, show):
|
||||
"""Search for a show and add it to the Plex server."""
|
||||
await self.bedre_netflix.requestShow(ctx, show)
|
||||
await self.plex.request_show(ctx, show)
|
||||
|
||||
@cog_ext.cog_slash(**params["downloading"])
|
||||
async def downloading(self, ctx, parameters="-d"):
|
||||
"""Get the current downloading torrents."""
|
||||
await self.bedre_netflix.downloading(ctx, parameters)
|
||||
await self.plex.downloading(ctx, parameters)
|
||||
|
||||
@cog_ext.cog_slash(**params["wolf"])
|
||||
async def wolf(self, ctx, query):
|
||||
|
Reference in New Issue
Block a user