fix: updated the rest of the commands to have value as their argument name

This commit is contained in:
Seaswimmer 2023-07-30 12:15:12 -04:00
parent 274333909f
commit 6d72e62558
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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):