mirror of
https://git.klmp200.net/ALFRED/ALFRED.git
synced 2025-01-18 18:46:44 +01:00
Comments and doc typos
This commit is contained in:
parent
a8d8b6d69e
commit
41be91c594
@ -2,7 +2,7 @@
|
|||||||
* @Author: Bartuccio Antoine
|
* @Author: Bartuccio Antoine
|
||||||
* @Date: 2019-01-02 22:46:05
|
* @Date: 2019-01-02 22:46:05
|
||||||
* @Last Modified by: Bartuccio Antoine
|
* @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
|
package commands
|
||||||
@ -16,7 +16,7 @@ import (
|
|||||||
func RegisterPrivate(m *tb.Message) {
|
func RegisterPrivate(m *tb.Message) {
|
||||||
|
|
||||||
if m.Chat.Type != tb.ChatPrivate {
|
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 == "" {
|
if m.Sender.Username == "" {
|
||||||
@ -31,7 +31,7 @@ func RegisterPrivate(m *tb.Message) {
|
|||||||
func UnRegisterPrivate(m *tb.Message) {
|
func UnRegisterPrivate(m *tb.Message) {
|
||||||
|
|
||||||
if m.Chat.Type != tb.ChatPrivate {
|
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 == "" {
|
if m.Sender.Username == "" {
|
||||||
|
@ -320,7 +320,7 @@ func Retrieve(m *tb.Message) {
|
|||||||
shared.Bot.Send(m.Chat, "--- Messages publiés ---")
|
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
|
// Command syntax : /toggleupdates
|
||||||
func ToggleUpdates(m *tb.Message) {
|
func ToggleUpdates(m *tb.Message) {
|
||||||
|
|
||||||
@ -348,7 +348,7 @@ func ToggleUpdates(m *tb.Message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !wasSuscribed {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ The publish module intend to be a "multi-pin" feature for chats, allowing users
|
|||||||
|
|
||||||
### Publish
|
### Publish
|
||||||
|
|
||||||
**Description** : Publish a message to Alfred for this group chat and sends this message via MP to every subscriber of the group chat if the have not mutted it. The message can then be retrieved using the *retrieve* command.
|
**Description** : Publish a message to Alfred for this group chat and sends this message via MP to every subscriber of the group chat if they have not mutted it. The message can then be retrieved using the *retrieve* command.
|
||||||
|
|
||||||
**Usage location** : Group chat only
|
**Usage location** : Group chat only
|
||||||
|
|
||||||
@ -71,4 +71,4 @@ The publish module intend to be a "multi-pin" feature for chats, allowing users
|
|||||||
|
|
||||||
**Command syntax** : /toggleupdates
|
**Command syntax** : /toggleupdates
|
||||||
|
|
||||||
**note** : No notification can be send if the user has never done /registerprivate on a private chat with the bot, this is a limitation of the telegram bot API.
|
*note* : No notification can be send if the user has never done /registerprivate on a private chat with the bot, this is a limitation of the telegram bot API.
|
Loading…
Reference in New Issue
Block a user