mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-19 17:58:26 +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.scheduler.scheduled_job('interval', seconds=3)
|
||||
@none.scheduler.scheduled_job('interval', seconds=20)
|
||||
async def cb():
|
||||
bot_ = none.get_bot()
|
||||
try:
|
||||
await bot_.send_private_msg(self_id=3281334718,
|
||||
user_id=1002647525,
|
||||
message='哇')
|
||||
await bot_.send_private_msg(user_id=1002647525, message='哇')
|
||||
except Exception as e:
|
||||
none.logger.exception(e)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user