Tehma commited on
Commit
2c9fefc
·
verified ·
1 Parent(s): 115d86a

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. bot.py +2 -2
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.9
2
 
3
  # Tạo thư mục làm việc
4
  WORKDIR /code
 
1
+ FROM python:3.11
2
 
3
  # Tạo thư mục làm việc
4
  WORKDIR /code
bot.py CHANGED
@@ -6,7 +6,7 @@ import re
6
  import sys
7
  import time
8
  from threading import Thread
9
- from typing import Any, Dict, List, Literal, Optional, Tuple
10
 
11
  import discord
12
  from discord.abc import Messageable
@@ -48,7 +48,7 @@ UNIT_ALIASES: Dict[str, str] = {
48
  "giờ": "h",
49
  }
50
  ReminderKey = Tuple[int, str]
51
- ReminderRow = Dict[str, int | str]
52
  DeliveryResult = Literal["sent", "transient_failure", "permanent_failure"]
53
  LOCAL_CONFIG_PATH = "bot_config.json"
54
  LOCAL_CONFIG_KEYS = (
 
6
  import sys
7
  import time
8
  from threading import Thread
9
+ from typing import Any, Dict, List, Literal, Optional, Tuple, Union
10
 
11
  import discord
12
  from discord.abc import Messageable
 
48
  "giờ": "h",
49
  }
50
  ReminderKey = Tuple[int, str]
51
+ ReminderRow = Dict[str, Union[int, str]]
52
  DeliveryResult = Literal["sent", "transient_failure", "permanent_failure"]
53
  LOCAL_CONFIG_PATH = "bot_config.json"
54
  LOCAL_CONFIG_KEYS = (