Spaces:
Running
Running
Update join.py
Browse files4 unmodified lines567891015 unmodified lines26272829303132334 unmodified linesimport timeimport requestsfrom typing import List, Dict, Any# ===== 設定 =====X_ACCOUNT = os.getenv("dmsendertoken")15 unmodified lines"content-type": "application/json","x-account": X_ACCOUNT,}TXT_WELCOME = """ようこそ""""""こんにちは。ITRSAにようこそ。自動でいくつかの部屋に招待しています。<b>使い方:</b>左側のメニューから、部屋(グループ)を開くことができます。\n・Youtubeダウンローダーは、URLを送ると自動でYoutubeをダウンロードしてくれる部屋\n・チャッピーは、ChatGPTと話せる部屋\n・幹部と裁判所からの報告はここを管理する幹部や裁判所から通知が来る部屋\n・{get_group_title(200605)}"""def get_group_title(group_id: int) -> str | None:url = f"https://desk-api.channel.io/desk/channels/{group_id}/groups?limit=1000"response = requests.get(url)4 unmodified lines56789101115 unmodified lines2728293031323334353637383940414243444 unmodified linesimport timeimport requestsfrom typing import List, Dict, Anyimport re# ===== 設定 =====X_ACCOUNT = os.getenv("dmsendertoken")15 unmodified lines"content-type": "application/json","x-account": X_ACCOUNT,}TXT_WELCOME = """ようこそこんにちは。ITRSAにようこそ。自動でいくつかの部屋に招待しています。<b>使い方:</b>左側のメニューから、部屋(グループ)を開くことができます。・Youtubeダウンローダーは、URLを送ると自動でYoutubeをダウンロードしてくれる部屋・チャッピーは、ChatGPTと話せる部屋・幹部と裁判所からの報告はここを管理する幹部や裁判所から通知が来る部屋・{get_group_title(200605)}"""def get_group_title(group_id: int) -> str | None:url = f"https://desk-api.channel.io/desk/channels/{group_id}/groups?limit=1000"response = requests.get(url)
join.py+13-2