MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接

    FightInMirai - 击剑插件

    插件发布
    4
    9
    3162
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • Nambers
      Nambers 摸鱼 最后由 Nambers 编辑

      https://mirai.mamoe.net/topic/1033/突然想到一个很好玩的功能

      github地址

      FightInMirai

      击剑🤺

      使用方法:

      1. release 下载
      2. 在config/tech.eritquearcus.fight/config.yml中修改配置(如果没有就启动一次mcl然后关闭)

      配置

      # 触发条件, 现在支持:At/Nudge = 戳一戳/Both = At + nudge
      triggerType: Both
      # 附加字符, 比如是 {xxx, xx}, 那`@11 xxx`和`@11 xx`就会触发, nudge情况下无效
      triggers: 
        - 击剑
      # 反应, Mute = 禁言/ Kick = 踢出/ Admin = 提升成管理员 / NameCard = 更改成名片列表中随机一个
      reaction: NameCard
      # 禁言时间, 当reaction == Mute时生效, 单位ms
      muteTime: 10
      # NormalRespond, 如果RespondType == Normal就在结束后发送, {winat} 和 {loseat}会被自动替换成@赢的人和@输的人, {usrat} 被替换成@发起人, 如果存在多个值就回复随机一个
      respond: 
        - '{usrat}{winat}aa'
      # 随机群名片列表
      nameCards: 
        - a
        - b
      # 如果对bot发起,就对对方实现reaction然后回复本项,替换规则同NormalRespond
      respondWhenTargetIsBot: 
        - '{usrat}...'
      # 回复类型, Normal = 回复respond其中一个 / SuccessOrFail = 如果发起人成功就回复successResponds中一个否则就failResponds
      respondType: SuccessOrFail
      # 如果respondType = SuccessOrFail时候, 发起人成功时发送, 替换规则同NormalRespond
      successResponds: 
        - '{usrat}S'
      # 如果respondType = SuccessOrFail时候, 发起人失败时发送,替换规则同NormalRespond
      failResponds: 
        - 'F'
      # 如果reaction是踢出, 踢出信息为随机其中一条
      kickMessages: 
        - 'k'
      

      license

      Copyright (C) 2022-2022 Eritque arcus and contributors.
      
      This program is free software: you can redistribute it and/or modify
      it under the terms of the GNU Affero General Public License as
      published by the Free Software Foundation, either version 3 of the
      License, or any later version(in your opinion).
      
      This program is distributed in the hope that it will be useful,
      but WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      GNU Affero General Public License for more details.
      
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
      
      1 条回复 最后回复 回复 引用 1
      • A
        ArbETaperingsky 最后由 编辑

        qaq大佬能不能写一个订阅outlook邮件还有github邮件inbox的插件a

        Nambers Q 2 条回复 最后回复 回复 引用 0
        • Nambers
          Nambers 摸鱼 @ArbETaperingsky 最后由 编辑

          @ArbETaperingsky 邮箱这方面我没怎么了解过

          A 1 条回复 最后回复 回复 引用 0
          • A
            ArbETaperingsky @Nambers 最后由 编辑

            @Nambers 快了解了解😊

            1 条回复 最后回复 回复 引用 0
            • D
              dudu 最后由 编辑

              请问这个能否用不同的触发词触发不同的模式?

              Nambers 1 条回复 最后回复 回复 引用 0
              • Nambers
                Nambers 摸鱼 @dudu 最后由 编辑

                @dudu 目前不能,你可以试一下能不能加载多个插件达到这个目的,不过我没试过不知道会不会冲突

                D 1 条回复 最后回复 回复 引用 0
                • D
                  dudu @Nambers 最后由 编辑

                  @Nambers 谢谢,试过了不行

                  Q 1 条回复 最后回复 回复 引用 0
                  • Q
                    q981612327 @dudu 最后由 编辑

                    此回复已被删除!
                    1 条回复 最后回复 回复 引用 0
                    • Q
                      q981612327 @ArbETaperingsky 最后由 编辑

                      @ArbETaperingsky 你可以使用testmail生成rss使用rss转发

                      1 条回复 最后回复 回复 引用 0
                      • 1 / 1
                      • First post
                        Last post
                      Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact