mirror of
https://code.dnix.de/da/flokatirc
synced 2026-07-27 07:39:44 +02:00
Quiz module: Earn points for solved questions.
This commit is contained in:
@@ -83,6 +83,7 @@ func main() {
|
||||
}
|
||||
}()
|
||||
|
||||
go Ping(bot)
|
||||
RegisterHandlers(bot)
|
||||
bot.HandleLoop()
|
||||
xlog.Info("Exiting")
|
||||
@@ -95,6 +96,13 @@ func RegisterHandlers(bot *ircx.Bot) {
|
||||
bot.HandleFunc(irc.PRIVMSG, PrivmsgHandler)
|
||||
}
|
||||
|
||||
func Ping(bot *ircx.Bot) {
|
||||
for {
|
||||
time.Sleep(1 * time.Minute)
|
||||
bot.Sender.Send(&irc.Message{Command: irc.PING})
|
||||
}
|
||||
}
|
||||
|
||||
func ConnectHandler(s ircx.Sender, m *irc.Message) {
|
||||
if *nspass != "" {
|
||||
xlog.Info("Authenticating with NickServ: %v, %v", *name, *nspass)
|
||||
|
||||
Reference in New Issue
Block a user