@ -43,7 +43,7 @@ class addDonatorCommand extends Command {
if(!Donator){
constbody={userID:args.id,comment:userComment};
donator.create(body);
returnmessage.channel.send(`A new donator have been added! ${this.client.users.get(args.id).username}#${this.client.users.get(args.id).discriminator} (${args.id}) ${userComment}`);
returnmessage.channel.send(`A new donator have been added! ${this.client.users.resolve(args.id).username}#${this.client.users.resolve(args.id).discriminator} (${args.id}) ${userComment}`);
}else{
message.channel.send('This donator already exist, do you want to update it? y/n');
@ -55,9 +55,9 @@ class addDonatorCommand extends Command {
donator.update(body,{where:{userID:args.id}});
console.log(userComment);
if(userComment==''){
returnmessage.channel.send(`Removed the comment from ${this.client.users.get(args.id).username}#${this.client.users.get(args.id).discriminator} (${args.id})`);
returnmessage.channel.send(`Removed the comment from ${this.client.users.resolve(args.id).username}#${this.client.users.resolve(args.id).discriminator} (${args.id})`);
}else{
returnmessage.channel.send(`You edited the comment for ${this.client.users.get(args.id).username}#${this.client.users.get(args.id).discriminator} (${args.id}) with ${args.userComment}`);
returnmessage.channel.send(`You edited the comment for ${this.client.users.resolve(args.id).username}#${this.client.users.resolve(args.id).discriminator} (${args.id}) with ${args.userComment}`);
@ -32,7 +32,7 @@ class blacklistCommand extends Command {
if(!blacklist){
constbody={userID:args.userID};
userBlacklist.create(body);
returnmessage.channel.send(`The following user have been blacklisted: ${this.client.users.get(args.userID).username}#${this.client.users.get(args.userID).discriminator} (${args.userID})`);
returnmessage.channel.send(`The following user have been blacklisted: ${this.client.users.resolve(args.userID).username}#${this.client.users.resolve(args.userID).discriminator} (${args.userID})`);
}else{
message.channel.send('This user is already blacklisted, do you want to unblacklist him? y/n');
returnmessage.channel.send(`The following user have been unblacklisted: ${this.client.users.get(args.userID).username}#${this.client.users.get(args.userID).discriminator} (${args.userID})`);
returnmessage.channel.send(`The following user have been unblacklisted: ${this.client.users.resolve(args.userID).username}#${this.client.users.resolve(args.userID).discriminator} (${args.userID})`);
@ -31,7 +31,7 @@ class EvalCommand extends Command {
letAttachment=(message.attachments).array();
if(Attachment[0]){
this.client.users.get(user.id).send(`**Message from the dev:**\n${text}\n**If you wish to respond use the feedback command**`,{files:[Attachment[0].url]})
this.client.users.resolve(user.id).send(`**Message from the dev:**\n${text}\n**If you wish to respond use the feedback command**`,{files:[Attachment[0].url]})
.then(()=>{
returnmessage.channel.send(`DM sent to ${user.username}`);
})
@ -40,7 +40,7 @@ class EvalCommand extends Command {
});
}
else{
this.client.users.get(user.id).send(`**Message from the dev:**\n${text}\n**If you wish to respond use the feedback command**`)
this.client.users.resolve(user.id).send(`**Message from the dev:**\n${text}\n**If you wish to respond use the feedback command**`)
.then(()=>{
returnmessage.channel.send(`DM sent to ${user.username}`);
letdescription=`This bot is made using [discord.js](https://github.com/discordjs/discord.js) & [Discord-Akairo](https://github.com/discord-akairo/discord-akairo)\nHelp command from [hoshi](https://github.com/1Computer1/hoshi)\n[Rantionary](https://github.com/RantLang/Rantionary) for their dictionnary.\nThanks to ${this.client.users.get('336492042299637771').username}#${this.client.users.get('336492042299637771').discriminator} (336492042299637771) for inspiring me for making this bot!\n\nThe people who donated for the bot <3\n`;
letdescription=`This bot is made using [discord.js](https://github.com/discordjs/discord.js) & [Discord-Akairo](https://github.com/discord-akairo/discord-akairo)\nHelp command from [hoshi](https://github.com/1Computer1/hoshi)\n[Rantionary](https://github.com/RantLang/Rantionary) for their dictionnary.\nThanks to ${this.client.users.resolve('336492042299637771').username}#${this.client.users.resolve('336492042299637771').discriminator} (336492042299637771) for inspiring me for making this bot!\n\nThe people who donated for the bot <3\n`;
.setFooter(`Original bot made by ${this.client.users.get('267065637183029248').username}#${this.client.users.get('267065637183029248').discriminator} (267065637183029248)`);// Please don't change the "original bot made by"
.setFooter(`Original bot made by ${this.client.users.resolve('267065637183029248').username}#${this.client.users.resolve('267065637183029248').discriminator} (267065637183029248)`);// Please don't change the "original bot made by"
@ -38,7 +38,7 @@ class CommandBlockedListener extends Listener {
break;
case'serverblacklist':
Embed.setTitle('Server blacklisted.');
Embed.setDescription(`This server have been blacklisted... to appeal contact ${this.client.users.get(this.client.ownerID).username}#${this.client.users.get(this.client.ownerID).discriminator}, and now i will yeet out of here`);
Embed.setDescription(`This server have been blacklisted... to appeal contact ${this.client.users.resolve(this.client.ownerID).username}#${this.client.users.resolve(this.client.ownerID).discriminator}, and now i will yeet out of here`);
@ -36,11 +35,11 @@ class MessageReactionAddListener extends Listener {
deleterequire.cache[require.resolve(`../../board/star${reaction.message.guild.id}.json`)];// Delete the boardChannel cache so it can reload it next time
@ -57,11 +56,11 @@ class MessageReactionAddListener extends Listener {
deleterequire.cache[require.resolve(`../../board/shame${reaction.message.guild.id}.json`)];// Delete the boardChannel cache so it can reload it next time
@ -22,7 +22,7 @@ class messageReactionRemoveListener extends Listener {
letreactionCount=reaction.count;
// If one of the reaction removed is the author of the message add 1 to the reaction count
reaction.users.forEach(user=>{
reaction.users.cache.forEach(user=>{
if(reaction.message.author==user)reactionCount++;
});
@ -33,19 +33,20 @@ class messageReactionRemoveListener extends Listener {
letstarcount=starboardChannel.count;
deleterequire.cache[require.resolve(`../../board/star${reaction.message.guild.id}.json`)];// Delete the boardChannel cache so it can reload it next time
@ -57,16 +58,17 @@ class messageReactionRemoveListener extends Listener {
letshamecount=shameboardChannel.count;
deleterequire.cache[require.resolve(`../../board/shame${reaction.message.guild.id}.json`)];// Delete the boardChannel cache so it can reload it next time
client.user.setActivity(`${randomuser.username} is ${randomuser.presence.activity.type.toLowerCase()}${randomuser.presence.activity.name}\nfor ${diffMins} minutes | My prefix is: ${prefix[0]}`,{type:randomuser.presence.activity.type,url:randomuser.presence.activity.url,name:randomuser.presence.activity.name});
client.user.setActivity(`${randomuser.username} is ${randomuser.presence.activities[0].type.toLowerCase()}${randomuser.presence.activities[0].name}\nfor ${diffMins} minutes | My prefix is: ${prefix[0]}`,{type:randomuser.presence.activities[0].type,url:randomuser.presence.activities[0].url,name:randomuser.presence.activities[0].name});
}
}
// If stats channel settings exist, send bot stats to it
channel.send(`Ready to serve in ${channelSize} channels on ${guildSize} servers, for a total of ${userSize} users.\nThere is ${commandSize} command loaded\n${this.client.readyAt}`);
}
@ -100,8 +101,8 @@ class ReadyListener extends Listener {