mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-04 02:54:49 +08:00
8 lines
282 B
Python
8 lines
282 B
Python
|
from datetime import datetime, timedelta
|
||
|
|
||
|
from nonebot.matcher import Matcher
|
||
|
|
||
|
test_temp_matcher = Matcher.new("test", temp=True)
|
||
|
test_datetime_matcher = Matcher.new("test", expire_time=datetime.now())
|
||
|
test_timedelta_matcher = Matcher.new("test", expire_time=timedelta(seconds=-1))
|