mirror of
https://github.com/syuilo/ai.git
synced 2024-11-24 22:01:07 +00:00
数秒待つように
This commit is contained in:
parent
8817ef3685
commit
f98644978e
|
@ -38,6 +38,7 @@ homeStream.addEventListener('message', message => {
|
|||
if (note.userId == config.id) return;
|
||||
|
||||
// リアクションする
|
||||
setTimeout(() => {
|
||||
request.post(`${apiUrl}/notes/reactions/create`, {
|
||||
json: {
|
||||
i: config.i,
|
||||
|
@ -45,9 +46,10 @@ homeStream.addEventListener('message', message => {
|
|||
reaction: 'love'
|
||||
}
|
||||
});
|
||||
}, 2000);
|
||||
|
||||
if (note.text) {
|
||||
if (note.text.indexOf('リバーシ') > -1) {
|
||||
if (note.text && note.text.indexOf('リバーシ') > -1) {
|
||||
setTimeout(() => {
|
||||
request.post(`${apiUrl}/notes/create`, {
|
||||
json: {
|
||||
i: config.i,
|
||||
|
@ -57,7 +59,7 @@ homeStream.addEventListener('message', message => {
|
|||
});
|
||||
|
||||
invite(note.userId);
|
||||
}
|
||||
}, 3000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue