]> gitweb.factorcode.org Git - factor.git/commitdiff
irc.gitbot: update to be configurable.
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 9 May 2016 22:09:54 +0000 (15:09 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 9 May 2016 22:09:54 +0000 (15:09 -0700)
extra/irc/gitbot/gitbot.factor

index 4639a3a6fbbe92859c7f9d2edb74cd7bad180919..acd0b9d76b94053e0ad8e154bbc627a517712fd2 100644 (file)
@@ -2,11 +2,16 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: calendar debugger fry io io.encodings.utf8 io.launcher
 irc.client irc.client.chats kernel make mason.common mason.git
-math sequences threads timers ;
+math namespaces sequences threads timers ;
 IN: irc.gitbot
 
+SYMBOL: nickserv-handle
+SYMBOL: nickserv-password
+
 : bot-profile ( -- obj )
-    "irc.freenode.org" 6667 "stackoid" f <irc-profile> ;
+    "irc.freenode.org" 6667
+    nickserv-handle get "stackoid2" or
+    nickserv-password get <irc-profile> ;
 
 : bot-channel ( -- seq ) "#concatenative" ;