forked from Supositware/Haha-Yes
Merge branch 'master' of https://gitlab.com/loicbersier/discordbot
This commit is contained in:
commit
6a33780f38
4 changed files with 69 additions and 69 deletions
|
@ -14,7 +14,7 @@ class rpsCommand extends Command {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
description: {
|
description: {
|
||||||
content: 'Simply rock paper scissors\nCredit to: druid#0425 (276882603158798336))',
|
content: 'Simply rock paper scissors\nCredit to: druid#0425 (276882603158798336)',
|
||||||
usage: '[rock/paper/scissors]',
|
usage: '[rock/paper/scissors]',
|
||||||
examples: ['rock']
|
examples: ['rock']
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ class guildMemberAddListener extends Listener {
|
||||||
guild.setNickname('fart piss');
|
guild.setNickname('fart piss');
|
||||||
}
|
}
|
||||||
|
|
||||||
const join = await joinChannel.findOne({where: {guildID: guild.id}});
|
const join = await joinChannel.findOne({where: {guildID: guild.guild.id}});
|
||||||
|
|
||||||
if (join) {
|
if (join) {
|
||||||
const channel = this.client.channels.get(join.get('channelID'));
|
const channel = this.client.channels.get(join.get('channelID'));
|
||||||
|
|
|
@ -11,7 +11,7 @@ class guildMemberRemoveListener extends Listener {
|
||||||
}
|
}
|
||||||
|
|
||||||
async exec(guild) {
|
async exec(guild) {
|
||||||
const leave = await leaveChannel.findOne({where: {guildID: guild.id}});
|
const leave = await leaveChannel.findOne({where: {guildID: guild.guild.id}});
|
||||||
if (leave) {
|
if (leave) {
|
||||||
const channel = this.client.channels.get(leave.get('channelID'));
|
const channel = this.client.channels.get(leave.get('channelID'));
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ class MessageReactionAddListener extends Listener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendEmbed(name, emote, client) {
|
async function sendEmbed(name, emote, client) {
|
||||||
let channel;
|
let channel;
|
||||||
if (name == 'starboard') {
|
if (name == 'starboard') {
|
||||||
channel = client.channels.get(starboardChannel['starboard']);
|
channel = client.channels.get(starboardChannel['starboard']);
|
||||||
|
@ -78,7 +78,7 @@ class MessageReactionAddListener extends Listener {
|
||||||
} else {
|
} else {
|
||||||
Embed.setDescription(messageContent);
|
Embed.setDescription(messageContent);
|
||||||
return channel.send({files: messageAttachments, embed: Embed})
|
return channel.send({files: messageAttachments, embed: Embed})
|
||||||
.catch(() => channel.send(messageAttachments, { embed: Embed}));
|
.catch(async () => channel.send(messageAttachments, { embed: Embed}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue