chipmunkbot-archive/util/dineval.js
2022-11-13 01:32:35 +00:00

16 lines
328 B
JavaScript

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