File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ class json:
28
28
logs_chat : str | int
29
29
stream_notify_chats : list
30
30
edit_timeout_seconds : int
31
+ repost_delay_seconds : int
31
32
online_status_every_seconds : int
32
33
chats : dict
33
34
@@ -41,6 +42,7 @@ class json:
41
42
'logs_chat' : 'me' ,
42
43
'stream_notify_chats' : [],
43
44
'edit_timeout_seconds' : 0 ,
45
+ 'repost_delay_seconds' : 0 ,
44
46
'online_status_every_seconds' : 0 ,
45
47
'chats' : {
46
48
tests .source : tests .target ,
Original file line number Diff line number Diff line change 3
3
import reposter .handlers .stream_notify
4
4
import reposter .handlers .service
5
5
import reposter .handlers .edit
6
+ import reposter .funcs .handle
6
7
import reposter .funcs .other
7
8
import reposter .core .common
8
9
import reposter .core .config
@@ -29,6 +30,11 @@ async def on_new_msg(
29
30
reposter .core .common .log (
30
31
f'[green]\\ [new msg] [blue]{ link } '
31
32
)
33
+ if reposter .core .config .json .repost_delay_seconds :
34
+ await reposter .funcs .handle .wait (
35
+ reposter .core .config .json .repost_delay_seconds ,
36
+ text = 'repost delay' ,
37
+ )
32
38
if src_msg .service :
33
39
service = reposter .handlers .service .Service (
34
40
target_any = self .target_any ,
You can’t perform that action at this time.
0 commit comments