From 6d72e625582469af510c214b2092617193558a54 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 30 Jul 2023 12:15:12 -0400 Subject: [PATCH] fix: updated the rest of the commands to have value as their argument name --- galaxy/galaxy.py | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/galaxy/galaxy.py b/galaxy/galaxy.py index 2f384c0..58d7036 100644 --- a/galaxy/galaxy.py +++ b/galaxy/galaxy.py @@ -159,54 +159,54 @@ class Galaxy(commands.Cog): return embed @insurance.command() - async def miner(self, ctx: commands.Context, cost: int): + async def miner(self, ctx: commands.Context, value: int): """Calculates insurance for miners. (70%)""" - await ctx.send(embed=await self._insurance('miner', cost)) + await ctx.send(embed=await self._insurance('miner', value)) @insurance.command() - async def freighter(self, ctx: commands.Context, cost: int): + async def freighter(self, ctx: commands.Context, value: int): """Calculates insurance for freighters. (65%)""" - await ctx.send(embed=await self._insurance('freighter', cost)) + await ctx.send(embed=await self._insurance('freighter', value)) @insurance.command() - async def frigate(self, ctx: commands.Context, cost: int): + async def frigate(self, ctx: commands.Context, value: int): """Calculates insurance for frigates. (60%)""" - await ctx.send(embed=await self._insurance('frigate', cost)) + await ctx.send(embed=await self._insurance('frigate', value)) @insurance.command() - async def destroyer(self, ctx: commands.Context, cost: int): + async def destroyer(self, ctx: commands.Context, value: int): """Calculates insurance for destroyers. (55%)""" - await ctx.send(embed=await self._insurance('destroyer', cost)) + await ctx.send(embed=await self._insurance('destroyer', value)) @insurance.command() - async def cruiser(self, ctx: commands.Context, cost: int): + async def cruiser(self, ctx: commands.Context, value: int): """Calculates insurance for cruisers. (50%)""" - await ctx.send(embed=await self._insurance('cruiser', cost)) + await ctx.send(embed=await self._insurance('cruiser', value)) @insurance.command() - async def battlecruiser(self, ctx: commands.Context, cost: int): + async def battlecruiser(self, ctx: commands.Context, value: int): """Calculates insurance for battlecruisers. (40%)""" - await ctx.send(embed=await self._insurance('battlecruiser', cost)) + await ctx.send(embed=await self._insurance('battlecruiser', value)) @insurance.command() - async def battleship(self, ctx: commands.Context, cost: int): + async def battleship(self, ctx: commands.Context, value: int): """Calculates insurance for battleships. (35%)""" - await ctx.send(embed=await self._insurance('battleship', cost)) + await ctx.send(embed=await self._insurance('battleship', value)) @insurance.command() - async def dreadnought(self, ctx: commands.Context, cost: int): + async def dreadnought(self, ctx: commands.Context, value: int): """Calculates insurance for dreadnoughts. (30%)""" - await ctx.send(embed=await self._insurance('dreadnought', cost)) + await ctx.send(embed=await self._insurance('dreadnought', value)) @insurance.command() - async def carrier(self, ctx: commands.Context, cost: int): + async def carrier(self, ctx: commands.Context, value: int): """Calculates insurance for carriers. (30%)""" - await ctx.send(embed=await self._insurance('carrier', cost)) + await ctx.send(embed=await self._insurance('carrier', value)) @insurance.command() - async def supercapital(self, ctx: commands.Context, cost: int): + async def supercapital(self, ctx: commands.Context, value: int): """Calculates insurance for super capitals. (25%)""" - await ctx.send(embed=await self._insurance('super_capital', cost)) + await ctx.send(embed=await self._insurance('super_capital', value)) @commands.command(aliases=["wh"]) async def warehouse(self, ctx: commands.Context, lvlfrom: int = 1, lvlto: int = 38):