示例#1
0
async def cheatt_(bot: Bot, event: Event):
    if event.is_tome():
        print("YES")
    if event.is_tome() and int(event.get_user_id()) != event.self_id:
        mysay = event.get_message()
        mysay = await get_n(str(mysay))
        await bot.send(event=event, message=mysay)
示例#2
0
async def deal_strong_emotion(bot: Bot, event: Event):
    if random.random() > sv.get_config('YYGQ_RATE', event):
        return
    if random.random() < 0.7:
        await bot.send(event,
                       random.choice(STRONG_EMOTION_ANSWERS),
                       at_sender=event.is_tome())
    else:
        await bot.send(event,
                       random.choice(UNIVERSAL_ANSWERS),
                       at_sender=event.is_tome())
示例#3
0
async def deal_question(bot: Bot, event: Event):
    if random.random() > sv.get_config('YYGQ_RATE', event):
        return
    if random.random() < 0.5:
        await bot.send(event,
                       random.choice(QUESTION_ANSWERS),
                       at_sender=event.is_tome())
    else:
        await bot.send(event,
                       random.choice(UNIVERSAL_ANSWERS),
                       at_sender=event.is_tome())
示例#4
0
async def deal_normal(bot: Bot, event: Event):
    if random.random() > sv.get_config('YYGQ_RATE', event):
        return
    await bot.send(event,
                   random.choice(UNIVERSAL_ANSWERS),
                   at_sender=event.is_tome())