Added others source settings

This commit is contained in:
Choco
2024-12-10 10:57:46 +08:00
parent eea026a112
commit bd598c3ea1
2 changed files with 5 additions and 1 deletions

View File

@@ -108,7 +108,7 @@ def format_time(number:str) -> int:
return (int(num.tm_hour) * 3600 + int(num.tm_min) * 60 + int(num.tm_sec)) * 1000
def get_source(source: str, type: str) -> str:
source_settings: dict = settings.sources_settings.get(source.lower(), {})
source_settings: dict = settings.sources_settings.get(source.lower(), settings.sources_settings.get("others"))
return source_settings.get(type, ("🔗" if type == "emoji" else settings.embed_color))
def cooldown_check(ctx: commands.Context) -> Optional[commands.Cooldown]:

View File

@@ -82,6 +82,10 @@
"tiktok": {
"emoji": "<:tiktok:996007689798811698>",
"color": "0x74ECE9"
},
"others": {
"emoji": "🌎",
"color": "0xb3b3b3"
}
},
"default_controller": {