15 lines
293 B
JavaScript
15 lines
293 B
JavaScript
|
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}
|