Replace pg with postgres, add swirl alias, await ping edit, added debug scripts to package.json

This commit is contained in:
Essem 2022-09-12 16:45:32 -05:00
parent 6511abb20a
commit 121615df63
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
6 changed files with 53 additions and 165 deletions

View file

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

View file

@ -2,7 +2,7 @@ import ImageCommand from "../../classes/imageCommand.js";
class SwirlCommand extends ImageCommand {
static description = "Swirls an image";
static aliases = ["whirlpool"];
static aliases = ["whirlpool", "distort"];
static noImage = "You need to provide an image/GIF to swirl!";
static command = "swirl";