summaryrefslogtreecommitdiff
path: root/server/src/commands/emma/FanArt.ts
diff options
context:
space:
mode:
author8cy <[email protected]>2020-07-26 07:10:15 -0700
committer8cy <[email protected]>2020-07-26 07:10:15 -0700
commit8a10bace437a147975d939edfa5f6de9d0fdbf0d (patch)
treeabb20d0ebc33f16013ad58344a34c2d286e53fb5 /server/src/commands/emma/FanArt.ts
parentfeat/ fix/ chore/ improvment (diff)
downloaddep-core-8a10bace437a147975d939edfa5f6de9d0fdbf0d.tar.xz
dep-core-8a10bace437a147975d939edfa5f6de9d0fdbf0d.zip
fix: emma commands only in emma server, improv: emma categories
Diffstat (limited to 'server/src/commands/emma/FanArt.ts')
-rw-r--r--server/src/commands/emma/FanArt.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/commands/emma/FanArt.ts b/server/src/commands/emma/FanArt.ts
index 3d04718..5ac01f7 100644
--- a/server/src/commands/emma/FanArt.ts
+++ b/server/src/commands/emma/FanArt.ts
@@ -2,7 +2,7 @@ import { Command } from 'discord-akairo';
import { Message } from 'discord.js';
import FanArt from '../../database/models/FanArtModel';
import mongoose from 'mongoose';
-import { mongoDBUri, colour } from '../../Config';
+import { mongoDBUri, colour, emmaServer } from '../../Config';
mongoose.connect(mongoDBUri, {
useNewUrlParser: true,
useUnifiedTopology: true
@@ -45,7 +45,7 @@ export default class FanArtEmma extends Command {
}
public exec(msg: Message, { type, comment }): Promise<Message> | any {
- if (msg.guild.id.toString() !== '663964105983393793') return;
+ if (msg.guild.id.toString() !== emmaServer) return;
const welcome = new FanArt({
_id: mongoose.Types.ObjectId(),
username: msg.author.username,