mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 12:41:05 +08:00
rua
This commit is contained in:
parent
df616d8b53
commit
6200a18b82
|
@ -208,7 +208,7 @@ async def add_message(data: Dict[str, Any]):
|
||||||
reply_to=reply,
|
reply_to=reply,
|
||||||
room_id=room_id)
|
room_id=room_id)
|
||||||
|
|
||||||
await asyncio.sleep(0.5)
|
await asyncio.sleep(random.random() * 2)
|
||||||
await sio.emit('sendMessage', message.to_json())
|
await sio.emit('sendMessage', message.to_json())
|
||||||
elif data['message']['content'] == 'jrrp':
|
elif data['message']['content'] == 'jrrp':
|
||||||
randomer = random.Random(f'{sender_id}-{data["message"]["date"]}-jrrp')
|
randomer = random.Random(f'{sender_id}-{data["message"]["date"]}-jrrp')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user