Skip to content

Commit f0db682

Browse files
committed
🌐 about: better management for description links + credits link update
1 parent e28288e commit f0db682

17 files changed

Lines changed: 52 additions & 47 deletions

File tree

cogs/commands.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,11 @@ async def about(self, i: discore.Interaction):
5858
name=t('about.links.name'),
5959
value=t('about.links.value',
6060
invite_link=discore.config.invite_link.format(id=self.bot.application_id),
61-
support_link=discore.config.support_link,
62-
repo_link=discore.config.repo_link),
61+
topgg_link=discore.config.topgg_link.format(id=self.bot.user.id),
62+
repo_link=discore.config.repo_link,
63+
translation_link=discore.config.translation_link,
64+
credits_link=discore.config.repo_link + "/blob/v" + discore.config.version + "/README.md#credits",
65+
support_link=discore.config.support_link),
6366
inline=False)
6467
view = discore.ui.View()
6568
if not is_premium(i) and is_sku():

config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,7 @@ emoji:
5151
role: "🎭"
5252

5353
invite_link: "https://discord.com/oauth2/authorize?client_id={id}"
54+
topgg_link: "https://top.gg/bot/{id}"
55+
translation_link: "https://crowdin.com/project/fixtweetbot"
5456
repo_link: "https://github.com/Kyrela/FixTweetBot"
5557
support_link: "https://discord.gg/3ej9JrkF3U"

locales/en-GB.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ about:
1919
name: "Links"
2020
value: |
2121
- [Invite link](%{invite_link})
22-
- [Tog.gg Page](https://top.gg/bot/1164651057243238400) (please vote!)
22+
- [Tog.gg Page](%{topgg_link}) (please vote!)
2323
- [Source code](%{repo_link}) (please leave a star!)
24-
- [Translation project](https://crowdin.com/project/fixtweetbot) (help us translate in your language!)
25-
- [Proxies/Fixers credits](https://github.com/Kyrela/FixTweetBot?tab=readme-ov-file#proxies)
24+
- [Translation project](%{translation_link}) (help us translate in your language!)
25+
- [Credits](%{credits_link})
2626
- [Support server](%{support_link})
2727
settings:
2828
command:

locales/en-US.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ about:
2121
name: "Links"
2222
value: |
2323
- [Invite link](%{invite_link})
24-
- [Tog.gg Page](https://top.gg/bot/1164651057243238400) (please vote!)
24+
- [Tog.gg page](%{topgg_link}) (please vote!)
2525
- [Source code](%{repo_link}) (please leave a star!)
26-
- [Translation project](https://crowdin.com/project/fixtweetbot) (help us translate in your language!)
27-
- [Proxies/Fixers credits](https://github.com/Kyrela/FixTweetBot?tab=readme-ov-file#proxies)
26+
- [Translation project](%{translation_link}) (help us translate in your language!)
27+
- [Credits](%{credits_link})
2828
- [Support server](%{support_link})
2929
3030
settings:

locales/es-ES.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ about:
1919
name: "Enlaces"
2020
value: |
2121
- [Enlace de invitación](%{invite_link})
22-
- [Página de tog.gg](https://top.gg/bot/1164651057243238400) (¡vótanos!)
22+
- [Página de tog.gg](%{topgg_link}) (¡vótanos!)
2323
- [Código fuente](%{repo_link}) (¡deja tu estrella!)
24-
- [Proyecto de traducción](https://crowdin.com/project/fixtweetbot) (¡ayúdanos a traducir a tu idioma!)
25-
- [Créditos de los proxies/fixers](https://github.com/Kyrela/FixTweetBot?tab=readme-ov-file#proxies)
24+
- [Proyecto de traducción](%{translation_link}) (¡ayúdanos a traducir a tu idioma!)
25+
- [Créditos](%{credits_link})
2626
- [Servidor de ayuda](%{support_link})
2727
settings:
2828
command:

locales/fr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ about:
1919
name: "Liens"
2020
value: |
2121
- [Lien d'invitation](%{invite_link})
22-
- [Page Tog.gg](https://top.gg/bot/1164651057243238400) (merci de voter !)
22+
- [Page Tog.gg](%{topgg_link}) (merci de voter !)
2323
- [Code source](%{repo_link}) (merci de laisser une étoile !)
24-
- [Projet de traduction](https://crowdin.com/project/fixtweetbot) (aidez-nous à traduire dans votre langue !)
25-
- [Crédits des proxies/fixers](https://github.com/Kyrela/FixTweetBot?tab=readme-ov-file#proxies)
24+
- [Projet de traduction](%{translation_link}) (aidez-nous à traduire dans votre langue !)
25+
- [Crédits](%{credits_link})
2626
- [Serveur de support](%{support_link})
2727
settings:
2828
command:

locales/id.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ about:
1919
name: "Tautan"
2020
value: |
2121
- [Tautan undangan](%{invite_link})
22-
- [Tog.gg Page](https://top.gg/bot/1164651057243238400) (silakan pilih!)
22+
- [Tog.gg Page](%{topgg_link}) (silakan pilih!)
2323
- [Kode sumber](%{repo_link}) (tolong tinggalkan bintang!)
24-
- [Proyek penerjemahan](https://crowdin.com/project/fixtweetbot) (bantu kami menerjemahkan ke dalam bahasa Anda!)
25-
- [Kredit Proksi/Pemecah Masalah](https://github.com/Kyrela/FixTweetBot?tab=readme-ov-file#proxies)
24+
- [Proyek penerjemahan](%{translation_link}) (bantu kami menerjemahkan ke dalam bahasa Anda!)
25+
- [Kredit](%{credits_link})
2626
- [Server pendukung](%{support_link})
2727
settings:
2828
command:

locales/ja.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ about:
1919
name: "リンク"
2020
value: |
2121
- [招待リンク](%{invite_link})
22-
- [Tog.gg Page](https://top.gg/bot/1164651057243238400)( 投票してください!)
22+
- [Tog.gg page](%{topgg_link})( 投票してください!)
2323
- [ソースコード](%{repo_link})(評価をお願いします!)
24-
- [翻訳プロジェクト](https://crowdin.com/project/fixtweetbot)
24+
- [翻訳プロジェクト](%{translation_link})
2525
(あなたの言語で私達の翻訳を助けてください!)
26-
- [プロキシ/協力者のクレジット](https://github.com/Kyrela/FixTweetBot?tab=readme-ov-file#proxies)
26+
- [プロキシ/協力者のクレジット](%{credits_link})
2727
- [サポートサーバー](%{support_link})
2828
settings:
2929
command:

locales/ko.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ about:
1717
name: "링크"
1818
value: |
1919
- [초대 링크](%{invite_link})
20-
- [Tog.gg 페이지](https://top.gg/bot/1164651057243238400) (투표해주세요!)
20+
- [Tog.gg 페이지](%{topgg_link}) (투표해주세요!)
2121
- [소스 코드](%{repo_link}) (스타 눌러주세요!)
22-
- [번역 프로젝트](https://crowdin.com/project/fixtweetbot)
23-
- [프록시/해결사 목록](https://github.com/Kyrela/FixTweetBot?tab=readme-ov-file#proxies)
22+
- [번역 프로젝트](%{translation_link})
23+
- [프록시/해결사 목록](%{credits_link})
2424
- [지원 서버](%{support_link})
2525
settings:
2626
command:

locales/pl.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ about:
1919
name: "Linki"
2020
value: |
2121
- [Link z zaproszeniem](%{invite_link})
22-
- [Strona na Top.gg](https://top.gg/bot/1164651057243238400) (proszę zagłosować!)
22+
- [Strona na Top.gg](%{topgg_link}) (proszę zagłosować!)
2323
- [Kod źródłowy](%{repo_link}) (proszę zostawić gwiazdkę!)
24-
- [Projekt tłumaczenia](https://crowdin.com/project/fixtweetbot) (pomóż nam w tłumaczeniu na Twój język!)
25-
- [Uznania dla proxerów/naprawiaczy](https://github.com/Kyrela/FixTweetBot?tab=readme-ov-file#proxies)
24+
- [Projekt tłumaczenia](%{translation_link}) (pomóż nam w tłumaczeniu na Twój język!)
25+
- [Uznania dla proxerów/naprawiaczy](%{credits_link})
2626
- [Serwer wsparcia](%{support_link})
2727
settings:
2828
command:

0 commit comments

Comments
 (0)