Exemple #1
0
func HandlePartCommand(channels []string, sender string, fromchannel string) {
	if admin.CheckAdmin(sender) {
		for _, channel := range channels {
			if verify_channel(channel) {
				bot.SendPart(channel)
			}
		}
	}
}
Exemple #2
0
// Incoming event for @enable
func HandleEnable(_ []string, sender string, channel string) {
	if admin.CheckAdmin(sender) {
		disabled[channel] = false
		bot.SendMessage(channel, "Link reading enabled for this channel")
	}
}
Exemple #3
0
func HandleReload(_ []string, sender string, channel string) {
	if admin.CheckAdmin(sender) {
		core.LoadConfig()
		ReloadFunc()
	}
}