ai_old/tests/mod/chat.js

15 lines
293 B
JavaScript
Raw Normal View History

2024-09-17 18:44:21 +08:00
import {glm} from '../lib/ai'
import console from '../lib/console'
function fast(...args) {
if(!args[0]) throw new Error('no ask')
let r = glm.fastAsk(args[0], r => {
console.print(r)
})
console.println()
return r
}
// exports.fast = fast
module.exports = {fast}