2025-05-12 15:20:40 -05:00

13 lines
343 B
JavaScript

const path = require("path");
const db = require(path.join(__dirname, "../models/logging"));
async function audit(type, message, cmd) {
const audit = new db();
audit.ranBy = message.member.user.username;
audit.name = cmd;
audit.type = type;
audit.channel = message.channel.name;
audit.save()
}
module.exports = audit;