MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    Arclet-Edoves — 基于Mirai的Python 机器人框架

    其他项目发布
    1
    1
    160
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      RF-Tar-Railt last edited by

      Edoves

      Edoves 是 Arclet Project 基于同项目下的 Cesloi 的 第二代 框架实现, 采取了模块化设计, 最大程度上简化了交互操作

      项目地址: https://github.com/ArcletProject/Edoves
      交流: QQ邀请链接

      !注意: 该框架目前处于快速迭代状态, API 可能会发生 剧烈 变化, 建议根据changelog选择合适的版本

      样例:

      回复消息

      async def test_message_reaction(message: Message):
          if message.content.startswith("Hello"):
              await message.set("Hello World!").send()
      message_module = app['MAH-default'].activate_module(MessageModule)
      

      效果图:

      戳一戳

      async def test_nudge():
          if message.content.startswith("戳一戳"):
              await send_nudge().execute()
      message_module = app['MAH-default'].activate_module(MessageModule)
      
      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact