mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-31 23:51:28 +08:00
Update demo
This commit is contained in:
parent
01d6a8cb3c
commit
06b6970c71
@ -6,13 +6,11 @@ from demo import config
|
|||||||
none.init(config)
|
none.init(config)
|
||||||
|
|
||||||
|
|
||||||
@none.scheduler.scheduled_job('interval', seconds=3)
|
@none.scheduler.scheduled_job('interval', seconds=20)
|
||||||
async def cb():
|
async def cb():
|
||||||
bot_ = none.get_bot()
|
bot_ = none.get_bot()
|
||||||
try:
|
try:
|
||||||
await bot_.send_private_msg(self_id=3281334718,
|
await bot_.send_private_msg(user_id=1002647525, message='哇')
|
||||||
user_id=1002647525,
|
|
||||||
message='哇')
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
none.logger.exception(e)
|
none.logger.exception(e)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user