add message + cleanup
@@ -905,11 +905,14 @@ class Econ(commands.Cog):
if random.randint(1, 7) == 1:
return # fish up item or junk
- fish = list(self.d.fishing.fish.keys())
+ fishes = list(self.d.fishing.fish.keys())
weights = [fish_data["rarity"] for fish_data in self.d.fishing.fish.values()]
- caught = self.d.fishing.fish[random.choices(fish, weights)]
+
+ fish_id = random.choices(fishes, weights)
+ fish = self.d.fishing.fish[fish_id]
await self.db.add_item(ctx.author.id, caught["name"], None, 1)
+ await self.bot.send(ctx, f"You reeled in one {caught['name']} {self.d.emojis.fish[fish_id]}!")
@commands.command(name="pillage", aliases=["rob", "mug"])
@commands.guild_only()
