From 949e9ccd8032951ad9ae41cedeb29ec164b1ae92 Mon Sep 17 00:00:00 2001 From: SCUOP <92345079+SCUOP@users.noreply.github.com> Date: Thu, 16 Jun 2022 20:55:08 +0800 Subject: [PATCH] Update __init__.py --- Paimon_Chat/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Paimon_Chat/__init__.py b/Paimon_Chat/__init__.py index 85aa630..596920b 100644 --- a/Paimon_Chat/__init__.py +++ b/Paimon_Chat/__init__.py @@ -45,7 +45,7 @@ def check_group(event: GroupMessageEvent) -> bool: async def update_paimon_voice(event: MessageEvent): try: old_len = len([m for m in matchers[10] if m.plugin_name == 'Paimon_Chat']) - voice_list = await load_json_from_url('https://www.scuop.top/chat.json') + voice_list = await load_json_from_url('https://static.cherishmoon.fun/LittlePaimon/voice/voice_list.json') matchers[10] = [m for m in matchers[10] if m.plugin_name != 'Paimon_Chat'] for key, value in voice_list.items(): create_matcher(key, value['pattern'], value['cooldown'], value['pro'], value['files']) @@ -85,6 +85,6 @@ def create_matcher(chat_word: str, pattern: str, cooldown: int, pro: float, resp @driver.on_startup async def load_voice(): - voice_list = await load_json_from_url('https://www.scuop.top/chat.json') + voice_list = await load_json_from_url('https://static.cherishmoon.fun/LittlePaimon/voice/voice_list.json') for k, v in voice_list.items(): create_matcher(k, v['pattern'], v['cooldown'], v['pro'], v['files'])