async def potCount(message): pull = getNum(message.content) night = convo.getTopic(message.author, "log") await faith.send_message(message.channel, "Counting the potion usage for pull #%d..." % pull) for s in night.potionCountOutput(pull - 1): await faith.send_message(message.channel, s) await faith.send_message(message.channel, "That's all.")
async def potStats(message): night = convo.getTopic(message.author, "log") reply = random.choice(["Please give me a second.", "Working on it!"]) await faith.send_message(message.channel, reply) for s in await night.buffStats(Log.potions): await faith.send_message(message.channel, s) await faith.send_message(message.channel, "That's all.")
def log(message): return (convo.getTopic(message.author, "log") != None or newLog(message))
def musicBot(message): return (convo.getTopic(message.author, "music") != None or playSong(message) or any(key in message.content.lower() for key in ["music", "song"]))
async def noRune(message): night = convo.getTopic(message.author, "log") pull = getNum(message.content) await faith.send_message(message.channel, night.noRuneList(pull - 1))
async def participants(message): night = convo.getTopic(message.author, "log") await faith.send_message(message.channel, ppStrLst(night.raidMembers())) return
async def pullNum(message): night = convo.getTopic(message.author, "log") await faith.send_message(message.channel, "We did %d pulls." % len(night.pulls))
async def pullDesc(message): night = convo.getTopic(message.author, "log") pull = getNum(message.content) await faith.send_message(message.channel, night.pullDesc(pull))
async def refreshLog(message): nID = convo.getTopic(message.author, "log").nightID convo.setTopic(message.author, "log", Log.Night(nID)) await faith.send_message(message.channel, "Done refreshing.")