diff --git a/assets/heroku-assets.png b/assets/heroku-assets.png deleted file mode 100644 index 0b85497..0000000 Binary files a/assets/heroku-assets.png and /dev/null differ diff --git a/assets/heroku-ava.png b/assets/heroku-ava.png deleted file mode 100644 index dc6717b..0000000 Binary files a/assets/heroku-ava.png and /dev/null differ diff --git a/assets/heroku-backups.png b/assets/heroku-backups.png deleted file mode 100644 index 0556d18..0000000 Binary files a/assets/heroku-backups.png and /dev/null differ diff --git a/assets/heroku-logs.png b/assets/heroku-logs.png deleted file mode 100644 index 65d8204..0000000 Binary files a/assets/heroku-logs.png and /dev/null differ diff --git a/assets/heroku.png b/assets/heroku.png deleted file mode 100644 index e60fd8e..0000000 Binary files a/assets/heroku.png and /dev/null differ diff --git a/heroku/database.py b/heroku/database.py index db5a85c..57cfaaa 100644 --- a/heroku/database.py +++ b/heroku/database.py @@ -116,7 +116,7 @@ class Database(dict): "heroku-assets", "πŸŒ† Your Heroku assets will be stored here", archive=True, - avatar="https://raw.githubusercontent.com/coddrago/Heroku/dev-test/assets/heroku-assets.png" + avatar="https://raw.githubusercontent.com/coddrago/assets/refs/heads/main/heroku/heroku_assets.png" ) except ChannelsTooMuchError: self._assets = None diff --git a/heroku/inline/token_obtainment.py b/heroku/inline/token_obtainment.py index 6255462..e6f765c 100644 --- a/heroku/inline/token_obtainment.py +++ b/heroku/inline/token_obtainment.py @@ -79,10 +79,7 @@ class TokenObtainment(InlineUnit): await fw_protect() from .. import main - if "DOCKER" in os.environ(): - m = await conv.send_file("https://raw.githubusercontent.com/coddrago/Heroku/refs/heads/master/assets/heroku-ava.png") - else: - m = await conv.send_file(main.BASE_PATH / "assets" / "heroku-ava.png") + m = await conv.send_file("https://raw.githubusercontent.com/coddrago/assets/refs/heads/main/heroku/heroku.png") r = await conv.get_response() logger.debug(">> ") @@ -230,9 +227,7 @@ class TokenObtainment(InlineUnit): await fw_protect() from .. import main - m = await conv.send_file( - main.BASE_PATH / "assets" / "heroku-ava.png" - ) + m = await conv.send_file("https://raw.githubusercontent.com/coddrago/assets/refs/heads/main/heroku/heroku.png") r = await conv.get_response() logger.debug(">> ") diff --git a/heroku/langpacks/de.yml b/heroku/langpacks/de.yml index 794ecc5..69b9128 100644 --- a/heroku/langpacks/de.yml +++ b/heroku/langpacks/de.yml @@ -334,7 +334,7 @@ test: configping: "Ihr benutzerdefinierter Text. Platzhalter kΓΆnnen verwendet werden: {ping} - Ihr Ping, {uptime} - Ihre Uptime, {ping_hint} - Hinweis. Sie kΓΆnnen den Platzhaltername {hostname} verwenden, wenn Sie den Hostname Ihres Servers benΓΆtigen" hint: "Geben Sie einen Hinweis an" ping_emoji: "Emoji, das bei einer leichten Ping-ErhΓΆhung angezeigt wird." - banner_url: "Bild fΓΌr Ihren Ping, zum Beispiel: https://imgur.com/a/dsh7Fvb.png" + banner_url: "Bild fΓΌr Ihren Ping, zum Beispiel: https://raw.githubusercontent.com/coddrago/assets/refs/heads/main/heroku/ping_cmd.png" logs_caption: "πŸͺ Heroku-Logs des Levels {}\n\nβšͺ️ Version: {}.{}.{}{}" debugging_enabled: "βœ… Der Entwicklermodus wurde fΓΌr das Modul {0} aktiviert\nGehe zum Ordner `debug_modules`, Γ€ndere die Datei `{0}.py` und beobachte die Γ„nderungen in Echtzeit" debugging_disabled: "βœ… Der Entwicklermodus wurde deaktiviert" diff --git a/heroku/langpacks/en.yml b/heroku/langpacks/en.yml index 7c72ed1..4edbc42 100644 --- a/heroku/langpacks/en.yml +++ b/heroku/langpacks/en.yml @@ -361,7 +361,7 @@ test: configping: "Your custom text. You can use placeholders: {ping} - That's your ping. {uptime} - It's your uptime. {ping_hint} - This is the same hint as in the heroku module, it is chosen with random chance, also you can specify this hint in the config. You can use the {hostname} placeholder if you need the hostname of your server" hint: "Set a hint" ping_emoji: "Emoji that appears when ping does not increase significantly" - banner_url: "Image for your ping, for example: https://imgur.com/a/dsh7Fvb.png" + banner_url: "Image for your ping, for example: https://raw.githubusercontent.com/coddrago/assets/refs/heads/main/heroku/ping_cmd.png" logs_caption: "πŸͺ Heroku logs with verbosity {}\n\nβšͺ️ Version: {}.{}.{}{}" suspend_invalid_time: "🚫 Invalid time to suspend" suspended: "πŸ₯Ά Bot suspended for {}" diff --git a/heroku/langpacks/ru.yml b/heroku/langpacks/ru.yml index 6a09435..2f55903 100644 --- a/heroku/langpacks/ru.yml +++ b/heroku/langpacks/ru.yml @@ -334,7 +334,7 @@ test: configping: "Π’Π°Ρˆ кастомный тСкст. Π’Ρ‹ ΠΌΠΎΠΆΠ΅Ρ‚Π΅ ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚ΡŒ плСйсхолдСры: {ping} - Π­Ρ‚ΠΎ ваш ΠΏΠΈΠ½Π³, {uptime} - Π­Ρ‚ΠΎ ваш Π°ΠΏΡ‚Π°ΠΉΠΌ, {ping_hint} - подсказка. Π’Ρ‹ ΠΌΠΎΠΆΠ΅Ρ‚Π΅ ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚ΡŒ плСйсхолдСр {hostname} Ссли Π²Π°ΠΌ Π½ΡƒΠΆΠ΅Π½ hostname вашСго сСрвСра" hint: "Π£ΠΊΠ°ΠΆΠΈΡ‚Π΅ подсказку" ping_emoji: "Π­ΠΌΠΎΠ΄Π·ΠΈ ΠΊΠΎΡ‚ΠΎΡ€ΠΎΠ΅ появляСтся ΠΏΡ€ΠΈ Π½Π΅ Π·Π½Π°Ρ‡ΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎΠΌ ростС ΠΏΠΈΠ½Π³Π°." - banner_url: "ΠšΠ°Ρ€Ρ‚ΠΈΠ½ΠΊΠ° для вашСго ΠΏΠΈΠ½Π³Π°, для ΠΏΡ€ΠΈΠΌΠ΅Ρ€Π°: https://imgur.com/a/dsh7Fvb.png" + banner_url: "ΠšΠ°Ρ€Ρ‚ΠΈΠ½ΠΊΠ° для вашСго ΠΏΠΈΠ½Π³Π°, для ΠΏΡ€ΠΈΠΌΠ΅Ρ€Π°: https://raw.githubusercontent.com/coddrago/assets/refs/heads/main/heroku/ping_cmd.png" logs_caption: "πŸͺ Π›ΠΎΠ³ΠΈ Heroku уровня {}\n\nβšͺ️ ВСрсия: {}.{}.{}{}" debugging_enabled: "βœ… Π Π΅ΠΆΠΈΠΌ Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚Ρ‡ΠΈΠΊΠ° Π²ΠΊΠ»ΡŽΡ‡Π΅Π½ для модуля {0}\nΠžΡ‚ΠΏΡ€Π°Π²Π»ΡΠΉΡΡ Π² Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΡŽ `debug_modules`, измСняй Ρ„Π°ΠΉΠ» `{0}.py`, ΠΈ смотри измСнСния Π² Ρ€Π΅ΠΆΠΈΠΌΠ΅ Ρ€Π΅Π°Π»ΡŒΠ½ΠΎΠ³ΠΎ Π²Ρ€Π΅ΠΌΠ΅Π½ΠΈ" debugging_disabled: "βœ… Π Π΅ΠΆΠΈΠΌ Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚Ρ‡ΠΈΠΊΠ° Π²Ρ‹ΠΊΠ»ΡŽΡ‡Π΅Π½" diff --git a/heroku/langpacks/ua.yml b/heroku/langpacks/ua.yml index 7272ae8..ef34db5 100644 --- a/heroku/langpacks/ua.yml +++ b/heroku/langpacks/ua.yml @@ -334,7 +334,7 @@ test: configping: "Π’Π°Ρˆ тСкст. Π’ΠΈ ΠΌΠΎΠΆΠ΅Ρ‚Π΅ використовувати заміщСння: {ping} - Π¦Π΅ ваш ΠΏΡ–Π½Π³, {uptime} - Π¦Π΅ ваш час Ρ€ΠΎΠ±ΠΎΡ‚ΠΈ. {ping_hint} - Π¦Π΅ Ρ‚ΠΎΠΉ самий ΠΏΡ–Π΄ΠΊΠ°Π·ΠΊΠ°, Ρ‰ΠΎ ΠΉ Ρƒ ΠΌΠΎΠ΄ΡƒΠ»Ρ– heroku, Π²ΠΎΠ½Π° Π²ΠΈΠ±ΠΈΡ€Π°Ρ”Ρ‚ΡŒΡΡ Π²ΠΈΠΏΠ°Π΄ΠΊΠΎΠ²ΠΎ, Ρ‚Π°ΠΊΠΎΠΆ Π²ΠΈ ΠΌΠΎΠΆΠ΅Ρ‚Π΅ Π²ΠΊΠ°Π·Π°Ρ‚ΠΈ Ρ†ΡŽ ΠΏΡ–Π΄ΠΊΠ°Π·ΠΊΡƒ Ρƒ ΠΊΠΎΠ½Ρ„Ρ–Π³ΡƒΡ€Π°Ρ†Ρ–Ρ—. Π’ΠΈ ΠΌΠΎΠΆΡ‚Π΅ використовувати плСйсхолдСр {hostname} якщо Π²Π°ΠΌ ΠΏΠΎΡ‚Ρ€Ρ–Π±Π΅Π½ hostname вашого сСрвСра" hint: "Π’ΡΡ‚Π°Π½ΠΎΠ²Ρ–Ρ‚ΡŒ ΠΏΡ–Π΄ΠΊΠ°Π·ΠΊΡƒ" ping_emoji: "Π•ΠΌΠΎΠ΄ΠΆΡ–, який Π·'ΡΠ²Π»ΡΡ”Ρ‚ΡŒΡΡ, ΠΊΠΎΠ»ΠΈ ΠΏΡ–Π½Π³ Π½Π΅ Π·Π±Ρ–Π»ΡŒΡˆΡƒΡ”Ρ‚ΡŒΡΡ суттєво" - banner_url: "ΠšΠ°Ρ€Ρ‚ΠΈΠ½ΠΊΠ° для вашого ΠΏΡ–Π½Π³Ρƒ, Π½Π°ΠΏΡ€ΠΈΠΊΠ»Π°Π΄: https://imgur.com/a/dsh7Fvb.png" + banner_url: "ΠšΠ°Ρ€Ρ‚ΠΈΠ½ΠΊΠ° для вашого ΠΏΡ–Π½Π³Ρƒ, Π½Π°ΠΏΡ€ΠΈΠΊΠ»Π°Π΄: https://raw.githubusercontent.com/coddrago/assets/refs/heads/main/heroku/ping_cmd.png" logs_caption: "πŸͺ Π›ΠΎΠ³ΠΈ Heroku рівня {}\n\nβšͺ️ ВСрсія: {}.{}.{}{}" debugging_enabled: "βœ… Π Π΅ΠΆΠΈΠΌ Ρ€ΠΎΠ·Ρ€ΠΎΠ±Π½ΠΈΠΊΠ° ΡƒΠ²Ρ–ΠΌΠΊΠ½Π΅Π½ΠΎ для модуля {0}\nΠŸΡ€ΡΠΌΡƒΠΉ Π΄ΠΎ Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€Ρ–Ρ— `debug_modules`, Π·ΠΌΡ–Π½ΡŽΠΉ Ρ„Π°ΠΉΠ» `{0}.py`, ΠΈ смотри измСнСния Π² Ρ€Π΅ΠΆΠΈΠΌΠ΅ Ρ€Π΅Π°Π»ΡŒΠ½ΠΎΠ³ΠΎ Π²Ρ€Π΅ΠΌΠ΅Π½ΠΈ" debugging_disabled: "βœ… Π Π΅ΠΆΠΈΠΌ Ρ€ΠΎΠ·Ρ€ΠΎΠ±Π½ΠΈΠΊΠ° Π²Ρ–ΠΌΠΊΠ½Π΅Π½ΠΎ" diff --git a/heroku/modules/heroku_backup.py b/heroku/modules/heroku_backup.py index 0a2406f..add1203 100644 --- a/heroku/modules/heroku_backup.py +++ b/heroku/modules/heroku_backup.py @@ -40,7 +40,7 @@ class HerokuBackupMod(loader.Module): if not self.get("period"): await self.inline.bot.send_photo( self.tg_id, - photo="https://raw.githubusercontent.com/coddrago/assets/refs/heads/main/heroku/unit_alpha.png", + photo="hhttps://raw.githubusercontent.com/coddrago/assets/refs/heads/main/heroku/unit_alpha.png", caption=self.strings("period"), reply_markup=self.inline.generate_markup( utils.chunks( @@ -72,7 +72,7 @@ class HerokuBackupMod(loader.Module): "πŸ“Ό Your database backups will appear here", silent=True, archive=True, - avatar="https://raw.githubusercontent.com/coddrago/Heroku/dev-test/assets/heroku-backups.png", + avatar="https://raw.githubusercontent.com/coddrago/assets/refs/heads/main/heroku/heroku_backups.png", _folder="heroku", invite_bot=True, ) diff --git a/heroku/modules/heroku_info.py b/heroku/modules/heroku_info.py index e783d97..267669d 100644 --- a/heroku/modules/heroku_info.py +++ b/heroku/modules/heroku_info.py @@ -46,7 +46,7 @@ class HerokuInfoMod(loader.Module): loader.ConfigValue( "banner_url", - "https://imgur.com/a/7LBPJiq.png", + "https://raw.githubusercontent.com/coddrago/assets/refs/heads/main/heroku/heroku_info.png", lambda: self.strings("_cfg_banner"), ), diff --git a/heroku/modules/test.py b/heroku/modules/test.py index 6b3d11e..f443d1c 100644 --- a/heroku/modules/test.py +++ b/heroku/modules/test.py @@ -418,7 +418,7 @@ class TestMod(loader.Module): "πŸͺ Your Heroku logs will appear in this chat", silent=True, invite_bot=True, - avatar="https://raw.githubusercontent.com/coddrago/Heroku/dev-test/assets/heroku-logs.png", + avatar="https://raw.githubusercontent.com/coddrago/assets/refs/heads/main/heroku/heroku_logs.png", ) self.logchat = int(f"-100{chat.id}")