Tweak zamn, switch Eris to stable, added playing message, fix ping sending multiple messages

This commit is contained in:
Essem 2021-12-02 18:12:42 -06:00
parent 98b812e0d3
commit fbefd0f10a
No known key found for this signature in database
GPG Key ID: 7D497397CC3A2A8C
5 changed files with 16 additions and 14 deletions

View File

@ -5,7 +5,7 @@ class PingCommand extends Command {
const pingMessage = await this.client.createMessage(this.message.channel.id, Object.assign({ const pingMessage = await this.client.createMessage(this.message.channel.id, Object.assign({
content: "🏓 Ping?" content: "🏓 Ping?"
}, this.reference)); }, this.reference));
return pingMessage.edit(`🏓 Pong!\n\`\`\`\nLatency: ${pingMessage.timestamp - this.message.timestamp}ms${this.message.channel.guild ? `\nShard Latency: ${Math.round(this.client.shards.get(this.client.guildShardMap[this.message.channel.guild.id]).latency)}ms` : ""}\n\`\`\``); pingMessage.edit(`🏓 Pong!\n\`\`\`\nLatency: ${pingMessage.timestamp - this.message.timestamp}ms${this.message.channel.guild ? `\nShard Latency: ${Math.round(this.client.shards.get(this.client.guildShardMap[this.message.channel.guild.id]).latency)}ms` : ""}\n\`\`\``);
} }
static description = "Pings Discord's servers"; static description = "Pings Discord's servers";

View File

@ -1,9 +1,9 @@
import ImageCommand from "../../classes/imageCommand.js"; import ImageCommand from "../../classes/imageCommand.js";
class ZamnCommand extends ImageCommand { class ZamnCommand extends ImageCommand {
static description = "ZAMN! SHES 12?"; static description = "Adds a \"ZAMN\" reaction to an image";
static noImage = "You need to provide an image to zamn at!"; static noImage = "You need to provide an image to \"ZAMN\" at!";
static command = "zamn"; static command = "zamn";
} }

View File

@ -148,6 +148,7 @@
"Something big is coming.", "Something big is coming.",
"This image has expired.", "This image has expired.",
"The GIF File Format", "The GIF File Format",
"Scrimblo Bimblo",
"The clock is ticking." "The clock is ticking."
] ]
} }

21
package-lock.json generated
View File

@ -13,7 +13,7 @@
"cowsay2": "^2.0.4", "cowsay2": "^2.0.4",
"dotenv": "^10.0.0", "dotenv": "^10.0.0",
"emoji-regex": "^10.0.0", "emoji-regex": "^10.0.0",
"eris": "github:abalabahaha/eris#dev", "eris": "^0.16.1",
"eris-fleet": "github:esmBot/eris-fleet#development", "eris-fleet": "github:esmBot/eris-fleet#development",
"file-type": "^16.1.0", "file-type": "^16.1.0",
"format-duration": "^1.4.0", "format-duration": "^1.4.0",
@ -1138,9 +1138,9 @@
} }
}, },
"node_modules/eris": { "node_modules/eris": {
"version": "0.16.2-dev", "version": "0.16.1",
"resolved": "git+ssh://git@github.com/abalabahaha/eris.git#29a3a635a241a4ab8725c25afa839f29542e1731", "resolved": "https://registry.npmjs.org/eris/-/eris-0.16.1.tgz",
"license": "MIT", "integrity": "sha512-fqjgaddSvUlUjA7s85OvZimLrgCwX58Z6FXOIxdNFJdT6XReJ/LOWZKdew2CaalM8BvN2JKzn98HmKYb3zMhKg==",
"dependencies": { "dependencies": {
"ws": "^8.2.3" "ws": "^8.2.3"
}, },
@ -1153,8 +1153,8 @@
} }
}, },
"node_modules/eris-fleet": { "node_modules/eris-fleet": {
"version": "0.3.9-dev", "version": "0.3.9-dev.0",
"resolved": "git+ssh://git@github.com/esmBot/eris-fleet.git#991e0cf502134d917676ec43c761b584a217878a", "resolved": "git+ssh://git@github.com/esmBot/eris-fleet.git#c9646800a2a6b9259d912f2051d6362860f88098",
"license": "MIT", "license": "MIT",
"peerDependencies": { "peerDependencies": {
"eris": "*" "eris": "*"
@ -4542,8 +4542,9 @@
} }
}, },
"eris": { "eris": {
"version": "git+ssh://git@github.com/abalabahaha/eris.git#29a3a635a241a4ab8725c25afa839f29542e1731", "version": "0.16.1",
"from": "eris@github:abalabahaha/eris#dev", "resolved": "https://registry.npmjs.org/eris/-/eris-0.16.1.tgz",
"integrity": "sha512-fqjgaddSvUlUjA7s85OvZimLrgCwX58Z6FXOIxdNFJdT6XReJ/LOWZKdew2CaalM8BvN2JKzn98HmKYb3zMhKg==",
"requires": { "requires": {
"opusscript": "^0.0.8", "opusscript": "^0.0.8",
"tweetnacl": "^1.0.3", "tweetnacl": "^1.0.3",
@ -4551,8 +4552,8 @@
} }
}, },
"eris-fleet": { "eris-fleet": {
"version": "git+ssh://git@github.com/esmBot/eris-fleet.git#991e0cf502134d917676ec43c761b584a217878a", "version": "git+ssh://git@github.com/esmBot/eris-fleet.git#c9646800a2a6b9259d912f2051d6362860f88098",
"from": "eris-fleet@github:esmBot/eris-fleet#development", "from": "eris-fleet@esmBot/eris-fleet#development",
"requires": {} "requires": {}
}, },
"erlpack": { "erlpack": {

View File

@ -27,7 +27,7 @@
"cowsay2": "^2.0.4", "cowsay2": "^2.0.4",
"dotenv": "^10.0.0", "dotenv": "^10.0.0",
"emoji-regex": "^10.0.0", "emoji-regex": "^10.0.0",
"eris": "github:abalabahaha/eris#dev", "eris": "^0.16.1",
"eris-fleet": "github:esmBot/eris-fleet#development", "eris-fleet": "github:esmBot/eris-fleet#development",
"file-type": "^16.1.0", "file-type": "^16.1.0",
"format-duration": "^1.4.0", "format-duration": "^1.4.0",