Update demo

This commit is contained in:
Richard Chien 2018-08-26 11:30:22 +08:00
parent 01d6a8cb3c
commit 06b6970c71

View File

@ -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)