|
|
|
@ -4,10 +4,10 @@ $newyeardate = Get-Date -Month 1 -Day 1 -Year (Get-Date).Year -Format "yyyy/MM/d
|
|
|
|
|
|
|
|
|
|
if ($actualdate -eq $newyeardate) {
|
|
|
|
|
$newyeartext = "Happy New Year!"
|
|
|
|
|
$Uri1 = "https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=$($TargetLanguage)&dt=t&q=$newyeartext"
|
|
|
|
|
$Response = Invoke-RestMethod -Uri $Uri1 -Method Get
|
|
|
|
|
$Translation1 = $Response[0][0][0]
|
|
|
|
|
Write-Host $Translation1
|
|
|
|
|
$newyearUri = "https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=$($TargetLanguage)&dt=t&q=$newyeartext"
|
|
|
|
|
$Response = Invoke-RestMethod -Uri $newyearUri -Method Get
|
|
|
|
|
$newyearTranslation = $Response[0][0][0]
|
|
|
|
|
Write-Host $newyearTranslation
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Write-Host "https://discord.gg/medicat"
|
|
|
|
|