Пример #1
0
func main() {
	core.LoadConfig()
	ircbot := core.NewBot(
		core.Config.Nick,
		core.Config.Server,
		core.Config.Port)
	defer ircbot.Disconnect()
	modules.Load(ircbot)
	ircbot.Connect()
}
Пример #2
0
func HandleReload(_ []string, sender string, channel string) {
	if admin.CheckAdmin(sender) {
		core.LoadConfig()
		ReloadFunc()
	}
}