@ -2,6 +2,7 @@ local plugin_class = import("classes.plugin")
localcommand=import("classes.command")
localplugin=plugin_class()
localmarkov=require("markov")
localqalculator=require("libqalculator")
localmarkov_instance=markov.new()
math.randomseed(os.time()+os.clock())
@ -97,53 +98,16 @@ local cards = command("cards",{
})
plugin:add_command(cards)
localcalculate=command("calculate",{
help="Calculate maths using lua's interpeter. Math functions from C included, use ``sin(x)`` or ``cos(x)`` for example. Additionally, BitOp module is included with the name ``bit`` (example: ``bit.bnot(1,1)``)",
help="Calculates maths using libqalculate. https://qalculate.github.io/ for more info",
usage=[[
calculate<expression>
``--bit``; ``-b`` - if the output is a number, convert it to binary
``--hex``; ``-h`` - if the output is a number, convert it to hexadecimal