def steal(self, ctx, user: discord.Member=None):
"""Steal cookies from another user. 2h cooldown."""
author = ctx.message.author
server = author.server
action = "Steal CD"
settings = self.check_server_settings(author.server)
self.account_check(settings, author)
if user is None:
user = self.random_user(settings, author, server)
if user == "Fail":
pass
elif user.bot:
return await self.bot.say("Stealing failed because the picked target is a bot.\nYou "
"can retry stealing again, your cooldown is not consumed.")
if await self.check_cooldowns(author.id, action, settings):
msg = self.steal_logic(settings, user, author)
await self.bot.say("?(=(|) ? (|)=)? Neko-chan is on the prowl to steal :cookie:")
await asyncio.sleep(4)
await self.bot.say(msg)
评论列表
文章目录