Comments and doc typos

This commit is contained in:
Bartuccio Antoine 2019-01-02 23:40:06 +01:00
parent a8d8b6d69e
commit 41be91c594
No known key found for this signature in database
GPG key ID: E7245548C53F904B
3 changed files with 7 additions and 7 deletions

View file

@ -2,7 +2,7 @@
* @Author: Bartuccio Antoine
* @Date: 2019-01-02 22:46:05
* @Last Modified by: Bartuccio Antoine
* @Last Modified time: 2019-01-02 22:53:48
* @Last Modified time: 2019-01-03 00:02:48
*/
package commands
@ -16,7 +16,7 @@ import (
func RegisterPrivate(m *tb.Message) {
if m.Chat.Type != tb.ChatPrivate {
shared.Bot.Send(m.Chat, "Cette commande n'est disponnible qu'en messages privés")
shared.Bot.Send(m.Chat, "Cette commande n'est disponible qu'en messages privés")
}
if m.Sender.Username == "" {
@ -31,7 +31,7 @@ func RegisterPrivate(m *tb.Message) {
func UnRegisterPrivate(m *tb.Message) {
if m.Chat.Type != tb.ChatPrivate {
shared.Bot.Send(m.Chat, "Cette commande n'est disponnible qu'en messages privés")
shared.Bot.Send(m.Chat, "Cette commande n'est disponible qu'en messages privés")
}
if m.Sender.Username == "" {

View file

@ -320,7 +320,7 @@ func Retrieve(m *tb.Message) {
shared.Bot.Send(m.Chat, "--- Messages publiés ---")
}
// ToggleUpdates activate/deactivate automatic updates from the chat it's emmited
// ToggleUpdates activate/deactivate automatic updates from the current chat
// Command syntax : /toggleupdates
func ToggleUpdates(m *tb.Message) {
@ -348,7 +348,7 @@ func ToggleUpdates(m *tb.Message) {
}
if !wasSuscribed {
shared.Bot.Send(m.Chat, "Vous n'êtes pas abonné au chat : "+m.Chat.Title)
shared.Bot.Send(m.Chat, "Vous n'ête pas abonné au chat : "+m.Chat.Title)
return
}