Skip to content
forked from nonebot/nonebot

魔改 NoneBot,支持用正则表达式直接提取参数。

License

Notifications You must be signed in to change notification settings

winlaic/nonebot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NoneBot (modified for regular expression)

The original repository can be found here.

I want use regular expression directly in NoneBot, so I modified the project. Regular expression can extract parameters grammarly, also, you can define your own partten to trigger the bot without being limited by command line style.

Usage

Modify the decorator from @on_command to @on_regexp. Input the regular expression, embrace the parameters parts you want to extract into brackets. When the command is triggered, you can find the parameters in session.initial_arguments.

About

魔改 NoneBot,支持用正则表达式直接提取参数。

Resources

License

Stars

Watchers

Forks

Languages

  • Python 100.0%