3 Star 2 Fork 1

hulang/bot-func-lib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
user-lib.rkt 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
hulang 提交于 2022-01-19 14:56 . update
#lang racket
(provide init-user-lib)
(define (init-user-lib env)
(init-bot-func-lib env))
(define (init-bot-func-lib env)
(define lib-dir "/home/eval-server/lib")
(define (eval-file path env)
(define in (open-input-file path #:mode 'text))
(let loop ()
(define expr (read in))
(when (not (eof-object? expr))
(eval expr env)
(loop))))
(displayln "lib loading")
(for ((filename
'("base"
"media-output"
"menu"
"ascii-screen"
"games/bulls-and-cows"
"games/simple-guess-number"
"games/tic-tac-toe"
"games/tic-tac-toe-online"
"games/cards/card"
"games/cards/guess-card"
"fz-rkt-lib"
"tools/analog-clock"
"tools/digital-clock"
"tools/blink-text-gif"
"tools/dict"
"tools/joke"
"tools/citys"
"tools/query-weather"
"tools/pic"
"tools/sorry")))
(displayln (string-append " " filename))
(eval-file (format "~A/~A.rkt" lib-dir filename) env)))
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Racket
1
https://gitee.com/hulang1024/bot-func-lib.git
git@gitee.com:hulang1024/bot-func-lib.git
hulang1024
bot-func-lib
bot-func-lib
master

搜索帮助