This repository was archived by the owner on Jun 25, 2024. It is now read-only.
File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
FROM python:3.8-slim
2
2
3
3
ENV NO_LOG_FILE=Yes
4
+ ENV TZ=Asia/Taipei
4
5
5
6
COPY . /app
6
7
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ def __init__(self, bot: AIKyaru):
11
11
self .bot = bot
12
12
self .logger = logging .getLogger ("AIKyaru.Tasks" )
13
13
self .loop = asyncio .get_event_loop ()
14
-
14
+
15
15
self .task_update_checker = self .loop .create_task (self .update_checker ())
16
16
17
17
def cog_unload (self ):
@@ -35,7 +35,11 @@ async def update_checker(self):
35
35
36
36
self .logger .info ("Starting update task..." )
37
37
await self .bot .config .update ()
38
- await asyncio .sleep (3660 ) # wait 1 hour
38
+ await asyncio .sleep (5 )
39
+ await self .bot .gameData .tw .analytics ()
40
+ await self .bot .gameData .jp .analytics ()
41
+ await self .bot .config .update_gacha_emojis (self .bot )
42
+ await asyncio .sleep (3600 ) # wait 1 hour
39
43
40
44
except asyncio .CancelledError :
41
45
self .logger .info ("Update task cancelled." )
Original file line number Diff line number Diff line change 15
15
from utils .state_manger import StateManger , State
16
16
17
17
__author__ = "IanDesuyo"
18
- __version__ = "3.1.4 "
18
+ __version__ = "3.1.5 "
19
19
20
20
21
21
class AIKyaru (AutoShardedBot ):
You can’t perform that action at this time.
0 commit comments