Ejemplo n.º 1
0
async def cmd6_(bot: Bot, event: Event):
    if int(event.get_user_id()) != event.self_id:
        path_ = os.getcwd()
        path_ = path_ + '\yuyinbao\。哎呀好的啦 小哥哥不要生气了嘛.mp3'
        mypath = 'file:///' + path_
        print(mypath)
        sst = MessageSegment.record(file=str(mypath))
        await bot.send(event=event, message=Message(sst))
Ejemplo n.º 2
0
async def cmd50_(bot: Bot, event: Event):
    if int(event.get_user_id()) != event.self_id:
        path_ = os.getcwd()
        path_ = path_ + '\yuyinbao\你个大叔,怎么那么坏,老是要看这看那的.mp3'
        mypath = 'file:///' + path_
        print(mypath)
        sst = MessageSegment.record(file=str(mypath))
        await bot.send(event=event, message=Message(sst))
Ejemplo n.º 3
0
async def cmd27_(bot: Bot, event: Event):
    if int(event.get_user_id()) != event.self_id:
        path_ = os.getcwd()
        path_ = path_ + '\yuyinbao\就算搞基我也只做攻 就是把你压在身下那种。.mp3'
        mypath = 'file:///' + path_
        print(mypath)
        sst = MessageSegment.record(file=str(mypath))
        await bot.send(event=event, message=Message(sst))
Ejemplo n.º 4
0
async def _():
    bot = nonebot.get_bot()
    record = MessageSegment.record("ATOS/AOTS.mp3")
    try:
        await bot.send_group_msg(group_id=请在此输入群号, message=record)
        await bot.send_group_msg(group_id=请在此输入群号,
                                 message=f'G114514次列车即将进站,请工作人员做好接车准备')
    except CQHttpError:
        pass
Ejemplo n.º 5
0
async def _():
    bot = nonebot.get_bot()
    i = str(random.randint(1, 130))
    record = MessageSegment.record("melody/" + i + ".mp3")
    try:
        await bot.send_group_msg(group_id=请在此输入群号, message=f'G114514次列车即将发车')
        await bot.send_group_msg(group_id=请在此输入群号, message=record)
        await bot.send_group_msg(group_id=请在此输入群号, message=f'车门即将关闭,请注意安全!')
    except CQHttpError:
        pass
Ejemplo n.º 6
0
async def get_sound():
    i = str(random.randint(1, 47))
    record = MessageSegment.record("sh71/" + i + ".mp3")
    return record
Ejemplo n.º 7
0
async def get_sound():
    i = str(random.randint(1, 130))
    record = MessageSegment.record("melody/" + i + ".mp3")
    return record
Ejemplo n.º 8
0
async def get_sound():
    record = MessageSegment.record("ana/ana.mp3")
    return record