mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 09:00:10 +00:00
Telegram: close updates channel on restart
Also removed some references to email.
This commit is contained in:
parent
2d93b3b7ee
commit
51f2f4cc6a
@ -46,7 +46,7 @@
|
|||||||
"unknown": "Unknown",
|
"unknown": "Unknown",
|
||||||
"label": "Label",
|
"label": "Label",
|
||||||
"announce": "Announce",
|
"announce": "Announce",
|
||||||
"subject": "Email Subject",
|
"subject": "Subject",
|
||||||
"message": "Message",
|
"message": "Message",
|
||||||
"variables": "Variables",
|
"variables": "Variables",
|
||||||
"conditionals": "Conditionals",
|
"conditionals": "Conditionals",
|
||||||
@ -56,12 +56,12 @@
|
|||||||
"donate": "Donate",
|
"donate": "Donate",
|
||||||
"extendExpiry": "Extend expiry",
|
"extendExpiry": "Extend expiry",
|
||||||
"customizeEmails": "Customize Emails",
|
"customizeEmails": "Customize Emails",
|
||||||
"customizeEmailsDescription": "If you don't want to use jfa-go's email templates, you can create your own using Markdown.",
|
"customizeEmailsDescription": "If you don't want to use jfa-go's message templates, you can create your own using Markdown.",
|
||||||
"markdownSupported": "Markdown is supported.",
|
"markdownSupported": "Markdown is supported.",
|
||||||
"modifySettings": "Modify Settings",
|
"modifySettings": "Modify Settings",
|
||||||
"modifySettingsDescription": "Apply settings from an existing profile, or source them directly from a user.",
|
"modifySettingsDescription": "Apply settings from an existing profile, or source them directly from a user.",
|
||||||
"applyHomescreenLayout": "Apply homescreen layout",
|
"applyHomescreenLayout": "Apply homescreen layout",
|
||||||
"sendDeleteNotificationEmail": "Send notification email",
|
"sendDeleteNotificationEmail": "Send notification message",
|
||||||
"sendDeleteNotifiationExample": "Your account has been deleted.",
|
"sendDeleteNotifiationExample": "Your account has been deleted.",
|
||||||
"settingsRestart": "Restart",
|
"settingsRestart": "Restart",
|
||||||
"settingsRestarting": "Restarting…",
|
"settingsRestarting": "Restarting…",
|
||||||
@ -128,7 +128,7 @@
|
|||||||
"errorFailureCheckLogs": "Failed (check console/logs)",
|
"errorFailureCheckLogs": "Failed (check console/logs)",
|
||||||
"errorPartialFailureCheckLogs": "Partial failure (check console/logs)",
|
"errorPartialFailureCheckLogs": "Partial failure (check console/logs)",
|
||||||
"errorUserCreated": "Failed to create user {n}.",
|
"errorUserCreated": "Failed to create user {n}.",
|
||||||
"errorSendWelcomeEmail": "Failed to send welcome email (check console/logs)",
|
"errorSendWelcomeEmail": "Failed to send welcome message (check console/logs)",
|
||||||
"errorApplyUpdate": "Failed to apply update, try manually.",
|
"errorApplyUpdate": "Failed to apply update, try manually.",
|
||||||
"errorCheckUpdate": "Failed to check for update.",
|
"errorCheckUpdate": "Failed to check for update.",
|
||||||
"updateAvailable": "A new update is available, check settings.",
|
"updateAvailable": "A new update is available, check settings.",
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
"settingsRestarting": "Redémarrage…",
|
"settingsRestarting": "Redémarrage…",
|
||||||
"settingsRestart": "Redémarrer",
|
"settingsRestart": "Redémarrer",
|
||||||
"announce": "Annoncer",
|
"announce": "Annoncer",
|
||||||
"subject": "Sujet du courriel",
|
"subject": "Sujet",
|
||||||
"message": "Message",
|
"message": "Message",
|
||||||
"markdownSupported": "Markdown est pris en charge.",
|
"markdownSupported": "Markdown est pris en charge.",
|
||||||
"customizeEmailsDescription": "Si vous ne souhaitez pas utiliser les modèles d'e-mails de jfa-go, vous pouvez créer les vôtres à l'aide de Markdown.",
|
"customizeEmailsDescription": "Si vous ne souhaitez pas utiliser les modèles d'e-mails de jfa-go, vous pouvez créer les vôtres à l'aide de Markdown.",
|
||||||
|
@ -174,6 +174,7 @@ func (t *TelegramDaemon) run() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case <-t.ShutdownChannel:
|
case <-t.ShutdownChannel:
|
||||||
|
t.bot.StopReceivingUpdates()
|
||||||
t.ShutdownChannel <- "Down"
|
t.ShutdownChannel <- "Down"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user