Ejemplo n.º 1
0
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.")
Ejemplo n.º 2
0
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.")
Ejemplo n.º 3
0
def log(message):
    return (convo.getTopic(message.author, "log") != None or newLog(message))
Ejemplo n.º 4
0
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"]))
Ejemplo n.º 5
0
async def noRune(message):
    night = convo.getTopic(message.author, "log")
    pull = getNum(message.content)
    await faith.send_message(message.channel, night.noRuneList(pull - 1))
Ejemplo n.º 6
0
async def participants(message):
    night = convo.getTopic(message.author, "log")
    await faith.send_message(message.channel,
        ppStrLst(night.raidMembers()))
    return
Ejemplo n.º 7
0
async def pullNum(message):
    night = convo.getTopic(message.author, "log")
    await faith.send_message(message.channel,
        "We did %d pulls." % len(night.pulls))
Ejemplo n.º 8
0
async def pullDesc(message):
    night = convo.getTopic(message.author, "log")
    pull = getNum(message.content)
    await faith.send_message(message.channel, night.pullDesc(pull))
Ejemplo n.º 9
0
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.")