17 lines
473 B
JavaScript
17 lines
473 B
JavaScript
|
const db = require("quick.db");
|
||
|
|
||
|
module.exports = {
|
||
|
name: "warnings",
|
||
|
description: "Holen Sie sich die Warnungen Ihrer oder der erwähnten Person",
|
||
|
category: "moderation",
|
||
|
run: (client, message, args) => {
|
||
|
const user = message.mentions.members.first() || message.author;
|
||
|
|
||
|
let warnings = db.get(`warnings_${message.guild.id}_${user.id}`);
|
||
|
|
||
|
if (warnings === null) warnings = 0;
|
||
|
|
||
|
message.channel.send(`${user} hat **${warnings}** Warnung(en)`);
|
||
|
}
|
||
|
};
|