def _cooldown_setcasino(self, ctx, game, seconds: int):
"""Set the cooldown period for casino games"""
author = ctx.message.author
settings = super().check_server_settings(author.server)
if game.title() not in c_games:
msg = _("This game does not exist. Please pick from: {}").format(", ".join(c_games))
else:
settings["Games"][game.title()]["Cooldown"] = seconds
time_set = self.time_format(seconds)
super().save_system()
msg = _("Setting the cooldown period for {} to {}.").format(game, time_set)
logger.info("SETTINGS CHANGED {}({}) {}".format(author.name, author.id, msg))
await self.bot.say(msg)
评论列表
文章目录