bitmart优化完成
This commit is contained in:
Binary file not shown.
BIN
telegram/bhaha_session.session
Normal file
BIN
telegram/bhaha_session.session
Normal file
Binary file not shown.
Binary file not shown.
@@ -12,8 +12,8 @@ from telethon.tl.types import BotCommand, BotCommandScopeDefault
|
||||
# ========== 配置区 ==========
|
||||
API_ID = 2040 # 请填入您的 API ID
|
||||
API_HASH = "b18441a1ff607e10a989891a5462e627" # 请填入您的 API HASH
|
||||
BOT_TOKEN = "8451724418:AAGTGqCmc1JiUr88IABhMiQTHeVLcAcnT5Y" # 请填入您的 Bot Token
|
||||
DB_PATH = "sign.db"
|
||||
BOT_TOKEN = "7851888372:AAGV565t4kjOfVihSYbGbu3gyK5uLADjlbs" # 请填入您的 Bot Token
|
||||
DB_PATH = "sign1.db"
|
||||
|
||||
# 积分配置
|
||||
SIGN_POINTS = 10
|
||||
@@ -23,7 +23,7 @@ DAILY_SPEAK_REWARD = 10
|
||||
|
||||
# 允许机器人运行的群组(只处理这些群的消息)
|
||||
# 请填入您的群组 ID,例如:[-1003494480544]
|
||||
ALLOWED_GROUPS = [-1003494480544]
|
||||
ALLOWED_GROUPS = [-1002019834357]
|
||||
|
||||
# 时区(结算规则用)
|
||||
LOCAL_TZ = ZoneInfo("America/New_York")
|
||||
@@ -643,7 +643,7 @@ async def send_price_periodically(bot, chat_id):
|
||||
print(f"[price] Failed to send price update: {e}")
|
||||
# 等待下一小时整点(保持每小时推送一次)
|
||||
now = datetime.datetime.now(LOCAL_TZ)
|
||||
next_hour = (now.replace(minute=0, second=0, microsecond=0) + datetime.timedelta(hours=2))
|
||||
next_hour = (now.replace(minute=0, second=0, microsecond=0) + datetime.timedelta(hours=6))
|
||||
wait_seconds = (next_hour - now).total_seconds()
|
||||
await asyncio.sleep(wait_seconds)
|
||||
|
||||
@@ -703,7 +703,7 @@ async def main():
|
||||
|
||||
# 使用代理时传 proxy=PROXY,若不需要代理则移除该参数
|
||||
# Telethon proxy 格式可能和你的代理不同,请按需调整(或移除)
|
||||
bot = TelegramClient('bot_session', API_ID, API_HASH, proxy=PROXY)
|
||||
bot = TelegramClient('bhaha_session', API_ID, API_HASH, proxy=PROXY)
|
||||
await bot.start(bot_token=BOT_TOKEN)
|
||||
|
||||
# 设置 Bot Commands(让用户可以通过命令菜单选择命令,避免自动添加 @botname)
|
||||
|
||||
BIN
telegram/sign.db
BIN
telegram/sign.db
Binary file not shown.
BIN
telegram/sign1.db
Normal file
BIN
telegram/sign1.db
Normal file
Binary file not shown.
Reference in New Issue
Block a user