diff --git a/commands/message/select-image.js b/commands/message/select-image.js index e279d95..19c1141 100644 --- a/commands/message/select-image.js +++ b/commands/message/select-image.js @@ -15,7 +15,6 @@ class SelectImageCommand extends Command { return "I've been rate-limited by Tenor. Please try uploading your GIF elsewhere."; } selectedImages.set(this.author.id, image); - this.success = true; return "The image has been selected for your next command."; } } diff --git a/shard.js b/shard.js index 4513632..d953b8d 100644 --- a/shard.js +++ b/shard.js @@ -26,13 +26,12 @@ import { generateList, createPage } from "./utils/help.js"; // whether a broadcast is currently in effect let broadcast = false; -const playingSuffix = !types.classic ? ` | @${this.bot.user.username} help` : ""; - class Shard extends BaseClusterWorker { constructor(bot) { super(bot); console.info = (str) => this.ipc.sendToAdmiral("info", str); + this.playingSuffix = types.classic ? ` | @${this.bot.user.username} help` : ""; this.init(); } @@ -120,7 +119,7 @@ class Shard extends BaseClusterWorker { this.ipc.register("playbroadcast", (message) => { this.bot.editStatus("dnd", { - name: message + playingSuffix, + name: message + this.playingSuffix, }); broadcast = true; return this.ipc.broadcast("broadcastSuccess"); @@ -128,7 +127,7 @@ class Shard extends BaseClusterWorker { this.ipc.register("broadcastend", () => { this.bot.editStatus("dnd", { - name: random(messages) + playingSuffix, + name: random(messages) + this.playingSuffix, }); broadcast = false; return this.ipc.broadcast("broadcastEnd"); @@ -141,7 +140,7 @@ class Shard extends BaseClusterWorker { if (broadcastMessage) { broadcast = true; this.bot.editStatus("dnd", { - name: broadcastMessage + playingSuffix, + name: broadcastMessage + this.playingSuffix, }); } @@ -154,7 +153,7 @@ class Shard extends BaseClusterWorker { activityChanger() { if (!broadcast) { this.bot.editStatus("dnd", { - name: random(messages) + playingSuffix, + name: random(messages) + this.playingSuffix, }); } setTimeout(this.activityChanger.bind(this), 900000);