Code Monkey home page Code Monkey logo

Comments (12)

RF-Tar-Railt avatar RF-Tar-Railt commented on July 17, 2024 1

你先跟我解释一下什么是命令别名

from nonebot2.

mengluo04 avatar mengluo04 commented on July 17, 2024 1

你先跟我解释一下什么是命令别名

on_command方法里面的这个参数:aliases

from nonebot2.

RF-Tar-Railt avatar RF-Tar-Railt commented on July 17, 2024 1

你先跟我解释一下什么是命令别名

on_command方法里面的这个参数:aliases

我在问你它的意义和功能

from nonebot2.

yzyyz1387 avatar yzyyz1387 commented on July 17, 2024 1

你举个实际例子说明一下

from nonebot2.

mengluo04 avatar mengluo04 commented on July 17, 2024 1

你举个实际例子说明一下

群里有原神和星铁两个机器人,原神机器人那边指定是#xx角色面板,星铁这边是xx角色面板,发送#xx角色面板,两边都会触发。看了原神机器人那边不是用的nb开发,是作者用正则匹配的然后走的nobe标准,看起来是插件作者自己处理更合适?

from nonebot2.

yzyyz1387 avatar yzyyz1387 commented on July 17, 2024 1

哦原来你是...

from nonebot2.

yanyongyu avatar yanyongyu commented on July 17, 2024 1

alias 就是命令的别名,同样受 command start 配置影响

from nonebot2.

mengluo04 avatar mengluo04 commented on July 17, 2024 1

alias 就是命令的别名,同样受 command start 配置影响

不太对,设置了前缀,只有命令生效了,别名还是没有判断前缀,nonebot2的版本是2.2.1
image
image

from nonebot2.

RF-Tar-Railt avatar RF-Tar-Railt commented on July 17, 2024 1

你把.env改成.env.prod看看
要么你把日志等级改成DEBUG

from nonebot2.

mengluo04 avatar mengluo04 commented on July 17, 2024 1

你把.env改成.env.prod看看 要么你把日志等级改成DEBUG

用的是.env.prod,这是debug日志的结果
image

from nonebot2.

RF-Tar-Railt avatar RF-Tar-Railt commented on July 17, 2024 1

你把.env改成.env.prod看看 要么你把日志等级改成DEBUG

用的是.env.prod,这是debug日志的结果
image

你自己去看插件源码。。。xxx面板用的是on_regex,与command无关

from nonebot2.

mengluo04 avatar mengluo04 commented on July 17, 2024 1

你把.env改成.env.prod看看 要么你把日志等级改成DEBUG

用的是.env.prod,这是debug日志的结果
image

你自己去看插件源码。。。xxx面板用的是on_regex,与command无关

好的,非常感谢

from nonebot2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.