Skip to content

Commit

Permalink
Deprecate/remove Discord import/export (#273)
Browse files Browse the repository at this point in the history
Fixes #266
  • Loading branch information
niekcandaele committed Aug 20, 2020
1 parent 8988b08 commit af80c22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/hooks/discordBot/commands/meta/export-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class Export extends Commando.Command {
}

async run(msg, args) {

await msg.channel.send('This command is deprecated and will be removed in a future version of CSMM. https://github.com/CatalysmsServerManager/7-days-to-die-server-manager/milestone/1');

const server = await SdtdServer.findOne(args.serverId);

if (_.isUndefined(server)) {
Expand Down
3 changes: 3 additions & 0 deletions api/hooks/discordBot/commands/meta/import-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class Import extends Commando.Command {
}

async run(msg) {

await msg.channel.send('This command is deprecated and will be removed in a future version of CSMM. https://github.com/CatalysmsServerManager/7-days-to-die-server-manager/milestone/1');

const fileUrl = msg.attachments.first().url;
await this.downloadFile(fileUrl);
let data = require('../../../../../import.json');
Expand Down

0 comments on commit af80c22

Please sign in to comment.