Skip to content

Commit

Permalink
override annotations, remove useless stop() overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
meadowsys committed Nov 13, 2023
1 parent bcbce6b commit 6c6c401
Show file tree
Hide file tree
Showing 27 changed files with 30 additions and 170 deletions.
9 changes: 1 addition & 8 deletions modules/Activity/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function reset_wait() {
}

module.exports = class Activity extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand Down Expand Up @@ -47,12 +48,4 @@ module.exports = class Activity extends Module {
afk: false
}).then(() => this.log.info(`set activity to ${activity}`)).catch(console.error);
}


stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}
};
8 changes: 1 addition & 7 deletions modules/Assfart/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const Module = require("../../lib/Module");
const Tools = require("../../lib/Tools");

module.exports = class AssFart extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand All @@ -32,11 +33,4 @@ module.exports = class AssFart extends Module {
Application.modules.Discord.setMessageSent();
}
}

stop() {
return new Promise((resolve) => {
this.log.debug("Stopping...");
return resolve(this);
});
}
};
8 changes: 1 addition & 7 deletions modules/Bap/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const bapDeleteTimeout = 40000;
let wachmann_id;

module.exports = class Boop extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand Down Expand Up @@ -138,11 +139,4 @@ module.exports = class Boop extends Module {

Application.modules.Discord.setMessageSent();
}

stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}
};
8 changes: 1 addition & 7 deletions modules/BestPony/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const Module = require("../../lib/Module");
const Tools = require("../../lib/Tools");

module.exports = class BestPony extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand Down Expand Up @@ -44,11 +45,4 @@ module.exports = class BestPony extends Module {
Application.modules.Discord.setMessageSent();
}
}

stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}
};
8 changes: 1 addition & 7 deletions modules/Bizaam/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const Module = require("../../lib/Module");
const Tools = require("../../lib/Tools");

module.exports = class Bizaam extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand All @@ -32,11 +33,4 @@ module.exports = class Bizaam extends Module {
Application.modules.Discord.setMessageSent();
}
}

stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}
};
8 changes: 1 addition & 7 deletions modules/Boop/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ let wachmann_id;
const boopDeleteTimeout = 40000;

module.exports = class Boop extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand Down Expand Up @@ -368,11 +369,4 @@ module.exports = class Boop extends Module {

Application.modules.Discord.setMessageSent();
}

stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}
};
8 changes: 1 addition & 7 deletions modules/Compliment/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const fetch = require("node-fetch");
let config;

module.exports = class Compliment extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand Down Expand Up @@ -99,11 +100,4 @@ module.exports = class Compliment extends Module {
getCompliment() {
return fetch("https://complimentr.com/api").then(res => res.json()).catch(err => console.error(err));
}

stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}
};
8 changes: 1 addition & 7 deletions modules/DevCommands/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ let guild;
const write_to_file = true;

module.exports = class DevC extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand Down Expand Up @@ -140,13 +141,6 @@ module.exports = class DevC extends Module {
Application.modules.Discord.setMessageSent();
}

stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}

load_ids() {
idLocation = Application.config.config_path + "/application/ids.json";
dLocation = Application.config.config_path + "/Discord.json";
Expand Down
3 changes: 3 additions & 0 deletions modules/Discord/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const DiscordJS = require("discord.js");
const Tools = require("../../lib/Tools");

module.exports = class Discord extends Module {
/** @override */
init() {
return new Promise(resolve => {
this.log.debug("Initializing...");
Expand Down Expand Up @@ -43,6 +44,7 @@ module.exports = class Discord extends Module {
});
}

/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand All @@ -57,6 +59,7 @@ module.exports = class Discord extends Module {
});
}

/** @override */
stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
Expand Down
8 changes: 1 addition & 7 deletions modules/Fanta/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const Module = require("../../lib/Module");
const Tools = require("../../lib/Tools");

module.exports = class Fanta extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand All @@ -28,11 +29,4 @@ module.exports = class Fanta extends Module {
Application.modules.Discord.setMessageSent();
}
}

stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}
};
8 changes: 1 addition & 7 deletions modules/GamerCanni/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const Module = require("../../lib/Module");
const Tools = require("../../lib/Tools");

module.exports = class RockPaperScissors extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand Down Expand Up @@ -156,11 +157,4 @@ module.exports = class RockPaperScissors extends Module {

Application.modules.Discord.setMessageSent();
}

stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}
};
8 changes: 1 addition & 7 deletions modules/Greetings/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const Module = require("../../lib/Module");
const Tools = require("../../lib/Tools");

module.exports = class greetings extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand Down Expand Up @@ -39,11 +40,4 @@ module.exports = class greetings extends Module {
Application.modules.Discord.setMessageSent();
}
}

stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}
};
8 changes: 1 addition & 7 deletions modules/Help/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const fs = require("fs");
let help_list;

module.exports = class Help extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand Down Expand Up @@ -82,11 +83,4 @@ module.exports = class Help extends Module {
res.push(tmp);
return res;
}

stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}
};
9 changes: 1 addition & 8 deletions modules/Holiday/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const new_year_date = [1, 1];
let wachmann_id;

module.exports = class Holiday extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand Down Expand Up @@ -108,12 +109,4 @@ module.exports = class Holiday extends Module {
Application.modules.Discord.setMessageSent();
}
}


stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}
};
8 changes: 1 addition & 7 deletions modules/Hug/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const moment = require("moment");
const hugDeleteTimeout = 40000;

module.exports = class Hug extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand Down Expand Up @@ -131,11 +132,4 @@ module.exports = class Hug extends Module {

Application.modules.Discord.setMessageSent();
}

stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}
};
8 changes: 1 addition & 7 deletions modules/Hype/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const Tools = require("../../lib/Tools");
const path = Application.config.rootDir + "/data/hype.gif";

module.exports = class Hype extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand All @@ -29,11 +30,4 @@ module.exports = class Hype extends Module {
Application.modules.Discord.setMessageSent();
}
}

stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}
};
8 changes: 1 addition & 7 deletions modules/Ignore/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ let guild;
const write_to_file = true;

module.exports = class Ignore extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand Down Expand Up @@ -59,13 +60,6 @@ module.exports = class Ignore extends Module {
}
}

stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}

is_ignored(msg) {
let cond = false;
ignore_ids.forEach(function(id) {
Expand Down
8 changes: 1 addition & 7 deletions modules/InterBotCom/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const Tools = require("../../lib/Tools");
let wachmann_id;

module.exports = class InterBotCom extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand Down Expand Up @@ -42,11 +43,4 @@ module.exports = class InterBotCom extends Module {
}
}
}

stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}
};
8 changes: 1 addition & 7 deletions modules/MentionCanni/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const Module = require("../../lib/Module");
const Tools = require("../../lib/Tools");

module.exports = class MentionCanni extends Module {
/** @override */
start() {
return new Promise(resolve => {
this.log.debug("Starting...");
Expand Down Expand Up @@ -86,11 +87,4 @@ module.exports = class MentionCanni extends Module {

Application.modules.Discord.setMessageSent();
}

stop() {
return new Promise(resolve => {
this.log.debug("Stopping...");
return resolve(this);
});
}
};
Loading

0 comments on commit 6c6c401

Please sign in to comment.