Created
November 30, 2012 15:37
-
-
Save richo/4176487 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define-macro (symbol env-var default) | |
(let ((store (get-environment-variable ,env-var))) | |
(if store | |
(define symbol store) | |
(define symbol ,default)))) | |
(let ((port (get-environment-variable "DEVIOUS_PORT"))) | |
(if port | |
(define devious-port (string->number port)) | |
(define devious-port 6697))) | |
(let ((ssl (get-environment-variable "DEVIOUS_SSL"))) | |
(if ssl | |
(if (= ssl "false") | |
(define devious-ssl? #f) | |
(define devious-ssl? #t) | |
) | |
(define devious-ssl? #f) | |
)) | |
(define-from-env-or-default 'devious-server "DEVIOUS_SERVER" "irc.psych0tik.net") | |
(define-from-env-or-default 'devious-nick "DEVIOUS_NICK" "devious") | |
(define-from-env-or-default 'devious-name "DEVIOUS_NAME" "devious") | |
(define devious-channels (list "#devious")) | |
(define devious-admin-nick "warl0ck") | |
(load-config) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment