mirror of
https://github.com/Expand-sys/ccashbot
synced 2025-12-16 23:52:14 +11:00
20 lines
601 B
JavaScript
20 lines
601 B
JavaScript
const { link } = require("../../helpers/ccash");
|
|
|
|
module.exports = {
|
|
name: "link",
|
|
description: "link your ccash account",
|
|
async execute(message, args) {
|
|
if (!args[0] || !args[1]) {
|
|
message.reply("You need to enter arguments for this command to work");
|
|
}
|
|
let result = await link(message.author, args[0], args[1]);
|
|
console.log(result);
|
|
if (result == true) {
|
|
message.reply(
|
|
"Linked your discord account to user " + args[0] + " successfully"
|
|
);
|
|
} else {
|
|
message.reply("Could not verify your CCash user, please check spelling");
|
|
}
|
|
},
|
|
};
|