mirror of
https://github.com/danbulant/Shasha
synced 2026-05-25 04:41:51 +00:00
22 lines
No EOL
671 B
JavaScript
22 lines
No EOL
671 B
JavaScript
'use strict';
|
|
|
|
const { trySend } = require("../../resources/functions");
|
|
|
|
const commando = require("@iceprod/discord.js-commando"),
|
|
{ database } = require("../../database/mongo"),
|
|
col = database.collection("Experiment");
|
|
|
|
module.exports = class dropexp extends commando.Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: "dropexp",
|
|
memberName: "dropexp",
|
|
group: "experiment",
|
|
description: "description",
|
|
ownerOnly:true
|
|
});
|
|
}
|
|
run(msg, arg) {
|
|
col.drop().then(trySend(this.client, msg, "cleared")).catch(e => trySend(this.client, msg, `\`\`\`js\n${e.stack}\`\`\``));
|
|
}
|
|
}; |