Added others source settings
This commit is contained in:
@@ -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]:
|
||||
|
||||
@@ -82,6 +82,10 @@
|
||||
"tiktok": {
|
||||
"emoji": "<:tiktok:996007689798811698>",
|
||||
"color": "0x74ECE9"
|
||||
},
|
||||
"others": {
|
||||
"emoji": "🌎",
|
||||
"color": "0xb3b3b3"
|
||||
}
|
||||
},
|
||||
"default_controller": {
|
||||
|
||||
Reference in New Issue
Block a user