Skip to content

Commit

Permalink
Remove references to /premium functionality (#1825)
Browse files Browse the repository at this point in the history
* Remove references to premium functionality

* Fix tests

* Remove premium env var from CI

* Cleanup env example, patreon env vars
  • Loading branch information
taahamahdi authored Jan 22, 2024
1 parent 86fae83 commit 5d6f92e
Show file tree
Hide file tree
Showing 49 changed files with 97 additions and 1,371 deletions.
3 changes: 0 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ DEBUG_TEXT_CHANNEL_ID=
BOT_PREFIX=,
ALERT_WEBHOOK_URL=
AUDIO_SONGS_PER_ARTIST=
PREMIUM_AUDIO_SONGS_PER_ARTIST=
PATREON_CREATOR_ACCESS_TOKEN=
PATREON_CAMPAIGN_ID=
SPOTIFY_CLIENT_ID=
SPOTIFY_CLIENT_SECRET=
DAISUKI_SEED_CRON_JOB=
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/gci-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
DB_USER_CI: root
DB_PORT: 3306
AUDIO_SONGS_PER_ARTIST: 10
PREMIUM_AUDIO_SONGS_PER_ARTIST: 50
steps:
- name: Checkout KMQ_Discord
uses: actions/checkout@v2
Expand All @@ -45,7 +44,6 @@ jobs:
echo "BOT_TOKEN=$BOT_TOKEN" >> .env
echo "WEB_SERVER_PORT=5858" >> .env
echo "SONG_DOWNLOAD_DIR=/songs" >> .env
echo "PREMIUM_AUDIO_SONGS_PER_ARTIST=$PREMIUM_AUDIO_SONGS_PER_ARTIST" >> .env
echo "AUDIO_SONGS_PER_ARTIST=$AUDIO_SONGS_PER_ARTIST" >> .env
echo "BOT_CLIENT_ID=123" >> .env
echo "BOT_PREFIX=." >> .env
Expand Down Expand Up @@ -92,7 +90,7 @@ jobs:
- name: Parse pre-upgrade container ID
id: old-container-id
run: |
docker ps
docker ps
echo OLD_CONTAINER_ID=$(sudo docker ps -aqf "name=kmq-gci") > $GITHUB_OUTPUT
- name: Begin upgrade
run: npx ts-node src/scripts/announce-restart.ts --docker-image=ghcr.io/brainicism/kmq_discord:gci --timer=0
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/gci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
DB_USER_CI: root
DB_PORT: 3306
AUDIO_SONGS_PER_ARTIST: 10
PREMIUM_AUDIO_SONGS_PER_ARTIST: 50
steps:
- name: Checkout KMQ_Discord
uses: actions/checkout@v2
Expand Down
41 changes: 0 additions & 41 deletions i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,6 @@
"title": "Song Not Found"
},
"notInKMQ": "This song has an entry on [Daisuki]({{link}}), but it isn't included in KMQ.",
"premiumSong": "KMQ Premium Only?",
"songNameSearchResult": {
"notFoundDescription": "Could not find any songs by that name",
"successDescription": "The following songs are available in KMQ:",
Expand Down Expand Up @@ -802,7 +801,6 @@
"notSet": "Not set",
"overview": "Now playing the top {{limit}} out of {{totalSongs}} available songs from the following options:",
"perCommandHelp": "Looking for information on how to use a command? Check out {{helpCommand}} action:[command] to learn more.",
"premiumOptionsNonPremiumGame": "Note: active game is not premium",
"preset": "Preset",
"reset": "{{presetOrOption}} Reset",
"spotify": "Now playing {{songCount}} songs from Spotify with the following options:",
Expand Down Expand Up @@ -882,43 +880,6 @@
"typeGuess": "Listen to the song and type your guess!",
"voteReminder": "Psst. Earn more EXP by voting (see {{vote}})"
},
"premium": {
"help": {
"description": "Find out more about KMQ Premium including whether you're currently a member.",
"example": "Shows your premium status.",
"name": "premium"
},
"option": {
"description": "This option can only be used by premium KMQ supporters.",
"description_kmq_server": "This option can only be used by premium KMQ supporters, or in the official KMQ server.",
"title": "Premium Option"
},
"status": {
"description": {
"connectionReminder": "Make sure to connect your Discord account [here](https://www.patreon.com/settings/apps) to receive your perks.",
"nonPremium": "Subscribe to [KMQ Premium](https://www.patreon.com/kmq) here.",
"premium": "You have [KMQ Premium](https://www.patreon.com/kmq)."
},
"perks": {
"badge": {
"description": "Show off your dedication to KMQ with an exclusive badge on your profile",
"title": "Premium Supporter Badge!"
},
"moreSongs": {
"description": "Gain access to the top 50 b-sides for every artist (up from 10)",
"title": "More songs!"
},
"special": {
"description": "Change song playback speed anywhere you play!",
"title": "`/special` in every server!"
}
},
"title": {
"nonPremium": "Subscribe to KMQ Premium!",
"premium": "Thanks for supporting KMQ!"
}
}
},
"preset": {
"deleted": {
"description": "Preset {{presetName}} successfully deleted.",
Expand Down Expand Up @@ -1634,9 +1595,7 @@
"notGameSession": "You can't do that while in a game session.",
"notHidden": "You can't do that during a hidden game.",
"notListeningSession": "You can't do that while in a listening session.",
"notPremium": "You need KMQ Premium to use this command (see {{premium}}).",
"notSpotify": "You can't change that option when playing from Spotify. Use {{spotifyResetCommand}} before changing this option.",
"premiumOrDebugServer": "This command only works in the official KMQ server or for KMQ Premium members (see {{premium}}).",
"title": "Wait..."
},
"releaseDate": "Release Date",
Expand Down
41 changes: 0 additions & 41 deletions i18n/es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,6 @@
"title": "Canción no encontrada"
},
"notInKMQ": "Esta canción tiene una entrada en [Daisuki]({{link}}), pero no está incluida en KMQ.",
"premiumSong": "¿Solo para KMQ Premium?",
"songNameSearchResult": {
"notFoundDescription": "No se encontraron canciones con ese nombre",
"successDescription": "Las siguientes canciones están disponibles en KMQ:",
Expand Down Expand Up @@ -802,7 +801,6 @@
"notSet": "No establecido",
"overview": "Reproduciendo las mejores {{limit}} de {{totalSongs}} canciones disponibles de las siguientes opciones:",
"perCommandHelp": "¿Buscas información sobre cómo usar un comando? Echa un vistazo a {{helpCommand}} action:[comando] para obtener más información.",
"premiumOptionsNonPremiumGame": "Nota: el juego activo no es premium",
"preset": "Preestablecido",
"reset": "{{presetOrOption}} Restablecer",
"spotify": "Reproduciendo {{songCount}} canciones de Spotify con las siguientes opciones:",
Expand Down Expand Up @@ -882,43 +880,6 @@
"typeGuess": "¡Escucha la canción y escribe tu respuesta!",
"voteReminder": "Psst. Gana más EXP votando (ver {{vote}})"
},
"premium": {
"help": {
"description": "Obtén más información sobre KMQ Premium, incluyendo si actualmente eres miembro.",
"example": "Muestra tu estado premium.",
"name": "premium"
},
"option": {
"description": "Esta opción solo puede ser utilizada por los seguidores premium de KMQ.",
"description_kmq_server": "Esta opción solo puede ser utilizada por los seguidores premium de KMQ o en el servidor oficial de KMQ.",
"title": "Opción Premium"
},
"status": {
"description": {
"connectionReminder": "Asegúrate de conectar tu cuenta de Discord [aquí](https://www.patreon.com/settings/apps) para recibir tus beneficios.",
"nonPremium": "Suscríbete a [KMQ Premium](https://www.patreon.com/kmq) aquí.",
"premium": "Ya tienes [KMQ Premium](https://www.patreon.com/kmq)."
},
"perks": {
"badge": {
"description": "Muestra tu dedicación a KMQ con una insignia exclusiva en tu perfil",
"title": "¡Insignia de Seguidor Premium!"
},
"moreSongs": {
"description": "Obtén acceso a los 50 mejores lados B de cada artista (en lugar de 10)",
"title": "¡Más canciones!"
},
"special": {
"description": "Cambia la velocidad de reproducción de la canción en cualquier lugar donde la reproduzcas!",
"title": "`/special` en cada servidor!"
}
},
"title": {
"nonPremium": "¡Suscríbete a KMQ Premium!",
"premium": "¡Gracias por apoyar a KMQ!"
}
}
},
"preset": {
"deleted": {
"description": "Preestablecido {{presetName}} eliminado exitosamente.",
Expand Down Expand Up @@ -1634,9 +1595,7 @@
"notGameSession": "No puedes hacer eso mientras estás en una sesión de juego.",
"notHidden": "No puedes hacer eso durante un juego oculto.",
"notListeningSession": "No puedes hacer eso mientras estás en una sesión de escucha.",
"notPremium": "Necesitas KMQ Premium para usar este comando (ver {{premium}}).",
"notSpotify": "No puedes cambiar esa opción cuando estás reproduciendo desde Spotify. Usa {{spotifyResetCommand}} antes de cambiar esta opción.",
"premiumOrDebugServer": "Este comando solo funciona en el servidor oficial de KMQ o para miembros de KMQ Premium (ver {{premium}}).",
"title": "Espera..."
},
"releaseDate": "Fecha de lanzamiento",
Expand Down
41 changes: 0 additions & 41 deletions i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,6 @@
"title": "Chanson non trouvée"
},
"notInKMQ": "Cette chanson a une entrée sur [Daisuki]({{link}}), mais elle n'est pas incluse dans KMQ.",
"premiumSong": "KMQ Premium seulement ?",
"songNameSearchResult": {
"notFoundDescription": "Impossible de trouver des chansons portant ce nom.",
"successDescription": "Les chansons suivantes sont disponibles dans KMQ :",
Expand Down Expand Up @@ -802,7 +801,6 @@
"notSet": "Non défini",
"overview": "En train de jouer les {{limit}} premières chansons parmi un total de {{totalSongs}} chansons disponibles à partir des options suivantes :",
"perCommandHelp": "Vous cherchez des informations sur l'utilisation d'une commande ? Consultez {{helpCommand}} action:[commande] pour en savoir plus.",
"premiumOptionsNonPremiumGame": "Note : le jeu actif n'est pas premium",
"preset": "Préréglage",
"reset": "{{presetOrOption}} Réinitialiser",
"spotify": "En train de jouer {{songCount}} chansons de Spotify avec les options suivantes :",
Expand Down Expand Up @@ -882,43 +880,6 @@
"typeGuess": "Écoutez la chanson et tapez votre réponse !",
"voteReminder": "Psst. Gagnez plus d'EXP en votant (voir {{vote}})."
},
"premium": {
"help": {
"description": "En savoir plus sur KMQ Premium, y compris si vous êtes actuellement membre.",
"example": "Affiche votre statut premium.",
"name": "premium"
},
"option": {
"description": "Cette option ne peut être utilisée que par les supporters premium de KMQ.",
"description_kmq_server": "Cette option ne peut être utilisée que par les supporters premium de KMQ ou dans le serveur KMQ officiel.",
"title": "Option Premium"
},
"status": {
"description": {
"connectionReminder": "Assurez-vous de connecter votre compte Discord [ici](https://www.patreon.com/settings/apps) pour recevoir vos avantages.",
"nonPremium": "Abonnez-vous à [KMQ Premium](https://www.patreon.com/kmq) ici.",
"premium": "Vous avez [KMQ Premium](https://www.patreon.com/kmq)."
},
"perks": {
"badge": {
"description": "Montrez votre dévouement envers KMQ avec un badge exclusif sur votre profil.",
"title": "Badge de Supporter Premium!"
},
"moreSongs": {
"description": "Accédez aux 50 meilleurs b-sides de chaque artiste (au lieu de 10).",
"title": "Plus de chansons!"
},
"special": {
"description": "Modifiez la vitesse de lecture des chansons où que vous soyez!",
"title": "`/special` dans chaque serveur !"
}
},
"title": {
"nonPremium": "Abonnez-vous à KMQ Premium !",
"premium": "Merci de soutenir KMQ !"
}
}
},
"preset": {
"deleted": {
"description": "Préréglage {{presetName}} supprimé avec succès.",
Expand Down Expand Up @@ -1634,9 +1595,7 @@
"notGameSession": "Vous ne pouvez pas faire cela pendant une session de jeu.",
"notHidden": "Vous ne pouvez pas faire cela pendant une partie cachée.",
"notListeningSession": "Vous ne pouvez pas faire cela pendant une session d'écoute.",
"notPremium": "Vous avez besoin de KMQ Premium pour utiliser cette commande (voir {{premium}}).",
"notSpotify": "Vous ne pouvez pas changer cette option lorsque vous jouez depuis Spotify. Utilisez {{spotifyResetCommand}} avant de changer cette option.",
"premiumOrDebugServer": "Cette commande ne fonctionne que dans le serveur officiel de KMQ ou pour les membres KMQ Premium (voir {{premium}}).",
"title": "Attendez..."
},
"releaseDate": "Date de sortie",
Expand Down
41 changes: 0 additions & 41 deletions i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,6 @@
"title": "曲が見つかりませんでした。"
},
"notInKMQ": "この曲は[Daisuki]({{link}})にエントリーされていますが、KMQには含まれていません。",
"premiumSong": "KMQプレミアムのみ?",
"songNameSearchResult": {
"notFoundDescription": "その名前の曲は見つかりませんでした。",
"successDescription": "以下の曲がKMQで利用可能です。",
Expand Down Expand Up @@ -802,7 +801,6 @@
"notSet": "未設定",
"overview": "現在、以下のオプションから利用可能な{{totalSongs}}曲のうち、トップ{{limit}}曲を再生しています。",
"perCommandHelp": "コマンドの使用方法についての情報をお探しですか?{{helpCommand}} action:[コマンド]をチェックして、詳細を学びましょう。",
"premiumOptionsNonPremiumGame": "注:アクティブなゲームはプレミアムではありません。",
"preset": "プリセット",
"reset": "{{presetOrOption}}をリセット",
"spotify": "現在、以下のオプションでSpotifyから{{songCount}}曲を再生しています。",
Expand Down Expand Up @@ -882,43 +880,6 @@
"typeGuess": "曲を聴いて、答えを入力してください!",
"voteReminder": "Psst. 投票してEXPをもっと稼ぎましょう({{vote}}を参照)"
},
"premium": {
"help": {
"description": "現在のメンバーシップ状況を含め、KMQプレミアムについて詳しく調べる。",
"example": "あなたのプレミアムステータスを表示します。",
"name": "プレミアム"
},
"option": {
"description": "このオプションは、プレミアムKMQサポーターによってのみ使用できます。",
"description_kmq_server": "このオプションは、プレミアムKMQサポーターまたは公式KMQサーバーでのみ使用できます。",
"title": "プレミアムオプション"
},
"status": {
"description": {
"connectionReminder": "特典を受け取るために、[ここ](https://www.patreon.com/settings/apps)でDiscordアカウントに接続することを確認してください。",
"nonPremium": "[KMQプレミアム](https://www.patreon.com/kmq)に登録してください。",
"premium": "[KMQプレミアム](https://www.patreon.com/kmq)に登録済みです。"
},
"perks": {
"badge": {
"description": "独占バッジでKMQへの献身をアピールしましょう。",
"title": "プレミアムサポーターバッジ!"
},
"moreSongs": {
"description": "すべてのアーティストのトップ50のB面にアクセスできます(10からアップ)",
"title": "もっと多くの曲!"
},
"special": {
"description": "再生速度をどこでも変更できます!",
"title": "全てのサーバーで`/special`が利用可能です!"
}
},
"title": {
"nonPremium": "KMQプレミアムに登録しましょう!",
"premium": "KMQをサポートしてくれてありがとう!"
}
}
},
"preset": {
"deleted": {
"description": "プリセット{{presetName}}を正常に削除しました。",
Expand Down Expand Up @@ -1634,9 +1595,7 @@
"notGameSession": "ゲームセッション中にはそれはできません。",
"notHidden": "非公開ゲーム中はその操作はできません。",
"notListeningSession": "リスニングセッション中にはそれはできません。",
"notPremium": "このコマンドを使用するには、KMQプレミアムが必要です({{premium}}を参照)。",
"notSpotify": "Spotifyから再生している場合は、このオプションを変更できません。このオプションを変更する前に、{{spotifyResetCommand}}を使用してください。",
"premiumOrDebugServer": "このコマンドは、公式KMQサーバーまたはKMQプレミアムメンバーのみで動作します({{premium}}を参照)。",
"title": "お待ちください..."
},
"releaseDate": "リリース日",
Expand Down
Loading

0 comments on commit 5d6f92e

Please sign in to comment.