MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / main

Function main

tianyi.py:931–959  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

929
930
931def main():
932 accounts = parse_accounts(ACCOUNTS_STR)
933 if not accounts:
934 print("错误: 未配置账号")
935 return
936
937 print("=" * 50)
938 print("电信彩玲AI脚本 - 2026新年星辰活动")
939 print(f"渠道ID: {CHANNEL_ID}")
940 print(f"共 {len(accounts)} 个账号")
941 print("=" * 50)
942 print("\n活动说明:")
943 print(" 任务1: 制作新年视频 (3次) → 获得抽奖次数")
944 print(" 任务2: AI对话生成图片 (3次) → 获得抽奖次数")
945 print(" 最后: 使用获得的次数进行抽奖")
946 print("=" * 50)
947
948 total = len(accounts)
949 success_count = 0
950 for idx, (phone, password) in enumerate(accounts):
951 if process_new_year_lottery(phone, password, idx + 1, total):
952 success_count += 1
953 if idx < len(accounts) - 1:
954 print(f"\n等待3秒后处理下一个账号...")
955 time.sleep(3)
956
957 print(f"\n{'='*50}")
958 print(f"全部处理完成: {success_count}/{total} 成功")
959 print(f"{'='*50}")
960
961
962if __name__ == "__main__":

Callers 1

tianyi.pyFile · 0.70

Calls 4

parse_accountsFunction · 0.85
process_new_year_lotteryFunction · 0.85
sleepMethod · 0.80
printFunction · 0.70

Tested by

no test coverage detected