From b9f68920046a55c723f92df99a05c4dcb6b253ec Mon Sep 17 00:00:00 2001 From: Michal Orlik Date: Mon, 29 Jul 2024 11:34:30 +0200 Subject: [PATCH] chore: update locales --- docs/_master/faq.md | 2 +- docs/faq.md | 2 +- locales/ar/ui.menu.json | 2 +- locales/ar/ui.systems.raffles.json | 2 +- locales/ar/ui/core/general.json | 2 +- locales/ar/ui/core/permissions.json | 2 +- locales/ar/ui/core/socket.json | 2 +- locales/ar/ui/integrations/discord.json | 2 +- locales/ar/ui/integrations/pubg.json | 2 +- locales/ar/ui/integrations/streamlabs.json | 4 +- locales/cs/ui.menu.json | 2 +- locales/cs/ui/integrations/streamlabs.json | 4 +- locales/da/ui.menu.json | 2 +- locales/da/ui.systems.raffles.json | 2 +- locales/da/ui/core/permissions.json | 2 +- locales/da/ui/integrations/discord.json | 2 +- locales/da/ui/integrations/pubg.json | 2 +- locales/da/ui/integrations/streamlabs.json | 4 +- locales/da/ui/integrations/tipeeestream.json | 2 +- locales/de/ui.menu.json | 2 +- locales/de/ui/integrations/streamlabs.json | 4 +- locales/en/games.heist.json | 6 +-- locales/en/integrations/discord.json | 2 +- locales/en/integrations/obswebsocket.json | 2 +- locales/en/integrations/spotify.json | 4 +- locales/en/ui.dialog.json | 2 +- locales/en/ui.menu.json | 6 +-- .../ui.page.settings.overlays.carousel.json | 3 -- locales/en/ui.systems.cooldown.json | 4 +- locales/en/ui.systems.raffles.json | 2 +- locales/en/ui/core/general.json | 2 +- locales/en/ui/core/permissions.json | 2 +- locales/en/ui/core/socket.json | 2 +- locales/en/ui/integrations/discord.json | 2 +- locales/en/ui/integrations/pubg.json | 2 +- locales/en/ui/integrations/spotify.json | 2 +- locales/en/ui/integrations/streamlabs.json | 4 +- locales/en/ui/integrations/tipeeestream.json | 2 +- locales/en/ui/registry/goals.json | 4 +- locales/es/ui.menu.json | 2 +- locales/es/ui.systems.raffles.json | 2 +- locales/es/ui/core/general.json | 2 +- locales/es/ui/core/permissions.json | 2 +- locales/es/ui/core/socket.json | 2 +- locales/es/ui/integrations/discord.json | 2 +- locales/es/ui/integrations/pubg.json | 2 +- locales/es/ui/integrations/streamlabs.json | 4 +- locales/fr/ui.menu.json | 2 +- locales/fr/ui.systems.raffles.json | 2 +- locales/fr/ui/integrations/streamlabs.json | 4 +- locales/it/ui.menu.json | 2 +- locales/it/ui/integrations/streamlabs.json | 4 +- locales/ja/ui.menu.json | 2 +- locales/ja/ui/core/socket.json | 2 +- locales/ja/ui/integrations/discord.json | 2 +- locales/ja/ui/integrations/pubg.json | 2 +- locales/ja/ui/integrations/streamlabs.json | 4 +- locales/nb/ui.menu.json | 2 +- locales/nb/ui/integrations/streamlabs.json | 2 +- locales/pt/ui.menu.json | 2 +- locales/pt/ui/integrations/streamlabs.json | 4 +- locales/ru/ui.menu.json | 2 +- locales/ru/ui/integrations/streamlabs.json | 4 +- locales/uk/ui.menu.json | 2 +- locales/uk/ui.systems.raffles.json | 2 +- locales/uk/ui/integrations/pubg.json | 2 +- locales/uk/ui/integrations/streamlabs.json | 4 +- src/integrations/streamlabs.ts | 38 +++++++++---------- test/tests/games/heist.js | 4 +- 69 files changed, 106 insertions(+), 109 deletions(-) diff --git a/docs/_master/faq.md b/docs/_master/faq.md index 3f90d2a5a320..de3cf6c4e368 100644 --- a/docs/_master/faq.md +++ b/docs/_master/faq.md @@ -32,7 +32,7 @@ *** -**Question:** Bot on docker have issues with connection to twitch or streamlabs (Error: getaddrinfo EAI_AGAIN)? +**Question:** Bot on docker have issues with connection to twitch or Streamlabs (Error: getaddrinfo EAI_AGAIN)? **Answer:** Check https://development.robinwinslow.uk/2016/06/23/fix-docker-networking-dns/ for steps to fix your issue diff --git a/docs/faq.md b/docs/faq.md index 3f90d2a5a320..de3cf6c4e368 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -32,7 +32,7 @@ *** -**Question:** Bot on docker have issues with connection to twitch or streamlabs (Error: getaddrinfo EAI_AGAIN)? +**Question:** Bot on docker have issues with connection to twitch or Streamlabs (Error: getaddrinfo EAI_AGAIN)? **Answer:** Check https://development.robinwinslow.uk/2016/06/23/fix-docker-networking-dns/ for steps to fix your issue diff --git a/locales/ar/ui.menu.json b/locales/ar/ui.menu.json index a5d4a6a71b58..4a4e47db21ed 100644 --- a/locales/ar/ui.menu.json +++ b/locales/ar/ui.menu.json @@ -66,7 +66,7 @@ "currency": "Currency", "eventlist": "Eventlist", "clipscarousel": "Clips carousel", - "streamlabs": "Streamlabs", + "Streamlabs": "Streamlabs", "streamelements": "StreamElements", "donationalerts": "DonationAlerts.ru", "qiwi": "Qiwi Donate", diff --git a/locales/ar/ui.systems.raffles.json b/locales/ar/ui.systems.raffles.json index 9b8075f19cc1..30b7dfaad901 100644 --- a/locales/ar/ui.systems.raffles.json +++ b/locales/ar/ui.systems.raffles.json @@ -18,7 +18,7 @@ }, "allowOverTicketing": { "title": "Allow over ticketing", - "help": "Allow user join raffle with over ticket of his points. E.g. user have 10 points but can join with !raffle 100 which will use all of his points." + "help": "Allow user to join raffle by over ticketing their points. E.g. user has 10 points but can write !raffle 100 which will use all of their points." }, "raffleAnnounceInterval": { "title": "Announce interval", diff --git a/locales/ar/ui/core/general.json b/locales/ar/ui/core/general.json index cfe609bf2baa..14b22b76c42f 100644 --- a/locales/ar/ui/core/general.json +++ b/locales/ar/ui/core/general.json @@ -3,7 +3,7 @@ "lang": "Bot language", "numberFormat": "Format of numbers in chat", "gracefulExitEachXHours": { - "title": "Graceful exit each X hours", + "title": "Graceful exit every X hours", "help": "0 - disabled" }, "shouldGracefulExitHelp": "Enabling of graceful exit is recommended if your bot is running endlessly on server. You should have bot running on pm2 (or similar service) or have it dockerized to ensure automatic bot restart. Bot won't gracefully exit when stream is online." diff --git a/locales/ar/ui/core/permissions.json b/locales/ar/ui/core/permissions.json index 07aec34c0c05..4246579b8ca4 100644 --- a/locales/ar/ui/core/permissions.json +++ b/locales/ar/ui/core/permissions.json @@ -11,7 +11,7 @@ "loading": "loading", "permissionNotFoundInDatabase": "Permission not found in database, please save before testing user.", "userHaveNoAccessToThisPermissionGroup": "User $username DOESN'T have access to this permission group.", - "userHaveAccessToThisPermissionGroup": "User $username HAVE access to this permission group.", + "userHaveAccessToThisPermissionGroup": "User $username HAS access to this permission group.", "accessDirectlyThrough": "Direct access through", "accessThroughHigherPermission": "Access through higher permission", "somethingWentWrongUserWasNotFoundInBotDatabase": "Something went wrong, user $username was not found in bot database.", diff --git a/locales/ar/ui/core/socket.json b/locales/ar/ui/core/socket.json index 38f1582f47af..b94b1873d0d0 100644 --- a/locales/ar/ui/core/socket.json +++ b/locales/ar/ui/core/socket.json @@ -1,6 +1,6 @@ { "settings": { - "purgeAllConnections": "Purge All Authenticated Connection (yours as well)", + "purgeAllConnections": "Purge All Authenticated Connections (yours as well)", "accessTokenExpirationTime": "Access Token Expiration Time (seconds)", "refreshTokenExpirationTime": "Refresh Token Expiration Time (seconds)", "socketToken": { diff --git a/locales/ar/ui/integrations/discord.json b/locales/ar/ui/integrations/discord.json index baa645ab9193..b78041394e38 100644 --- a/locales/ar/ui/integrations/discord.json +++ b/locales/ar/ui/integrations/discord.json @@ -6,7 +6,7 @@ "sendOnlineAnnounceToChannel": "Send online announcement to this channel", "onlineAnnounceMessage": "Message in online announcement (can include mentions)", "sendAnnouncesToChannel": "Setup sending of announcements to channels", - "deleteMessagesAfterWhile": "Delete message after while", + "deleteMessagesAfterWhile": "Delete message after a while", "clientId": "ClientId", "token": "Token", "joinToServerBtn": "Click to join bot to your server", diff --git a/locales/ar/ui/integrations/pubg.json b/locales/ar/ui/integrations/pubg.json index 166aef5d932e..f9dfe45f3b41 100644 --- a/locales/ar/ui/integrations/pubg.json +++ b/locales/ar/ui/integrations/pubg.json @@ -10,7 +10,7 @@ "playerId": "Player ID", "seasonId": { "title": "Season ID", - "help": "Current season ID is being fetch every hour." + "help": "Current season ID is being fetched every hour." }, "rankedGameModeStatsCustomization": "Customized message for ranked stats", "gameModeStatsCustomization": "Customized message for normal stats" diff --git a/locales/ar/ui/integrations/streamlabs.json b/locales/ar/ui/integrations/streamlabs.json index 281b65b91b5b..b51f4cade90b 100644 --- a/locales/ar/ui/integrations/streamlabs.json +++ b/locales/ar/ui/integrations/streamlabs.json @@ -7,8 +7,8 @@ }, "accessToken": { "title": "Access token", - "help": "Get your access token at https://www.sogebot.xyz/integrations/#StreamLabs" + "help": "Get your access token at https://www.sogebot.xyz/integrations/#Streamlabs" }, - "accessTokenBtn": "StreamLabs access token generator" + "accessTokenBtn": "Streamlabs access token generator" } } \ No newline at end of file diff --git a/locales/cs/ui.menu.json b/locales/cs/ui.menu.json index 0e6320b6cbcb..c5cef1fb082a 100644 --- a/locales/cs/ui.menu.json +++ b/locales/cs/ui.menu.json @@ -66,7 +66,7 @@ "currency": "Měna", "eventlist": "Kanál aktivit", "clipscarousel": "Promítačka klipů", - "streamlabs": "StreamLabs", + "Streamlabs": "Streamlabs", "streamelements": "StreamElements", "donationalerts": "DonationAlerts.ru", "qiwi": "Qiwi Donate", diff --git a/locales/cs/ui/integrations/streamlabs.json b/locales/cs/ui/integrations/streamlabs.json index 0bffffeeb001..732f9490e38b 100644 --- a/locales/cs/ui/integrations/streamlabs.json +++ b/locales/cs/ui/integrations/streamlabs.json @@ -7,8 +7,8 @@ }, "accessToken": { "title": "Access token", - "help": "Získej svůj access token na https://www.sogebot.xyz/integrations/#StreamLabs" + "help": "Získej svůj access token na https://www.sogebot.xyz/integrations/#Streamlabs" }, - "accessTokenBtn": "Generátor access token pro StreamLabs" + "accessTokenBtn": "Generátor access token pro Streamlabs" } } \ No newline at end of file diff --git a/locales/da/ui.menu.json b/locales/da/ui.menu.json index a5d4a6a71b58..4a4e47db21ed 100644 --- a/locales/da/ui.menu.json +++ b/locales/da/ui.menu.json @@ -66,7 +66,7 @@ "currency": "Currency", "eventlist": "Eventlist", "clipscarousel": "Clips carousel", - "streamlabs": "Streamlabs", + "Streamlabs": "Streamlabs", "streamelements": "StreamElements", "donationalerts": "DonationAlerts.ru", "qiwi": "Qiwi Donate", diff --git a/locales/da/ui.systems.raffles.json b/locales/da/ui.systems.raffles.json index 9b8075f19cc1..30b7dfaad901 100644 --- a/locales/da/ui.systems.raffles.json +++ b/locales/da/ui.systems.raffles.json @@ -18,7 +18,7 @@ }, "allowOverTicketing": { "title": "Allow over ticketing", - "help": "Allow user join raffle with over ticket of his points. E.g. user have 10 points but can join with !raffle 100 which will use all of his points." + "help": "Allow user to join raffle by over ticketing their points. E.g. user has 10 points but can write !raffle 100 which will use all of their points." }, "raffleAnnounceInterval": { "title": "Announce interval", diff --git a/locales/da/ui/core/permissions.json b/locales/da/ui/core/permissions.json index 07aec34c0c05..4246579b8ca4 100644 --- a/locales/da/ui/core/permissions.json +++ b/locales/da/ui/core/permissions.json @@ -11,7 +11,7 @@ "loading": "loading", "permissionNotFoundInDatabase": "Permission not found in database, please save before testing user.", "userHaveNoAccessToThisPermissionGroup": "User $username DOESN'T have access to this permission group.", - "userHaveAccessToThisPermissionGroup": "User $username HAVE access to this permission group.", + "userHaveAccessToThisPermissionGroup": "User $username HAS access to this permission group.", "accessDirectlyThrough": "Direct access through", "accessThroughHigherPermission": "Access through higher permission", "somethingWentWrongUserWasNotFoundInBotDatabase": "Something went wrong, user $username was not found in bot database.", diff --git a/locales/da/ui/integrations/discord.json b/locales/da/ui/integrations/discord.json index baa645ab9193..b78041394e38 100644 --- a/locales/da/ui/integrations/discord.json +++ b/locales/da/ui/integrations/discord.json @@ -6,7 +6,7 @@ "sendOnlineAnnounceToChannel": "Send online announcement to this channel", "onlineAnnounceMessage": "Message in online announcement (can include mentions)", "sendAnnouncesToChannel": "Setup sending of announcements to channels", - "deleteMessagesAfterWhile": "Delete message after while", + "deleteMessagesAfterWhile": "Delete message after a while", "clientId": "ClientId", "token": "Token", "joinToServerBtn": "Click to join bot to your server", diff --git a/locales/da/ui/integrations/pubg.json b/locales/da/ui/integrations/pubg.json index 166aef5d932e..f9dfe45f3b41 100644 --- a/locales/da/ui/integrations/pubg.json +++ b/locales/da/ui/integrations/pubg.json @@ -10,7 +10,7 @@ "playerId": "Player ID", "seasonId": { "title": "Season ID", - "help": "Current season ID is being fetch every hour." + "help": "Current season ID is being fetched every hour." }, "rankedGameModeStatsCustomization": "Customized message for ranked stats", "gameModeStatsCustomization": "Customized message for normal stats" diff --git a/locales/da/ui/integrations/streamlabs.json b/locales/da/ui/integrations/streamlabs.json index 281b65b91b5b..b51f4cade90b 100644 --- a/locales/da/ui/integrations/streamlabs.json +++ b/locales/da/ui/integrations/streamlabs.json @@ -7,8 +7,8 @@ }, "accessToken": { "title": "Access token", - "help": "Get your access token at https://www.sogebot.xyz/integrations/#StreamLabs" + "help": "Get your access token at https://www.sogebot.xyz/integrations/#Streamlabs" }, - "accessTokenBtn": "StreamLabs access token generator" + "accessTokenBtn": "Streamlabs access token generator" } } \ No newline at end of file diff --git a/locales/da/ui/integrations/tipeeestream.json b/locales/da/ui/integrations/tipeeestream.json index 880b7bcfe40a..798dea6f7e83 100644 --- a/locales/da/ui/integrations/tipeeestream.json +++ b/locales/da/ui/integrations/tipeeestream.json @@ -2,7 +2,7 @@ "settings": { "enabled": "Status", "apiKey": { - "title": "Api key", + "title": "API key", "help": "Get socket token from tipeeestream dashboard -> API -> Your API Key" } } diff --git a/locales/de/ui.menu.json b/locales/de/ui.menu.json index 336719d2efc1..4ba2d1ec5636 100644 --- a/locales/de/ui.menu.json +++ b/locales/de/ui.menu.json @@ -66,7 +66,7 @@ "currency": "Währung", "eventlist": "Event-Liste", "clipscarousel": "Clips-Karussell", - "streamlabs": "Streamlabs", + "Streamlabs": "Streamlabs", "streamelements": "StreamElements", "donationalerts": "DonationAlerts.ru", "qiwi": "Qiwi Donate", diff --git a/locales/de/ui/integrations/streamlabs.json b/locales/de/ui/integrations/streamlabs.json index 27b33ca7eb2a..f341b64e67e7 100644 --- a/locales/de/ui/integrations/streamlabs.json +++ b/locales/de/ui/integrations/streamlabs.json @@ -7,8 +7,8 @@ }, "accessToken": { "title": "Access Token", - "help": "Erhalten den Access-Token unter https://www.sogebot.xyz/integrations/#StreamLabs" + "help": "Erhalten den Access-Token unter https://www.sogebot.xyz/integrations/#Streamlabs" }, - "accessTokenBtn": "StreamLabs Access-Token-Generator" + "accessTokenBtn": "Streamlabs Access-Token-Generator" } } \ No newline at end of file diff --git a/locales/en/games.heist.json b/locales/en/games.heist.json index d0e8905e2973..0cae16de7d5f 100644 --- a/locales/en/games.heist.json +++ b/locales/en/games.heist.json @@ -13,8 +13,8 @@ "result": { "0": "Everyone was mercilessly obliterated. This is slaughter.", "33": "Only 1/3 of the team get their money from the heist.", - "50": "Half of heist team was killed or catched by police.", - "99": "Some loses of heist team is nothing of what remaining crew have in theirs pockets.", + "50": "Half of heist team was killed or caught by police.", + "99": "Some loss of heist team is nothing compared to remaining crew have in their pockets.", "100": "God divinity, nobody is dead, everyone won!" }, "levels": { @@ -24,6 +24,6 @@ "nationalReserve": "National reserve", "federalReserve": "Federal reserve" }, - "results": "The heist payouts are: $users", + "results": "The heist payees are: $users", "andXMore": "and $count more..." } diff --git a/locales/en/integrations/discord.json b/locales/en/integrations/discord.json index 2ed786e08a5b..7e2ead2cf2ee 100644 --- a/locales/en/integrations/discord.json +++ b/locales/en/integrations/discord.json @@ -9,5 +9,5 @@ "announced-by": "Announced by sogeBot", "streamed-at": "Streamed At", "link-whisper": "Hello $tag, to link this Discord account with your Twitch account on $broadcaster channel, go to , login to your account and send this command to chat \n\n\t\t`$command $id`\n\nNOTE: This expires in 10 minutes.", - "check-your-dm": "check your DMs for steps to link your account." + "check-your-dm": "check your PMs for steps to link your account." } \ No newline at end of file diff --git a/locales/en/integrations/obswebsocket.json b/locales/en/integrations/obswebsocket.json index 1058ed4b6b59..88295310900f 100644 --- a/locales/en/integrations/obswebsocket.json +++ b/locales/en/integrations/obswebsocket.json @@ -2,6 +2,6 @@ "runTask": { "EntityNotFound": "$sender, there is no action set for id:$id!", "ParameterError": "$sender, you need to specify id!", - "UnknownError": "$sender, something went wrong. Check bot logs for additional informations." + "UnknownError": "$sender, something went wrong. Check bot logs for additional information." } } \ No newline at end of file diff --git a/locales/en/integrations/spotify.json b/locales/en/integrations/spotify.json index 9085e33b07df..1a90d3aae1f5 100644 --- a/locales/en/integrations/spotify.json +++ b/locales/en/integrations/spotify.json @@ -1,10 +1,10 @@ { - "song-not-found": "Sorry, $sender, track was not found on spotify", + "song-not-found": "Sorry, $sender, track was not found on Spotify", "song-requested": "$sender, you requested song $name from $artist", "not-banned-song-not-playing": "$sender, no song is currently playing to ban.", "song-banned": "$sender, song $name from $artist is banned.", "song-unbanned": "$sender, song $name from $artist is unbanned.", - "song-not-found-in-banlist": "$sender, song by spotifyURI $uri was not found in ban list.", + "song-not-found-in-banlist": "$sender, song by SpotifyURI $uri was not found in ban list.", "cannot-request-song-is-banned": "$sender, cannot request banned song $name from $artist.", "cannot-request-song-from-unapproved-artist": "$sender, cannot request song from unapproved artist.", "no-songs-found-in-history": "$sender, there is currently no song in history list.", diff --git a/locales/en/ui.dialog.json b/locales/en/ui.dialog.json index 15701cc6e2c3..c264a1c24e97 100644 --- a/locales/en/ui.dialog.json +++ b/locales/en/ui.dialog.json @@ -64,7 +64,7 @@ "visibility": "Visibility", "reset": "Reset " }, - "changesPending": "Your changes was not saved.", + "changesPending": "Your changes were not saved.", "formNotValid": "Form is invalid.", "nothingToShow": "Nothing to show here." } \ No newline at end of file diff --git a/locales/en/ui.menu.json b/locales/en/ui.menu.json index a5d4a6a71b58..bf1c90352f69 100644 --- a/locales/en/ui.menu.json +++ b/locales/en/ui.menu.json @@ -33,7 +33,7 @@ "overlays": "Overlays", "gallery": "Media gallery", "games": "Games", - "spotify": "Spotify", + "Spotify": "Spotify", "integrations": "Integrations", "customvariables": "Custom variables", "registry": "Registry", @@ -46,7 +46,7 @@ "queue": "Queue", "playlist": "Playlist", "bannedsongs": "Banned songs", - "spotifybannedsongs": "Spotify banned songs", + "Spotifybannedsongs": "Spotify banned songs", "duel": "Duel", "fightme": "FightMe", "seppuku": "Seppuku", @@ -66,7 +66,7 @@ "currency": "Currency", "eventlist": "Eventlist", "clipscarousel": "Clips carousel", - "streamlabs": "Streamlabs", + "Streamlabs": "Streamlabs", "streamelements": "StreamElements", "donationalerts": "DonationAlerts.ru", "qiwi": "Qiwi Donate", diff --git a/locales/en/ui.page.settings.overlays.carousel.json b/locales/en/ui.page.settings.overlays.carousel.json index 7ca51081f13f..03e04ec04620 100644 --- a/locales/en/ui.page.settings.overlays.carousel.json +++ b/locales/en/ui.page.settings.overlays.carousel.json @@ -1,8 +1,5 @@ { "options": "options", - "popover": { - "are_you_sure_you_want_to_delete_this_image": "Are you sure to delete this image?" - }, "button": { "update": "Update", "fix_your_errors_first": "Fix errors before save" diff --git a/locales/en/ui.systems.cooldown.json b/locales/en/ui.systems.cooldown.json index 064403519d26..aedd6167542e 100644 --- a/locales/en/ui.systems.cooldown.json +++ b/locales/en/ui.systems.cooldown.json @@ -2,8 +2,8 @@ "notify-as-whisper": "Notify as whisper", "settings": { "enabled": "Status", - "cooldownNotifyAsWhisper": "Whisper cooldown informations", - "cooldownNotifyAsChat": "Chat message cooldown informations", + "cooldownNotifyAsWhisper": "Whisper cooldown information", + "cooldownNotifyAsChat": "Chat message cooldown information", "defaultCooldownOfCommandsInSeconds": "Default cooldown for commands (in seconds)", "defaultCooldownOfKeywordsInSeconds": "Default cooldown for keywords (in seconds)" } diff --git a/locales/en/ui.systems.raffles.json b/locales/en/ui.systems.raffles.json index 9b8075f19cc1..30b7dfaad901 100644 --- a/locales/en/ui.systems.raffles.json +++ b/locales/en/ui.systems.raffles.json @@ -18,7 +18,7 @@ }, "allowOverTicketing": { "title": "Allow over ticketing", - "help": "Allow user join raffle with over ticket of his points. E.g. user have 10 points but can join with !raffle 100 which will use all of his points." + "help": "Allow user to join raffle by over ticketing their points. E.g. user has 10 points but can write !raffle 100 which will use all of their points." }, "raffleAnnounceInterval": { "title": "Announce interval", diff --git a/locales/en/ui/core/general.json b/locales/en/ui/core/general.json index cfe609bf2baa..14b22b76c42f 100644 --- a/locales/en/ui/core/general.json +++ b/locales/en/ui/core/general.json @@ -3,7 +3,7 @@ "lang": "Bot language", "numberFormat": "Format of numbers in chat", "gracefulExitEachXHours": { - "title": "Graceful exit each X hours", + "title": "Graceful exit every X hours", "help": "0 - disabled" }, "shouldGracefulExitHelp": "Enabling of graceful exit is recommended if your bot is running endlessly on server. You should have bot running on pm2 (or similar service) or have it dockerized to ensure automatic bot restart. Bot won't gracefully exit when stream is online." diff --git a/locales/en/ui/core/permissions.json b/locales/en/ui/core/permissions.json index 07aec34c0c05..4246579b8ca4 100644 --- a/locales/en/ui/core/permissions.json +++ b/locales/en/ui/core/permissions.json @@ -11,7 +11,7 @@ "loading": "loading", "permissionNotFoundInDatabase": "Permission not found in database, please save before testing user.", "userHaveNoAccessToThisPermissionGroup": "User $username DOESN'T have access to this permission group.", - "userHaveAccessToThisPermissionGroup": "User $username HAVE access to this permission group.", + "userHaveAccessToThisPermissionGroup": "User $username HAS access to this permission group.", "accessDirectlyThrough": "Direct access through", "accessThroughHigherPermission": "Access through higher permission", "somethingWentWrongUserWasNotFoundInBotDatabase": "Something went wrong, user $username was not found in bot database.", diff --git a/locales/en/ui/core/socket.json b/locales/en/ui/core/socket.json index 38f1582f47af..b94b1873d0d0 100644 --- a/locales/en/ui/core/socket.json +++ b/locales/en/ui/core/socket.json @@ -1,6 +1,6 @@ { "settings": { - "purgeAllConnections": "Purge All Authenticated Connection (yours as well)", + "purgeAllConnections": "Purge All Authenticated Connections (yours as well)", "accessTokenExpirationTime": "Access Token Expiration Time (seconds)", "refreshTokenExpirationTime": "Refresh Token Expiration Time (seconds)", "socketToken": { diff --git a/locales/en/ui/integrations/discord.json b/locales/en/ui/integrations/discord.json index baa645ab9193..b78041394e38 100644 --- a/locales/en/ui/integrations/discord.json +++ b/locales/en/ui/integrations/discord.json @@ -6,7 +6,7 @@ "sendOnlineAnnounceToChannel": "Send online announcement to this channel", "onlineAnnounceMessage": "Message in online announcement (can include mentions)", "sendAnnouncesToChannel": "Setup sending of announcements to channels", - "deleteMessagesAfterWhile": "Delete message after while", + "deleteMessagesAfterWhile": "Delete message after a while", "clientId": "ClientId", "token": "Token", "joinToServerBtn": "Click to join bot to your server", diff --git a/locales/en/ui/integrations/pubg.json b/locales/en/ui/integrations/pubg.json index 166aef5d932e..f9dfe45f3b41 100644 --- a/locales/en/ui/integrations/pubg.json +++ b/locales/en/ui/integrations/pubg.json @@ -10,7 +10,7 @@ "playerId": "Player ID", "seasonId": { "title": "Season ID", - "help": "Current season ID is being fetch every hour." + "help": "Current season ID is being fetched every hour." }, "rankedGameModeStatsCustomization": "Customized message for ranked stats", "gameModeStatsCustomization": "Customized message for normal stats" diff --git a/locales/en/ui/integrations/spotify.json b/locales/en/ui/integrations/spotify.json index e3f885ae2486..98448ba0a2bd 100644 --- a/locales/en/ui/integrations/spotify.json +++ b/locales/en/ui/integrations/spotify.json @@ -20,7 +20,7 @@ "clientSecret": "clientSecret", "manualDeviceId": { "title": "Forced Device ID", - "help": "Empty = disabled, force spotify device ID to be used to queue songs. Check logs for current active device or use button when playing song for at least 10 seconds." + "help": "Empty = disabled, force Spotify device ID to be used to queue songs. Check logs for current active device or use button when playing song for at least 10 seconds." }, "redirectURI": "redirectURI", "format": { diff --git a/locales/en/ui/integrations/streamlabs.json b/locales/en/ui/integrations/streamlabs.json index 281b65b91b5b..b51f4cade90b 100644 --- a/locales/en/ui/integrations/streamlabs.json +++ b/locales/en/ui/integrations/streamlabs.json @@ -7,8 +7,8 @@ }, "accessToken": { "title": "Access token", - "help": "Get your access token at https://www.sogebot.xyz/integrations/#StreamLabs" + "help": "Get your access token at https://www.sogebot.xyz/integrations/#Streamlabs" }, - "accessTokenBtn": "StreamLabs access token generator" + "accessTokenBtn": "Streamlabs access token generator" } } \ No newline at end of file diff --git a/locales/en/ui/integrations/tipeeestream.json b/locales/en/ui/integrations/tipeeestream.json index 880b7bcfe40a..69dd315af988 100644 --- a/locales/en/ui/integrations/tipeeestream.json +++ b/locales/en/ui/integrations/tipeeestream.json @@ -3,7 +3,7 @@ "enabled": "Status", "apiKey": { "title": "Api key", - "help": "Get socket token from tipeeestream dashboard -> API -> Your API Key" + "help": "Get socket token from TipeeeStream dashboard -> API -> Your API Key" } } } diff --git a/locales/en/ui/registry/goals.json b/locales/en/ui/registry/goals.json index 8c486828db70..c6e6eb416cc6 100644 --- a/locales/en/ui/registry/goals.json +++ b/locales/en/ui/registry/goals.json @@ -1,8 +1,8 @@ { "addGoalGroup": "Add Goal Group", "addGoal": "Add Goal", - "newGoal": "new Goal", - "newGoalGroup": "new Goal Group", + "newGoal": "New Goal", + "newGoalGroup": "New Goal Group", "goals": "Goals", "general": "General", "display": "Display", diff --git a/locales/es/ui.menu.json b/locales/es/ui.menu.json index a5d4a6a71b58..4a4e47db21ed 100644 --- a/locales/es/ui.menu.json +++ b/locales/es/ui.menu.json @@ -66,7 +66,7 @@ "currency": "Currency", "eventlist": "Eventlist", "clipscarousel": "Clips carousel", - "streamlabs": "Streamlabs", + "Streamlabs": "Streamlabs", "streamelements": "StreamElements", "donationalerts": "DonationAlerts.ru", "qiwi": "Qiwi Donate", diff --git a/locales/es/ui.systems.raffles.json b/locales/es/ui.systems.raffles.json index 9b8075f19cc1..30b7dfaad901 100644 --- a/locales/es/ui.systems.raffles.json +++ b/locales/es/ui.systems.raffles.json @@ -18,7 +18,7 @@ }, "allowOverTicketing": { "title": "Allow over ticketing", - "help": "Allow user join raffle with over ticket of his points. E.g. user have 10 points but can join with !raffle 100 which will use all of his points." + "help": "Allow user to join raffle by over ticketing their points. E.g. user has 10 points but can write !raffle 100 which will use all of their points." }, "raffleAnnounceInterval": { "title": "Announce interval", diff --git a/locales/es/ui/core/general.json b/locales/es/ui/core/general.json index cfe609bf2baa..14b22b76c42f 100644 --- a/locales/es/ui/core/general.json +++ b/locales/es/ui/core/general.json @@ -3,7 +3,7 @@ "lang": "Bot language", "numberFormat": "Format of numbers in chat", "gracefulExitEachXHours": { - "title": "Graceful exit each X hours", + "title": "Graceful exit every X hours", "help": "0 - disabled" }, "shouldGracefulExitHelp": "Enabling of graceful exit is recommended if your bot is running endlessly on server. You should have bot running on pm2 (or similar service) or have it dockerized to ensure automatic bot restart. Bot won't gracefully exit when stream is online." diff --git a/locales/es/ui/core/permissions.json b/locales/es/ui/core/permissions.json index 07aec34c0c05..4246579b8ca4 100644 --- a/locales/es/ui/core/permissions.json +++ b/locales/es/ui/core/permissions.json @@ -11,7 +11,7 @@ "loading": "loading", "permissionNotFoundInDatabase": "Permission not found in database, please save before testing user.", "userHaveNoAccessToThisPermissionGroup": "User $username DOESN'T have access to this permission group.", - "userHaveAccessToThisPermissionGroup": "User $username HAVE access to this permission group.", + "userHaveAccessToThisPermissionGroup": "User $username HAS access to this permission group.", "accessDirectlyThrough": "Direct access through", "accessThroughHigherPermission": "Access through higher permission", "somethingWentWrongUserWasNotFoundInBotDatabase": "Something went wrong, user $username was not found in bot database.", diff --git a/locales/es/ui/core/socket.json b/locales/es/ui/core/socket.json index 38f1582f47af..b94b1873d0d0 100644 --- a/locales/es/ui/core/socket.json +++ b/locales/es/ui/core/socket.json @@ -1,6 +1,6 @@ { "settings": { - "purgeAllConnections": "Purge All Authenticated Connection (yours as well)", + "purgeAllConnections": "Purge All Authenticated Connections (yours as well)", "accessTokenExpirationTime": "Access Token Expiration Time (seconds)", "refreshTokenExpirationTime": "Refresh Token Expiration Time (seconds)", "socketToken": { diff --git a/locales/es/ui/integrations/discord.json b/locales/es/ui/integrations/discord.json index baa645ab9193..b78041394e38 100644 --- a/locales/es/ui/integrations/discord.json +++ b/locales/es/ui/integrations/discord.json @@ -6,7 +6,7 @@ "sendOnlineAnnounceToChannel": "Send online announcement to this channel", "onlineAnnounceMessage": "Message in online announcement (can include mentions)", "sendAnnouncesToChannel": "Setup sending of announcements to channels", - "deleteMessagesAfterWhile": "Delete message after while", + "deleteMessagesAfterWhile": "Delete message after a while", "clientId": "ClientId", "token": "Token", "joinToServerBtn": "Click to join bot to your server", diff --git a/locales/es/ui/integrations/pubg.json b/locales/es/ui/integrations/pubg.json index 166aef5d932e..f9dfe45f3b41 100644 --- a/locales/es/ui/integrations/pubg.json +++ b/locales/es/ui/integrations/pubg.json @@ -10,7 +10,7 @@ "playerId": "Player ID", "seasonId": { "title": "Season ID", - "help": "Current season ID is being fetch every hour." + "help": "Current season ID is being fetched every hour." }, "rankedGameModeStatsCustomization": "Customized message for ranked stats", "gameModeStatsCustomization": "Customized message for normal stats" diff --git a/locales/es/ui/integrations/streamlabs.json b/locales/es/ui/integrations/streamlabs.json index 281b65b91b5b..b51f4cade90b 100644 --- a/locales/es/ui/integrations/streamlabs.json +++ b/locales/es/ui/integrations/streamlabs.json @@ -7,8 +7,8 @@ }, "accessToken": { "title": "Access token", - "help": "Get your access token at https://www.sogebot.xyz/integrations/#StreamLabs" + "help": "Get your access token at https://www.sogebot.xyz/integrations/#Streamlabs" }, - "accessTokenBtn": "StreamLabs access token generator" + "accessTokenBtn": "Streamlabs access token generator" } } \ No newline at end of file diff --git a/locales/fr/ui.menu.json b/locales/fr/ui.menu.json index c7559cff4a4d..72781b96b7ea 100644 --- a/locales/fr/ui.menu.json +++ b/locales/fr/ui.menu.json @@ -66,7 +66,7 @@ "currency": "Devise", "eventlist": "Eventlist", "clipscarousel": "Clips carousel", - "streamlabs": "Streamlabs", + "Streamlabs": "Streamlabs", "streamelements": "StreamElements", "donationalerts": "DonationAlerts.ru", "qiwi": "Qiwi Donate", diff --git a/locales/fr/ui.systems.raffles.json b/locales/fr/ui.systems.raffles.json index e8ce8703e3f9..242976885691 100644 --- a/locales/fr/ui.systems.raffles.json +++ b/locales/fr/ui.systems.raffles.json @@ -18,7 +18,7 @@ }, "allowOverTicketing": { "title": "Allow over ticketing", - "help": "Allow user join raffle with over ticket of his points. E.g. user have 10 points but can join with !raffle 100 which will use all of his points." + "help": "Allow user to join raffle by over ticketing their points. E.g. user has 10 points but can write !raffle 100 which will use all of their points." }, "raffleAnnounceInterval": { "title": "Announce interval", diff --git a/locales/fr/ui/integrations/streamlabs.json b/locales/fr/ui/integrations/streamlabs.json index a5f6875adab1..ddadf4a1a383 100644 --- a/locales/fr/ui/integrations/streamlabs.json +++ b/locales/fr/ui/integrations/streamlabs.json @@ -7,8 +7,8 @@ }, "accessToken": { "title": "Access token", - "help": "Obtenez votre token d'accès sur https://www.sogebot.xyz/integrations/#StreamLabs" + "help": "Obtenez votre token d'accès sur https://www.sogebot.xyz/integrations/#Streamlabs" }, - "accessTokenBtn": "Générateur de token d'accès StreamLabs" + "accessTokenBtn": "Générateur de token d'accès Streamlabs" } } \ No newline at end of file diff --git a/locales/it/ui.menu.json b/locales/it/ui.menu.json index a1039ed246fa..b7f073906ce6 100644 --- a/locales/it/ui.menu.json +++ b/locales/it/ui.menu.json @@ -66,7 +66,7 @@ "currency": "Valuta", "eventlist": "Lista Eventi", "clipscarousel": "Carosello di clip", - "streamlabs": "Streamlabs", + "Streamlabs": "Streamlabs", "streamelements": "StreamElements", "donationalerts": "DonationAlerts.ru", "qiwi": "Qiwi Donate", diff --git a/locales/it/ui/integrations/streamlabs.json b/locales/it/ui/integrations/streamlabs.json index 66bb0f01e993..3a8060ddf716 100644 --- a/locales/it/ui/integrations/streamlabs.json +++ b/locales/it/ui/integrations/streamlabs.json @@ -7,8 +7,8 @@ }, "accessToken": { "title": "Token di accesso", - "help": "Ottieni il tuo token di accesso su https://www.sogebot.xyz/integrations/#StreamLabs" + "help": "Ottieni il tuo token di accesso su https://www.sogebot.xyz/integrations/#Streamlabs" }, - "accessTokenBtn": "Generatore di token di accesso StreamLabs" + "accessTokenBtn": "Generatore di token di accesso Streamlabs" } } \ No newline at end of file diff --git a/locales/ja/ui.menu.json b/locales/ja/ui.menu.json index 33bc362892da..9fe21b6fa0dd 100644 --- a/locales/ja/ui.menu.json +++ b/locales/ja/ui.menu.json @@ -66,7 +66,7 @@ "currency": "通貨", "eventlist": "イベントリスト", "clipscarousel": "クリップカルーセル", - "streamlabs": "Streamlabs", + "Streamlabs": "Streamlabs", "streamelements": "StreamElements", "donationalerts": "DonationAlerts.ru", "qiwi": "Qiwi Donate", diff --git a/locales/ja/ui/core/socket.json b/locales/ja/ui/core/socket.json index a9abe531bcf7..7bd7a7d8ff25 100644 --- a/locales/ja/ui/core/socket.json +++ b/locales/ja/ui/core/socket.json @@ -1,6 +1,6 @@ { "settings": { - "purgeAllConnections": "Purge All Authenticated Connection (yours as well)", + "purgeAllConnections": "Purge All Authenticated Connections (yours as well)", "accessTokenExpirationTime": "Access Token Expiration Time (seconds)", "refreshTokenExpirationTime": "Refresh Token Expiration Time (seconds)", "socketToken": { diff --git a/locales/ja/ui/integrations/discord.json b/locales/ja/ui/integrations/discord.json index ea313b391c37..052cdeab5d38 100644 --- a/locales/ja/ui/integrations/discord.json +++ b/locales/ja/ui/integrations/discord.json @@ -6,7 +6,7 @@ "sendOnlineAnnounceToChannel": "Send online announcement to this channel", "onlineAnnounceMessage": "Message in online announcement (can include mentions)", "sendAnnouncesToChannel": "Setup sending of announcements to channels", - "deleteMessagesAfterWhile": "Delete message after while", + "deleteMessagesAfterWhile": "Delete message after a while", "clientId": "ClientId", "token": "Token", "joinToServerBtn": "クリックしてあなたのサーバーにボットを参加する", diff --git a/locales/ja/ui/integrations/pubg.json b/locales/ja/ui/integrations/pubg.json index a63d92e30acb..cf7c6384d83b 100644 --- a/locales/ja/ui/integrations/pubg.json +++ b/locales/ja/ui/integrations/pubg.json @@ -10,7 +10,7 @@ "playerId": "Player ID", "seasonId": { "title": "Season ID", - "help": "Current season ID is being fetch every hour." + "help": "Current season ID is being fetched every hour." }, "rankedGameModeStatsCustomization": "Customized message for ranked stats", "gameModeStatsCustomization": "Customized message for normal stats" diff --git a/locales/ja/ui/integrations/streamlabs.json b/locales/ja/ui/integrations/streamlabs.json index 1584c8a96032..b5e3c706d58d 100644 --- a/locales/ja/ui/integrations/streamlabs.json +++ b/locales/ja/ui/integrations/streamlabs.json @@ -7,8 +7,8 @@ }, "accessToken": { "title": "Access token", - "help": "アクセストークンは https://www.sogebot.xyz/integrations/#StreamLabs で入手してください" + "help": "アクセストークンは https://www.sogebot.xyz/integrations/#Streamlabs で入手してください" }, - "accessTokenBtn": "StreamLabs アクセストークンジェネレーター" + "accessTokenBtn": "Streamlabs アクセストークンジェネレーター" } } \ No newline at end of file diff --git a/locales/nb/ui.menu.json b/locales/nb/ui.menu.json index 96d794eb452c..4a854995f4f7 100644 --- a/locales/nb/ui.menu.json +++ b/locales/nb/ui.menu.json @@ -66,7 +66,7 @@ "currency": "Valuta", "eventlist": "Hendelsesliste", "clipscarousel": "Klippkarusell", - "streamlabs": "Streamlabs", + "Streamlabs": "Streamlabs", "streamelements": "StreamElements", "donationalerts": "DonationAlerts.ru", "qiwi": "Qiwi Doner", diff --git a/locales/nb/ui/integrations/streamlabs.json b/locales/nb/ui/integrations/streamlabs.json index 76496946c444..b2683b0832e6 100644 --- a/locales/nb/ui/integrations/streamlabs.json +++ b/locales/nb/ui/integrations/streamlabs.json @@ -7,7 +7,7 @@ }, "accessToken": { "title": "Adgangstoken", - "help": "Få din adgangstoken på https://www.sogebot.xyz/integrations/#StreamLabs" + "help": "Få din adgangstoken på https://www.sogebot.xyz/integrations/#Streamlabs" }, "accessTokenBtn": "Streamlabs adgangstokengenerator" } diff --git a/locales/pt/ui.menu.json b/locales/pt/ui.menu.json index 20ff575140bf..90b18f245aad 100644 --- a/locales/pt/ui.menu.json +++ b/locales/pt/ui.menu.json @@ -66,7 +66,7 @@ "currency": "Unidade monetária", "eventlist": "Lista de eventos", "clipscarousel": "Carrossel de clipes", - "streamlabs": "Streamlabs", + "Streamlabs": "Streamlabs", "streamelements": "StreamElements", "donationalerts": "DonationAlerts.ru", "qiwi": "Qiwi Donate", diff --git a/locales/pt/ui/integrations/streamlabs.json b/locales/pt/ui/integrations/streamlabs.json index baf9e81e8aee..e4d779009b18 100644 --- a/locales/pt/ui/integrations/streamlabs.json +++ b/locales/pt/ui/integrations/streamlabs.json @@ -7,8 +7,8 @@ }, "accessToken": { "title": "Token de acesso", - "help": "Obtenha seu token de acesso em https://www.sogebot.xyz/integrations/#StreamLabs" + "help": "Obtenha seu token de acesso em https://www.sogebot.xyz/integrations/#Streamlabs" }, - "accessTokenBtn": "Gerador de token de acesso StreamLabs" + "accessTokenBtn": "Gerador de token de acesso Streamlabs" } } \ No newline at end of file diff --git a/locales/ru/ui.menu.json b/locales/ru/ui.menu.json index fe2a2616fc97..37c06019d539 100644 --- a/locales/ru/ui.menu.json +++ b/locales/ru/ui.menu.json @@ -66,7 +66,7 @@ "currency": "Валюта", "eventlist": "Список событий", "clipscarousel": "Карусель клипов", - "streamlabs": "Streamlabs", + "Streamlabs": "Streamlabs", "streamelements": "StreamElements", "donationalerts": "DonationAlerts.ru", "qiwi": "Qiwi Donate", diff --git a/locales/ru/ui/integrations/streamlabs.json b/locales/ru/ui/integrations/streamlabs.json index e8de1c37cd3b..605a8a4a4617 100644 --- a/locales/ru/ui/integrations/streamlabs.json +++ b/locales/ru/ui/integrations/streamlabs.json @@ -7,8 +7,8 @@ }, "accessToken": { "title": "Access token", - "help": "Получить ваш доступ по адресу https://www.sogebot.xyz/integrations/#StreamLabs" + "help": "Получить ваш доступ по адресу https://www.sogebot.xyz/integrations/#Streamlabs" }, - "accessTokenBtn": "Генератор токена доступа к StreamLabs" + "accessTokenBtn": "Генератор токена доступа к Streamlabs" } } \ No newline at end of file diff --git a/locales/uk/ui.menu.json b/locales/uk/ui.menu.json index 12eb4c389c19..657ba4e04570 100644 --- a/locales/uk/ui.menu.json +++ b/locales/uk/ui.menu.json @@ -66,7 +66,7 @@ "currency": "Валюта", "eventlist": "Список подій", "clipscarousel": "Карусель кліпів", - "streamlabs": "Streamlabs", + "Streamlabs": "Streamlabs", "streamelements": "StreamElements", "donationalerts": "DonationAlerts.ru", "qiwi": "Qiwi Donate", diff --git a/locales/uk/ui.systems.raffles.json b/locales/uk/ui.systems.raffles.json index 9b8075f19cc1..30b7dfaad901 100644 --- a/locales/uk/ui.systems.raffles.json +++ b/locales/uk/ui.systems.raffles.json @@ -18,7 +18,7 @@ }, "allowOverTicketing": { "title": "Allow over ticketing", - "help": "Allow user join raffle with over ticket of his points. E.g. user have 10 points but can join with !raffle 100 which will use all of his points." + "help": "Allow user to join raffle by over ticketing their points. E.g. user has 10 points but can write !raffle 100 which will use all of their points." }, "raffleAnnounceInterval": { "title": "Announce interval", diff --git a/locales/uk/ui/integrations/pubg.json b/locales/uk/ui/integrations/pubg.json index 42ad7e5ddd26..8206fd8ee4b7 100644 --- a/locales/uk/ui/integrations/pubg.json +++ b/locales/uk/ui/integrations/pubg.json @@ -10,7 +10,7 @@ "playerId": "ID Гравця", "seasonId": { "title": "Ідентифікатор сезону", - "help": "Current season ID is being fetch every hour." + "help": "Current season ID is being fetched every hour." }, "rankedGameModeStatsCustomization": "Customized message for ranked stats", "gameModeStatsCustomization": "Customized message for normal stats" diff --git a/locales/uk/ui/integrations/streamlabs.json b/locales/uk/ui/integrations/streamlabs.json index 68940fdd0955..b401eb35be9e 100644 --- a/locales/uk/ui/integrations/streamlabs.json +++ b/locales/uk/ui/integrations/streamlabs.json @@ -7,8 +7,8 @@ }, "accessToken": { "title": "Access token", - "help": "Отримати свій токен доступу за адресою https://www.sogebot.xyz/integrations/#StreamLabs" + "help": "Отримати свій токен доступу за адресою https://www.sogebot.xyz/integrations/#Streamlabs" }, - "accessTokenBtn": "Генератор токена доступу StreamLabs" + "accessTokenBtn": "Генератор токена доступу Streamlabs" } } \ No newline at end of file diff --git a/src/integrations/streamlabs.ts b/src/integrations/streamlabs.ts index ea862276c24a..28cfe2e5088a 100644 --- a/src/integrations/streamlabs.ts +++ b/src/integrations/streamlabs.ts @@ -105,13 +105,13 @@ class Streamlabs extends Integration { if (this.enabled && this.accessToken.length > 0) { this.getMe(); const after = String(this.afterDonationId).length > 0 ? `&after=${this.afterDonationId}` : ''; - const url = 'https://streamlabs.com/api/v1.0/donations?access_token=' + this.accessToken + after; + const url = 'https://Streamlabs.com/api/v1.0/donations?access_token=' + this.accessToken + after; try { const result = (await axios.get(url)).data; - debug('streamlabs', url); - debug('streamlabs', result); + debug('Streamlabs', url); + debug('Streamlabs', result); ioServer?.emit('api.stats', { - method: 'GET', data: result, timestamp: Date.now(), call: 'streamlabs', api: 'other', endpoint: url, code: 200, + method: 'GET', data: result, timestamp: Date.now(), call: 'Streamlabs', api: 'other', endpoint: url, code: 200, }); let donationIdSet = false; for (const item of result.data) { @@ -148,11 +148,11 @@ class Streamlabs extends Integration { } catch (e: any) { if (e.isAxiosError) { ioServer?.emit('api.stats', { - method: 'GET', data: e.message, timestamp: Date.now(), call: 'streamlabs', api: 'other', endpoint: url, code: e.response?.status ?? 'n/a', + method: 'GET', data: e.message, timestamp: Date.now(), call: 'Streamlabs', api: 'other', endpoint: url, code: e.response?.status ?? 'n/a', }); } else { ioServer?.emit('api.stats', { - method: 'GET', data: e.stack, timestamp: Date.now(), call: 'streamlabs', api: 'other', endpoint: url, code: 0, + method: 'GET', data: e.stack, timestamp: Date.now(), call: 'Streamlabs', api: 'other', endpoint: url, code: 0, }); } if (e.message.includes('ETIMEDOUT')) { @@ -167,12 +167,12 @@ class Streamlabs extends Integration { async getSocketToken() { if (this.enabled && this.accessToken.length > 0 ) { try { - const url = 'https://streamlabs.com/api/v1.0/socket/token?access_token=' + this.accessToken; + const url = 'https://Streamlabs.com/api/v1.0/socket/token?access_token=' + this.accessToken; const result = (await axios.get(url)).data; this.socketToken = result.socket_token; } catch (e) { if (this.socketToken === '') { - warning('STREAMLABS: Couldn\'t fetch socket token. Will use only REST API polling.'); + warning('Streamlabs: Couldn\'t fetch socket token. Will use only REST API polling.'); } } } @@ -180,12 +180,12 @@ class Streamlabs extends Integration { async getMe() { if (this.enabled && this.accessToken.length > 0) { - const url = 'https://streamlabs.com/api/v1.0/user?access_token=' + this.accessToken; + const url = 'https://Streamlabs.com/api/v1.0/user?access_token=' + this.accessToken; const result = (await axios.get(url)).data; - if (this.userName !== result.streamlabs.username) { - info('STREAMLABS: Connected as ' + result.streamlabs.username); + if (this.userName !== result.Streamlabs.username) { + info('Streamlabs: Connected as ' + result.Streamlabs.username); } - this.userName = result.streamlabs.username; + this.userName = result.Streamlabs.username; } else { this.userName = ''; } @@ -200,7 +200,7 @@ class Streamlabs extends Integration { this.userName = ''; this.accessToken = ''; this.disconnect(); - info(`STREAMLABS: User access revoked.`); + info(`Streamlabs: User access revoked.`); } @Post('/', { @@ -221,18 +221,18 @@ class Streamlabs extends Integration { return; } - this.socketToStreamlabs = io('https://sockets.streamlabs.com?token=' + this.socketToken); + this.socketToStreamlabs = io('https://sockets.Streamlabs.com?token=' + this.socketToken); this.socketToStreamlabs.on('reconnect_attempt', () => { - info(chalk.yellow('STREAMLABS:') + ' Trying to reconnect to service'); + info(chalk.yellow('Streamlabs:') + ' Trying to reconnect to service'); }); this.socketToStreamlabs.on('connect', () => { - info(chalk.yellow('STREAMLABS:') + ' Successfully connected socket to service'); + info(chalk.yellow('Streamlabs:') + ' Successfully connected socket to service'); }); this.socketToStreamlabs.on('disconnect', () => { - info(chalk.yellow('STREAMLABS:') + ' Socket disconnected from service'); + info(chalk.yellow('Streamlabs:') + ' Socket disconnected from service'); if (this.socketToStreamlabs) { this.socketToStreamlabs.open(); } @@ -248,7 +248,7 @@ class Streamlabs extends Integration { for (const event of eventData.message) { const timestamp = (event.created_at * 1000) || Date.now(); - debug('streamlabs', event); + debug('Streamlabs', event); if (!event.isTest) { const user = await users.getUserByUsername(event.from.toLowerCase()); const tips = await AppDataSource.getRepository(UserTip).find({ where: { userId: user.userId } }); @@ -307,7 +307,7 @@ class Streamlabs extends Integration { eventId: ev?.id ?? null, event: 'tip', name: event.from.toLowerCase(), - service: 'streamlabs', + service: 'Streamlabs', tier: null, amount: Number(parseFloat(event.amount).toFixed(2)), currency: event.currency, diff --git a/test/tests/games/heist.js b/test/tests/games/heist.js index 84c024b2e623..b6681769803f 100644 --- a/test/tests/games/heist.js +++ b/test/tests/games/heist.js @@ -180,8 +180,8 @@ describe('Heist - !bankheist - @func2', () => { await message.isSentRaw([ 'Everyone was mercilessly obliterated. This is slaughter.', 'Only 1/3 of the team get their money from the heist.', - 'Half of heist team was killed or catched by police.', - 'Some loses of heist team is nothing of what remaining crew have in theirs pockets.', + 'Half of heist team was killed or caught by police.', + 'Some loss of heist team is nothing compared to remaining crew have in their pockets.', 'God divinity, nobody is dead, everyone won!', ], { userName: '__bot__' }); });