dcchbot 1.9.6__tar.gz → 1.9.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dcchbot-1.9.6 → dcchbot-1.9.7}/PKG-INFO +1 -1
- {dcchbot-1.9.6 → dcchbot-1.9.7}/dcchbot/__init__.py +1 -1
- {dcchbot-1.9.6 → dcchbot-1.9.7}/dcchbot/main.py +3 -3
- {dcchbot-1.9.6 → dcchbot-1.9.7}/dcchbot.egg-info/PKG-INFO +1 -1
- {dcchbot-1.9.6 → dcchbot-1.9.7}/pyproject.toml +1 -1
- {dcchbot-1.9.6 → dcchbot-1.9.7}/LICENSE +0 -0
- {dcchbot-1.9.6 → dcchbot-1.9.7}/README.md +0 -0
- {dcchbot-1.9.6 → dcchbot-1.9.7}/dcchbot/__main__.py +0 -0
- {dcchbot-1.9.6 → dcchbot-1.9.7}/dcchbot.egg-info/SOURCES.txt +0 -0
- {dcchbot-1.9.6 → dcchbot-1.9.7}/dcchbot.egg-info/dependency_links.txt +0 -0
- {dcchbot-1.9.6 → dcchbot-1.9.7}/dcchbot.egg-info/entry_points.txt +0 -0
- {dcchbot-1.9.6 → dcchbot-1.9.7}/dcchbot.egg-info/requires.txt +0 -0
- {dcchbot-1.9.6 → dcchbot-1.9.7}/dcchbot.egg-info/top_level.txt +0 -0
- {dcchbot-1.9.6 → dcchbot-1.9.7}/setup.cfg +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
# v1.9.
|
1
|
+
# v1.9.7 main.py
|
2
2
|
import logging
|
3
3
|
import os
|
4
4
|
import queue
|
@@ -14,14 +14,14 @@ from discord.utils import utcnow
|
|
14
14
|
import random as rd
|
15
15
|
global latest_version
|
16
16
|
package = "dcchbot"
|
17
|
-
CURRENT_VERSION = "1.9.
|
17
|
+
CURRENT_VERSION = "1.9.7"
|
18
18
|
API_PYPI_URL = f"https://pypi.org/pypi/{package}/json"
|
19
19
|
API_MY_URL = "10.112.101.32:194/dcchbot.json"
|
20
20
|
API_URL = None
|
21
21
|
test = rd.random()
|
22
22
|
ttt = time.time()
|
23
23
|
tb = tb
|
24
|
-
now_version =
|
24
|
+
now_version = CURRENT_VERSION
|
25
25
|
def choose_api_url():
|
26
26
|
"""優先使用內網 API,失敗則 fallback 到 PyPI"""
|
27
27
|
try:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|