forked from Supositware/Haha-Yes
Make update work
This commit is contained in:
parent
f5dc555e45
commit
8f3fbfcf12
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ class byeCommand extends Command {
|
||||||
let messageContent = messages.map(messages => messages.content);
|
let messageContent = messages.map(messages => messages.content);
|
||||||
if (messageContent == 'y' || messageContent == 'yes') {
|
if (messageContent == 'y' || messageContent == 'yes') {
|
||||||
const body = {guildID: message.guild.id, channelID: message.channel.id, message: args.message};
|
const body = {guildID: message.guild.id, channelID: message.channel.id, message: args.message};
|
||||||
await leave.update(body, {where: {guildID: message.guild.id}});
|
await leaveChannel.update(body, {where: {guildID: message.guild.id}});
|
||||||
return message.channel.send(`The leave message have been set with ${args.message}`);
|
return message.channel.send(`The leave message have been set with ${args.message}`);
|
||||||
} else {
|
} else {
|
||||||
return message.channel.send('Not updating.');
|
return message.channel.send('Not updating.');
|
||||||
|
|
|
@ -57,7 +57,7 @@ class welcomeCommand extends Command {
|
||||||
let messageContent = messages.map(messages => messages.content);
|
let messageContent = messages.map(messages => messages.content);
|
||||||
if (messageContent == 'y' || messageContent == 'yes') {
|
if (messageContent == 'y' || messageContent == 'yes') {
|
||||||
const body = {guildID: message.guild.id, channelID: message.channel.id, message: args.message};
|
const body = {guildID: message.guild.id, channelID: message.channel.id, message: args.message};
|
||||||
await join.update(body, {where: {guildID: message.guild.id}});
|
await joinChannel.update(body, {where: {guildID: message.guild.id}});
|
||||||
return message.channel.send(`The join message have been set with ${args.message}`);
|
return message.channel.send(`The join message have been set with ${args.message}`);
|
||||||
} else {
|
} else {
|
||||||
return message.channel.send('Not updating.');
|
return message.channel.send('Not updating.');
|
||||||
|
|
Loading…
Reference in a new issue