mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Lock down more in math
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const core = require('mathjs/number');
|
||||
const math = core.create(core.all);
|
||||
math.import({
|
||||
import: function () { throw new Error('Function import is disabled') },
|
||||
createUnit: function () { throw new Error('Function createUnit is disabled') },
|
||||
evaluate: function () { throw new Error('Function evaluate is disabled') },
|
||||
parse: function () { throw new Error('Function parse is disabled') },
|
||||
simplify: function () { throw new Error('Function simplify is disabled') },
|
||||
derivative: function () { throw new Error('Function derivative is disabled') }
|
||||
}, { override: true });
|
||||
|
||||
module.exports = class MathCommand extends Command {
|
||||
constructor(client) {
|
||||
|
||||
Reference in New Issue
Block a user