disallow people from viewing the balances of other bots
@@ -61,6 +61,13 @@ class Econ(commands.Cog):
if user is None:
user = ctx.author
+ if user.bot:
+ if user.id == self.bot.user.id:
+ await self.bot.send(ctx, 'Villager Bot has wayyyyy too many emeralds to show!')
+ else:
+ await self.bot.send(ctx, 'Bot don\'t have rights and therefore can\'t have emeralds or stuff.')
+ return
+
db_user = await self.db.fetch_user(user.id)
u_items = await self.db.fetch_items(user.id)
