Have the following script:
local mydb = db:create("EnemiesAndAllies", {enemies={"name"}, allies={"name"}})
function addEnemy(person)
db:add(mydb.enemies, {name=person})
echo("Added " .. person .. " to enemy list!")
end
function addAlly(person)
db:add(mydb.allies, {name=person})
echo("Added " .. person .. " to Ally list!")
end
And then i have the aliases:
^adden (.*)$
it does:
addEnemy(matches[2])
Does not work but throws no errors, what am i doing wrong?
Comments