chipmunkbot-archive/util/dineval.js

17 lines
328 B
JavaScript
Raw Normal View History

2022-11-12 20:32:35 -05:00
const axios = require('axios')
async function dineval (code, options = {}) {
options.server ??= 'http://eval.dinhero21.repl.co'
options.colors ??= 'none'
const { data } = await axios.get(options.server, {
headers: {
data: code,
colors: options.colors
}
})
return data
}
module.exports = dineval