diff --git a/app/models/feed-data.js b/app/models/feed-data.js index ada05d7..121a9d8 100644 --- a/app/models/feed-data.js +++ b/app/models/feed-data.js @@ -33,7 +33,6 @@ module.exports = class FeedData { }; } - /**@param guild*/ updatePastPostedLinks(guild) { const channel = guild.channels.get(this.channelID); @@ -52,7 +51,6 @@ module.exports = class FeedData { }); } - /**@param guild */ fetchLatest(guild) { Dns.resolve(Url.parse(this.url).host || "", err => { if (err) diff --git a/discord-bot-core/BaseGuildData.js b/discord-bot-core/BaseGuildData.js index 2db73d2..be70ab2 100644 --- a/discord-bot-core/BaseGuildData.js +++ b/discord-bot-core/BaseGuildData.js @@ -1,5 +1,4 @@ module.exports = class BaseGuildData { - /**@param param */ constructor(id) { this.id = id; } diff --git a/discord-bot-core/Client.js b/discord-bot-core/Client.js index c9737bc..c175ae7 100644 --- a/discord-bot-core/Client.js +++ b/discord-bot-core/Client.js @@ -8,12 +8,6 @@ const HandleMessage = require("./HandleMessage.js"); const InternalConfig = require("./internal-config.json"); module.exports = class Client extends Discord.Client { - /** - * @param {*} token - * @param {*} dataFile - * @param {*} commandsDir - * @param {*} guildDataModel - */ constructor(token, dataFile, commandsDir, guildDataModel) { super(); diff --git a/discord-bot-core/Command.js b/discord-bot-core/Command.js index 233c7b4..612a284 100644 --- a/discord-bot-core/Command.js +++ b/discord-bot-core/Command.js @@ -1,5 +1,4 @@ module.exports = class Command { - /**@param param */ constructor({ name, description, syntax, admin, invoke }) { this.name = name; this.description = description; diff --git a/discord-bot-core/HandleMessage.js b/discord-bot-core/HandleMessage.js index aed8254..ca6bccd 100644 --- a/discord-bot-core/HandleMessage.js +++ b/discord-bot-core/HandleMessage.js @@ -54,12 +54,6 @@ function handleInternalCommand(message, split, commands, isMemberAdmin) { } } -/** - * Create a help embed for available commands - * @param {string} name name of the bot - * @param {*[]} commands commands array - * @param {boolean} userIsAdmin whether the user is admin - */ function createHelpEmbed(name, commands, userIsAdmin) { const commandsArr = Object.keys(commands).map(x => commands[x]).filter(x => userIsAdmin || !x.admin); diff --git a/discord-bot-core/Util.js b/discord-bot-core/Util.js index ba47fcb..61e3f94 100644 --- a/discord-bot-core/Util.js +++ b/discord-bot-core/Util.js @@ -1,15 +1,10 @@ const Console = require("console"); +const Discord = require("discord.js"); const SimpleFileWriter = require("simple-file-writer"); const logWriter = new SimpleFileWriter("./console.log"); const debugLogWriter = new SimpleFileWriter("./debug.log"); -/** - * Returns a promise that the user will answer - * @param {TextChannel} textChannel discord.js TextChannel to ask the question in - * @param {GuildMember} member discord.js Member to ask the question to - * @param {string} question question to ask - */ function ask(client, textChannel, member, question) { //return a promise which will resolve once the user next sends a message in this textChannel return new Promise((resolve, reject) => {