From a6c6179ea03567f9dcb242438f4233ff15c9808f Mon Sep 17 00:00:00 2001
From: Kate <70778931+katefort@users.noreply.github.com>
Date: Sun, 21 Aug 2022 13:30:48 -0400
Subject: [PATCH 01/15] add info command with some responses
---
src/commands/utils/info.ts | 81 ++++++++++++++++++++++++++++++++++++++
1 file changed, 81 insertions(+)
create mode 100644 src/commands/utils/info.ts
diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts
new file mode 100644
index 0000000..479112c
--- /dev/null
+++ b/src/commands/utils/info.ts
@@ -0,0 +1,81 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+/*
+ Animal Rights Advocates Discord Bot
+ Copyright (C) 2022 Anthony Berg
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+ */
+
+ import { isMessageInstance } from '@sapphire/discord.js-utilities';
+ import { Command } from '@sapphire/framework';
+
+
+ export class InfoCommand extends Command {
+ public constructor(context: Command.Context, options: Command.Options) {
+ super(context, {
+ ...options,
+ name: 'info',
+ description: 'Gets info on common anti-vegan arguments',
+ });
+ }
+
+ // Registers that this is a slash command
+ public override registerApplicationCommands(registry: Command.Registry) {
+ registry.registerChatInputCommand((builder) => builder
+ .setName(this.name)
+ .setDescription(this.description))
+ .addStringOption((option) => option.setName('argument')
+ .setDescription('The argument you want to learn about')
+ .setRequired(true));
+ }
+
+
+ // Command run
+ public async getInfo(interaction: Command.ChatInputInteraction) {
+ const argument = interaction.options.getString('argument');
+ let argMap = new Map([
+ ["natural", "Murder and rape are both natural. Does that mean they are okay?"],
+ ["but I can", "You could also probably kill a baby if you wanted to. Does that make it right?"],
+ ["resources", "Here are some resources compiled in a spreadsheet form! https://vegancheatsheet.org"],
+ ["personal choice", "Is it okay for a killer to kill someone because it was his personal choice?"],
+ ["I love animals", "Would you also say, “I love my children and I also beat them”?"],
+ ["meat tastes good", "Is it morally acceptable for someone to kill a dog if that person likes the taste? \n As a vegan you can still experience all the tastes and consistencies you were used to, with the only difference that they are made of plants."],
+ ["animals eat meat", "Wild animals also kill each other. Does that mean it’s morally acceptable for people to kill each other?"],
+ ["tradition", "Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?"],
+ ["culture", "Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?"],
+ ["our ancestors ate meat", "Eating animals has helped our ancestors to survive. But do we still need to resort to eating meat to survive today?"],
+ ["cows will overpopulate the world", "The world will not become completely vegan overnight, but this will instead be a gradual process over a long period of time."],
+ ["humans are more important", "We don't need to choose between killing people and animals. Veganism is a way to avoid animal suffering while also improving the lives of humans and your own health."],
+ ["plants feel pain", "It takes up to 16 kg of plants to produce 1 kg of meat. Additionally, we don't know that for a fact, where we can hear the screams of animals being slaughtered."],
+ ["it's the food chain", "The food chain exists because of what animals need to do to survive. Do you need to eat animals to survive?\nAdditionally, every cruelty committed by man is based on the illusion of self-assigned power; be it Nazis who believed they were superior to Jews, white people who believed they were superior to black people, or people who believe they are superior to animals."],
+
+ ]);
+
+ if (argument.length === 0 || !argMap.has(argument)) {
+ await interaction.reply({
+ content: `Please enter a listed argument!`,
+ ephemeral: true,
+ fetchReply: true,
+ });
+ } else {
+ await interaction.reply({
+ content: `${argMap.get(argument)}`,
+ ephemeral: false,
+ fetchReply: true,
+ });
+ }
+ return;
+ }
+ }
+
\ No newline at end of file
From 15aee1122f082e584f4189851793b88c06b0685a Mon Sep 17 00:00:00 2001
From: Kate <70778931+katefort@users.noreply.github.com>
Date: Sun, 21 Aug 2022 13:43:43 -0400
Subject: [PATCH 02/15] format the code
---
src/commands/utils/info.ts | 121 +++++++++++++++++++++++++------------
1 file changed, 82 insertions(+), 39 deletions(-)
diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts
index 479112c..701526d 100644
--- a/src/commands/utils/info.ts
+++ b/src/commands/utils/info.ts
@@ -17,63 +17,106 @@
along with this program. If not, see .
*/
- import { isMessageInstance } from '@sapphire/discord.js-utilities';
- import { Command } from '@sapphire/framework';
+ import { isMessageInstance } from "@sapphire/discord.js-utilities";
+ import { Command } from "@sapphire/framework";
-
export class InfoCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) {
super(context, {
...options,
- name: 'info',
- description: 'Gets info on common anti-vegan arguments',
+ name: "info",
+ description: "Gets info on common anti-vegan arguments",
});
}
// Registers that this is a slash command
public override registerApplicationCommands(registry: Command.Registry) {
- registry.registerChatInputCommand((builder) => builder
- .setName(this.name)
- .setDescription(this.description))
- .addStringOption((option) => option.setName('argument')
- .setDescription('The argument you want to learn about')
- .setRequired(true));
+ registry
+ .registerChatInputCommand((builder) =>
+ builder.setName(this.name).setDescription(this.description)
+ )
+ .addStringOption((option) =>
+ option
+ .setName("argument")
+ .setDescription("The argument you want to learn about")
+ .setRequired(true)
+ );
}
-
-
+
// Command run
public async getInfo(interaction: Command.ChatInputInteraction) {
- const argument = interaction.options.getString('argument');
+ const argument = interaction.options.getString("argument");
let argMap = new Map([
- ["natural", "Murder and rape are both natural. Does that mean they are okay?"],
- ["but I can", "You could also probably kill a baby if you wanted to. Does that make it right?"],
- ["resources", "Here are some resources compiled in a spreadsheet form! https://vegancheatsheet.org"],
- ["personal choice", "Is it okay for a killer to kill someone because it was his personal choice?"],
- ["I love animals", "Would you also say, “I love my children and I also beat them”?"],
- ["meat tastes good", "Is it morally acceptable for someone to kill a dog if that person likes the taste? \n As a vegan you can still experience all the tastes and consistencies you were used to, with the only difference that they are made of plants."],
- ["animals eat meat", "Wild animals also kill each other. Does that mean it’s morally acceptable for people to kill each other?"],
- ["tradition", "Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?"],
- ["culture", "Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?"],
- ["our ancestors ate meat", "Eating animals has helped our ancestors to survive. But do we still need to resort to eating meat to survive today?"],
- ["cows will overpopulate the world", "The world will not become completely vegan overnight, but this will instead be a gradual process over a long period of time."],
- ["humans are more important", "We don't need to choose between killing people and animals. Veganism is a way to avoid animal suffering while also improving the lives of humans and your own health."],
- ["plants feel pain", "It takes up to 16 kg of plants to produce 1 kg of meat. Additionally, we don't know that for a fact, where we can hear the screams of animals being slaughtered."],
- ["it's the food chain", "The food chain exists because of what animals need to do to survive. Do you need to eat animals to survive?\nAdditionally, every cruelty committed by man is based on the illusion of self-assigned power; be it Nazis who believed they were superior to Jews, white people who believed they were superior to black people, or people who believe they are superior to animals."],
-
+ [
+ "natural",
+ "Murder and rape are both natural. Does that mean they are okay?",
+ ],
+ [
+ "but I can",
+ "You could also probably kill a baby if you wanted to. Does that make it right?",
+ ],
+ [
+ "resources",
+ "Here are some resources compiled in a spreadsheet form! https://vegancheatsheet.org",
+ ],
+ [
+ "personal choice",
+ "Is it okay for a killer to kill someone because it was his personal choice?",
+ ],
+ [
+ "I love animals",
+ "Would you also say, “I love my children and I also beat them”?",
+ ],
+ [
+ "meat tastes good",
+ "Is it morally acceptable for someone to kill a dog if that person likes the taste? \n As a vegan you can still experience all the tastes and consistencies you were used to, with the only difference that they are made of plants.",
+ ],
+ [
+ "animals eat meat",
+ "Wild animals also kill each other. Does that mean it’s morally acceptable for people to kill each other?",
+ ],
+ [
+ "tradition",
+ "Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?",
+ ],
+ [
+ "culture",
+ "Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?",
+ ],
+ [
+ "our ancestors ate meat",
+ "Eating animals has helped our ancestors to survive. But do we still need to resort to eating meat to survive today?",
+ ],
+ [
+ "cows will overpopulate the world",
+ "The world will not become completely vegan overnight, but this will instead be a gradual process over a long period of time.",
+ ],
+ [
+ "humans are more important",
+ "We don't need to choose between killing people and animals. Veganism is a way to avoid animal suffering while also improving the lives of humans and your own health.",
+ ],
+ [
+ "plants feel pain",
+ "It takes up to 16 kg of plants to produce 1 kg of meat. Additionally, we don't know that for a fact, where we can hear the screams of animals being slaughtered.",
+ ],
+ [
+ "it's the food chain",
+ "The food chain exists because of what animals need to do to survive. Do you need to eat animals to survive?\nAdditionally, every cruelty committed by man is based on the illusion of self-assigned power; be it Nazis who believed they were superior to Jews, white people who believed they were superior to black people, or people who believe they are superior to animals.",
+ ],
]);
if (argument.length === 0 || !argMap.has(argument)) {
- await interaction.reply({
- content: `Please enter a listed argument!`,
- ephemeral: true,
- fetchReply: true,
- });
+ await interaction.reply({
+ content: `Please enter a listed argument!`,
+ ephemeral: true,
+ fetchReply: true,
+ });
} else {
- await interaction.reply({
- content: `${argMap.get(argument)}`,
- ephemeral: false,
- fetchReply: true,
- });
+ await interaction.reply({
+ content: `${argMap.get(argument)}`,
+ ephemeral: false,
+ fetchReply: true,
+ });
}
return;
}
From ba947cc44b251b6382404d823fc852bfaba6e1be Mon Sep 17 00:00:00 2001
From: Kate <70778931+katefort@users.noreply.github.com>
Date: Sun, 21 Aug 2022 13:45:37 -0400
Subject: [PATCH 03/15] format the code again
---
src/commands/utils/info.ts | 205 ++++++++++++++++++-------------------
1 file changed, 102 insertions(+), 103 deletions(-)
diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts
index 701526d..7c14d40 100644
--- a/src/commands/utils/info.ts
+++ b/src/commands/utils/info.ts
@@ -17,108 +17,107 @@
along with this program. If not, see .
*/
- import { isMessageInstance } from "@sapphire/discord.js-utilities";
- import { Command } from "@sapphire/framework";
-
- export class InfoCommand extends Command {
- public constructor(context: Command.Context, options: Command.Options) {
- super(context, {
- ...options,
- name: "info",
- description: "Gets info on common anti-vegan arguments",
+import { isMessageInstance } from "@sapphire/discord.js-utilities";
+import { Command } from "@sapphire/framework";
+
+export class InfoCommand extends Command {
+ public constructor(context: Command.Context, options: Command.Options) {
+ super(context, {
+ ...options,
+ name: "info",
+ description: "Gets info on common anti-vegan arguments",
+ });
+ }
+
+ // Registers that this is a slash command
+ public override registerApplicationCommands(registry: Command.Registry) {
+ registry
+ .registerChatInputCommand((builder) =>
+ builder.setName(this.name).setDescription(this.description)
+ )
+ .addStringOption((option) =>
+ option
+ .setName("argument")
+ .setDescription("The argument you want to learn about")
+ .setRequired(true)
+ );
+ }
+
+ // Command run
+ public async getInfo(interaction: Command.ChatInputInteraction) {
+ const argument = interaction.options.getString("argument");
+ let argMap = new Map([
+ [
+ "natural",
+ "Murder and rape are both natural. Does that mean they are okay?",
+ ],
+ [
+ "but I can",
+ "You could also probably kill a baby if you wanted to. Does that make it right?",
+ ],
+ [
+ "resources",
+ "Here are some resources compiled in a spreadsheet form! https://vegancheatsheet.org",
+ ],
+ [
+ "personal choice",
+ "Is it okay for a killer to kill someone because it was his personal choice?",
+ ],
+ [
+ "I love animals",
+ "Would you also say, “I love my children and I also beat them”?",
+ ],
+ [
+ "meat tastes good",
+ "Is it morally acceptable for someone to kill a dog if that person likes the taste? \n As a vegan you can still experience all the tastes and consistencies you were used to, with the only difference that they are made of plants.",
+ ],
+ [
+ "animals eat meat",
+ "Wild animals also kill each other. Does that mean it’s morally acceptable for people to kill each other?",
+ ],
+ [
+ "tradition",
+ "Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?",
+ ],
+ [
+ "culture",
+ "Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?",
+ ],
+ [
+ "our ancestors ate meat",
+ "Eating animals has helped our ancestors to survive. But do we still need to resort to eating meat to survive today?",
+ ],
+ [
+ "cows will overpopulate the world",
+ "The world will not become completely vegan overnight, but this will instead be a gradual process over a long period of time.",
+ ],
+ [
+ "humans are more important",
+ "We don't need to choose between killing people and animals. Veganism is a way to avoid animal suffering while also improving the lives of humans and your own health.",
+ ],
+ [
+ "plants feel pain",
+ "It takes up to 16 kg of plants to produce 1 kg of meat. Additionally, we don't know that for a fact, where we can hear the screams of animals being slaughtered.",
+ ],
+ [
+ "it's the food chain",
+ "The food chain exists because of what animals need to do to survive. Do you need to eat animals to survive?\nAdditionally, every cruelty committed by man is based on the illusion of self-assigned power; be it Nazis who believed they were superior to Jews, white people who believed they were superior to black people, or people who believe they are superior to animals.",
+ ],
+ ]);
+
+ if (argument.length === 0 || !argMap.has(argument)) {
+ await interaction.reply({
+ content: `Please enter a listed argument!`,
+ ephemeral: true,
+ fetchReply: true,
});
- }
-
- // Registers that this is a slash command
- public override registerApplicationCommands(registry: Command.Registry) {
- registry
- .registerChatInputCommand((builder) =>
- builder.setName(this.name).setDescription(this.description)
- )
- .addStringOption((option) =>
- option
- .setName("argument")
- .setDescription("The argument you want to learn about")
- .setRequired(true)
- );
- }
-
- // Command run
- public async getInfo(interaction: Command.ChatInputInteraction) {
- const argument = interaction.options.getString("argument");
- let argMap = new Map([
- [
- "natural",
- "Murder and rape are both natural. Does that mean they are okay?",
- ],
- [
- "but I can",
- "You could also probably kill a baby if you wanted to. Does that make it right?",
- ],
- [
- "resources",
- "Here are some resources compiled in a spreadsheet form! https://vegancheatsheet.org",
- ],
- [
- "personal choice",
- "Is it okay for a killer to kill someone because it was his personal choice?",
- ],
- [
- "I love animals",
- "Would you also say, “I love my children and I also beat them”?",
- ],
- [
- "meat tastes good",
- "Is it morally acceptable for someone to kill a dog if that person likes the taste? \n As a vegan you can still experience all the tastes and consistencies you were used to, with the only difference that they are made of plants.",
- ],
- [
- "animals eat meat",
- "Wild animals also kill each other. Does that mean it’s morally acceptable for people to kill each other?",
- ],
- [
- "tradition",
- "Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?",
- ],
- [
- "culture",
- "Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?",
- ],
- [
- "our ancestors ate meat",
- "Eating animals has helped our ancestors to survive. But do we still need to resort to eating meat to survive today?",
- ],
- [
- "cows will overpopulate the world",
- "The world will not become completely vegan overnight, but this will instead be a gradual process over a long period of time.",
- ],
- [
- "humans are more important",
- "We don't need to choose between killing people and animals. Veganism is a way to avoid animal suffering while also improving the lives of humans and your own health.",
- ],
- [
- "plants feel pain",
- "It takes up to 16 kg of plants to produce 1 kg of meat. Additionally, we don't know that for a fact, where we can hear the screams of animals being slaughtered.",
- ],
- [
- "it's the food chain",
- "The food chain exists because of what animals need to do to survive. Do you need to eat animals to survive?\nAdditionally, every cruelty committed by man is based on the illusion of self-assigned power; be it Nazis who believed they were superior to Jews, white people who believed they were superior to black people, or people who believe they are superior to animals.",
- ],
- ]);
-
- if (argument.length === 0 || !argMap.has(argument)) {
- await interaction.reply({
- content: `Please enter a listed argument!`,
- ephemeral: true,
- fetchReply: true,
- });
- } else {
- await interaction.reply({
- content: `${argMap.get(argument)}`,
- ephemeral: false,
- fetchReply: true,
- });
- }
- return;
- }
+ } else {
+ await interaction.reply({
+ content: `${argMap.get(argument)}`,
+ ephemeral: false,
+ fetchReply: true,
+ });
+ }
+ return;
}
-
\ No newline at end of file
+}
From fbd951f022190e25c364075ed981fd28236902f1 Mon Sep 17 00:00:00 2001
From: Kate <70778931+katefort@users.noreply.github.com>
Date: Sun, 21 Aug 2022 13:50:18 -0400
Subject: [PATCH 04/15] format the code again
---
src/commands/utils/info.ts | 176 ++++++++++++++++++-------------------
1 file changed, 88 insertions(+), 88 deletions(-)
diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts
index 7c14d40..23e4bed 100644
--- a/src/commands/utils/info.ts
+++ b/src/commands/utils/info.ts
@@ -22,102 +22,102 @@ import { Command } from "@sapphire/framework";
export class InfoCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) {
- super(context, {
- ...options,
- name: "info",
- description: "Gets info on common anti-vegan arguments",
- });
+ super(context, {
+ ...options,
+ name: "info",
+ description: "Gets info on common anti-vegan arguments",
+ });
}
// Registers that this is a slash command
public override registerApplicationCommands(registry: Command.Registry) {
- registry
- .registerChatInputCommand((builder) =>
- builder.setName(this.name).setDescription(this.description)
- )
- .addStringOption((option) =>
- option
- .setName("argument")
- .setDescription("The argument you want to learn about")
- .setRequired(true)
- );
+ registry
+ .registerChatInputCommand((builder) =>
+ builder.setName(this.name).setDescription(this.description)
+ )
+ .addStringOption((option) =>
+ option
+ .setName("argument")
+ .setDescription("The argument you want to learn about")
+ .setRequired(true)
+ );
}
// Command run
public async getInfo(interaction: Command.ChatInputInteraction) {
- const argument = interaction.options.getString("argument");
- let argMap = new Map([
- [
- "natural",
- "Murder and rape are both natural. Does that mean they are okay?",
- ],
- [
- "but I can",
- "You could also probably kill a baby if you wanted to. Does that make it right?",
- ],
- [
- "resources",
- "Here are some resources compiled in a spreadsheet form! https://vegancheatsheet.org",
- ],
- [
- "personal choice",
- "Is it okay for a killer to kill someone because it was his personal choice?",
- ],
- [
- "I love animals",
- "Would you also say, “I love my children and I also beat them”?",
- ],
- [
- "meat tastes good",
- "Is it morally acceptable for someone to kill a dog if that person likes the taste? \n As a vegan you can still experience all the tastes and consistencies you were used to, with the only difference that they are made of plants.",
- ],
- [
- "animals eat meat",
- "Wild animals also kill each other. Does that mean it’s morally acceptable for people to kill each other?",
- ],
- [
- "tradition",
- "Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?",
- ],
- [
- "culture",
- "Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?",
- ],
- [
- "our ancestors ate meat",
- "Eating animals has helped our ancestors to survive. But do we still need to resort to eating meat to survive today?",
- ],
- [
- "cows will overpopulate the world",
- "The world will not become completely vegan overnight, but this will instead be a gradual process over a long period of time.",
- ],
- [
- "humans are more important",
- "We don't need to choose between killing people and animals. Veganism is a way to avoid animal suffering while also improving the lives of humans and your own health.",
- ],
- [
- "plants feel pain",
- "It takes up to 16 kg of plants to produce 1 kg of meat. Additionally, we don't know that for a fact, where we can hear the screams of animals being slaughtered.",
- ],
- [
- "it's the food chain",
- "The food chain exists because of what animals need to do to survive. Do you need to eat animals to survive?\nAdditionally, every cruelty committed by man is based on the illusion of self-assigned power; be it Nazis who believed they were superior to Jews, white people who believed they were superior to black people, or people who believe they are superior to animals.",
- ],
- ]);
+ const argument = interaction.options.getString("argument");
+ let argMap = new Map([
+ [
+ "natural",
+ "Murder and rape are both natural. Does that mean they are okay?",
+ ],
+ [
+ "but I can",
+ "You could also probably kill a baby if you wanted to. Does that make it right?",
+ ],
+ [
+ "resources",
+ "Here are some resources compiled in a spreadsheet form! https://vegancheatsheet.org",
+ ],
+ [
+ "personal choice",
+ "Is it okay for a killer to kill someone because it was his personal choice?",
+ ],
+ [
+ "I love animals",
+ "Would you also say, “I love my children and I also beat them”?",
+ ],
+ [
+ "meat tastes good",
+ "Is it morally acceptable for someone to kill a dog if that person likes the taste? \n As a vegan you can still experience all the tastes and consistencies you were used to, with the only difference that they are made of plants.",
+ ],
+ [
+ "animals eat meat",
+ "Wild animals also kill each other. Does that mean it’s morally acceptable for people to kill each other?",
+ ],
+ [
+ "tradition",
+ "Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?",
+ ],
+ [
+ "culture",
+ "Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?",
+ ],
+ [
+ "our ancestors ate meat",
+ "Eating animals has helped our ancestors to survive. But do we still need to resort to eating meat to survive today?",
+ ],
+ [
+ "cows will overpopulate the world",
+ "The world will not become completely vegan overnight, but this will instead be a gradual process over a long period of time.",
+ ],
+ [
+ "humans are more important",
+ "We don't need to choose between killing people and animals. Veganism is a way to avoid animal suffering while also improving the lives of humans and your own health.",
+ ],
+ [
+ "plants feel pain",
+ "It takes up to 16 kg of plants to produce 1 kg of meat. Additionally, we don't know that for a fact, where we can hear the screams of animals being slaughtered.",
+ ],
+ [
+ "it's the food chain",
+ "The food chain exists because of what animals need to do to survive. Do you need to eat animals to survive?\nAdditionally, every cruelty committed by man is based on the illusion of self-assigned power; be it Nazis who believed they were superior to Jews, white people who believed they were superior to black people, or people who believe they are superior to animals.",
+ ],
+ ]);
- if (argument.length === 0 || !argMap.has(argument)) {
- await interaction.reply({
- content: `Please enter a listed argument!`,
- ephemeral: true,
- fetchReply: true,
- });
- } else {
- await interaction.reply({
- content: `${argMap.get(argument)}`,
- ephemeral: false,
- fetchReply: true,
- });
- }
- return;
+ if (argument.length === 0 || !argMap.has(argument)) {
+ await interaction.reply({
+ content: `Please enter a listed argument!`,
+ ephemeral: true,
+ fetchReply: true,
+ });
+ } else {
+ await interaction.reply({
+ content: `${argMap.get(argument)}`,
+ ephemeral: false,
+ fetchReply: true,
+ });
+ }
+ return;
}
}
From 5c4624533cdfc0a8ae20413100ef57d65c41a17a Mon Sep 17 00:00:00 2001
From: Kate <70778931+katefort@users.noreply.github.com>
Date: Sun, 21 Aug 2022 13:53:16 -0400
Subject: [PATCH 05/15] format the code again
---
src/commands/utils/info.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts
index 23e4bed..5edfeb7 100644
--- a/src/commands/utils/info.ts
+++ b/src/commands/utils/info.ts
@@ -17,8 +17,8 @@
along with this program. If not, see .
*/
-import { isMessageInstance } from "@sapphire/discord.js-utilities";
-import { Command } from "@sapphire/framework";
+import { isMessageInstance } from '@sapphire/discord.js-utilities';
+import { Command } from '@sapphire/framework';
export class InfoCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) {
From a7c305da9a81d551995c1b29402029cb0e4ef1b0 Mon Sep 17 00:00:00 2001
From: Kate <70778931+katefort@users.noreply.github.com>
Date: Sun, 21 Aug 2022 14:35:42 -0400
Subject: [PATCH 06/15] format the code again (thanks anthony)
---
src/commands/utils/info.ts | 150 +++++++++++++------------------------
1 file changed, 52 insertions(+), 98 deletions(-)
diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts
index 5edfeb7..d057ced 100644
--- a/src/commands/utils/info.ts
+++ b/src/commands/utils/info.ts
@@ -17,107 +17,61 @@
along with this program. If not, see .
*/
-import { isMessageInstance } from '@sapphire/discord.js-utilities';
-import { Command } from '@sapphire/framework';
-
-export class InfoCommand extends Command {
- public constructor(context: Command.Context, options: Command.Options) {
+ import { isMessageInstance } from '@sapphire/discord.js-utilities';
+ import { Command } from '@sapphire/framework';
+
+ export class InfoCommand extends Command {
+ public constructor(context: Command.Context, options: Command.Options) {
super(context, {
- ...options,
- name: "info",
- description: "Gets info on common anti-vegan arguments",
+ ...options,
+ name: 'info',
+ description: 'Gets info on common anti-vegan arguments',
});
- }
-
- // Registers that this is a slash command
- public override registerApplicationCommands(registry: Command.Registry) {
- registry
- .registerChatInputCommand((builder) =>
- builder.setName(this.name).setDescription(this.description)
- )
- .addStringOption((option) =>
- option
- .setName("argument")
- .setDescription("The argument you want to learn about")
- .setRequired(true)
- );
- }
-
- // Command run
- public async getInfo(interaction: Command.ChatInputInteraction) {
- const argument = interaction.options.getString("argument");
- let argMap = new Map([
- [
- "natural",
- "Murder and rape are both natural. Does that mean they are okay?",
- ],
- [
- "but I can",
- "You could also probably kill a baby if you wanted to. Does that make it right?",
- ],
- [
- "resources",
- "Here are some resources compiled in a spreadsheet form! https://vegancheatsheet.org",
- ],
- [
- "personal choice",
- "Is it okay for a killer to kill someone because it was his personal choice?",
- ],
- [
- "I love animals",
- "Would you also say, “I love my children and I also beat them”?",
- ],
- [
- "meat tastes good",
- "Is it morally acceptable for someone to kill a dog if that person likes the taste? \n As a vegan you can still experience all the tastes and consistencies you were used to, with the only difference that they are made of plants.",
- ],
- [
- "animals eat meat",
- "Wild animals also kill each other. Does that mean it’s morally acceptable for people to kill each other?",
- ],
- [
- "tradition",
- "Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?",
- ],
- [
- "culture",
- "Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?",
- ],
- [
- "our ancestors ate meat",
- "Eating animals has helped our ancestors to survive. But do we still need to resort to eating meat to survive today?",
- ],
- [
- "cows will overpopulate the world",
- "The world will not become completely vegan overnight, but this will instead be a gradual process over a long period of time.",
- ],
- [
- "humans are more important",
- "We don't need to choose between killing people and animals. Veganism is a way to avoid animal suffering while also improving the lives of humans and your own health.",
- ],
- [
- "plants feel pain",
- "It takes up to 16 kg of plants to produce 1 kg of meat. Additionally, we don't know that for a fact, where we can hear the screams of animals being slaughtered.",
- ],
- [
- "it's the food chain",
- "The food chain exists because of what animals need to do to survive. Do you need to eat animals to survive?\nAdditionally, every cruelty committed by man is based on the illusion of self-assigned power; be it Nazis who believed they were superior to Jews, white people who believed they were superior to black people, or people who believe they are superior to animals.",
- ],
+ }
+
+ // Registers that this is a slash command
+ public override registerApplicationCommands(registry: Command.Registry) {
+ registry.registerChatInputCommand((builder) => builder
+ .setName(this.name)
+ .setDescription(this.description))
+ .addStringOption((option) => option.setName('argument')
+ .setDescription('The argument you want to learn about')
+ .setRequired(true));
+ }
+
+ // Command run
+ public async getInfo(interaction: Command.ChatInputInteraction) {
+ const argument = interaction.options.getString('argument');
+ const argMap = new Map([
+ ['natural', 'Murder and rape are both natural. Does that mean they are okay?'],
+ ['but I can', 'You could also probably kill a baby if you wanted to. Does that make it right?'],
+ ['resources', 'Here are some resources compiled in a spreadsheet form! https://vegancheatsheet.org'],
+ ['personal choice', 'Is it okay for a killer to kill someone because it was his personal choice?'],
+ ['I love animals', 'Would you also say, “I love my children and I also beat them”?'],
+ ['meat tastes good', 'Is it morally acceptable for someone to kill a dog if that person likes the taste? \n As a vegan you can still experience all the tastes and consistencies you were used to, with the only difference that they are made of plants.'],
+ ['animals eat meat', 'Wild animals also kill each other. Does that mean it’s morally acceptable for people to kill each other?'],
+ ['tradition', 'Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?'],
+ ['culture', 'Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?'],
+ ['our ancestors ate meat', 'Eating animals has helped our ancestors to survive. But do we still need to resort to eating meat to survive today?'],
+ ['cows will overpopulate the world', 'The world will not become completely vegan overnight, but this will instead be a gradual process over a long period of time.'],
+ ['humans are more important', "We don't need to choose between killing people and animals. Veganism is a way to avoid animal suffering while also improving the lives of humans and your own health."],
+ ['plants feel pain', "It takes up to 16 kg of plants to produce 1 kg of meat. Additionally, we don't know that for a fact, where we can hear the screams of animals being slaughtered."],
+ ["it's the food chain", 'The food chain exists because of what animals need to do to survive. Do you need to eat animals to survive?\nAdditionally, every cruelty committed by man is based on the illusion of self-assigned power; be it Nazis who believed they were superior to Jews, white people who believed they were superior to black people, or people who believe they are superior to animals.'],
+
]);
-
+
if (argument.length === 0 || !argMap.has(argument)) {
- await interaction.reply({
- content: `Please enter a listed argument!`,
- ephemeral: true,
- fetchReply: true,
- });
+ await interaction.reply({
+ content: 'Please enter a listed argument!',
+ ephemeral: true,
+ fetchReply: true,
+ });
} else {
- await interaction.reply({
- content: `${argMap.get(argument)}`,
- ephemeral: false,
- fetchReply: true,
- });
+ await interaction.reply({
+ content: `${argMap.get(argument)}`,
+ ephemeral: false,
+ fetchReply: true,
+ });
}
- return;
- }
-}
+ }
+ }
\ No newline at end of file
From 3a72fdd3ea38512e653a958d6a1fb16864ae1182 Mon Sep 17 00:00:00 2001
From: Kate <70778931+katefort@users.noreply.github.com>
Date: Sun, 21 Aug 2022 14:36:44 -0400
Subject: [PATCH 07/15] format the code again (thanks anthony)
---
src/commands/utils/info.ts | 116 ++++++++++++++++++-------------------
1 file changed, 58 insertions(+), 58 deletions(-)
diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts
index d057ced..d3fbad6 100644
--- a/src/commands/utils/info.ts
+++ b/src/commands/utils/info.ts
@@ -17,61 +17,61 @@
along with this program. If not, see .
*/
- import { isMessageInstance } from '@sapphire/discord.js-utilities';
- import { Command } from '@sapphire/framework';
-
- export class InfoCommand extends Command {
- public constructor(context: Command.Context, options: Command.Options) {
- super(context, {
- ...options,
- name: 'info',
- description: 'Gets info on common anti-vegan arguments',
- });
- }
-
- // Registers that this is a slash command
- public override registerApplicationCommands(registry: Command.Registry) {
- registry.registerChatInputCommand((builder) => builder
- .setName(this.name)
- .setDescription(this.description))
- .addStringOption((option) => option.setName('argument')
- .setDescription('The argument you want to learn about')
- .setRequired(true));
- }
-
- // Command run
- public async getInfo(interaction: Command.ChatInputInteraction) {
- const argument = interaction.options.getString('argument');
- const argMap = new Map([
- ['natural', 'Murder and rape are both natural. Does that mean they are okay?'],
- ['but I can', 'You could also probably kill a baby if you wanted to. Does that make it right?'],
- ['resources', 'Here are some resources compiled in a spreadsheet form! https://vegancheatsheet.org'],
- ['personal choice', 'Is it okay for a killer to kill someone because it was his personal choice?'],
- ['I love animals', 'Would you also say, “I love my children and I also beat them”?'],
- ['meat tastes good', 'Is it morally acceptable for someone to kill a dog if that person likes the taste? \n As a vegan you can still experience all the tastes and consistencies you were used to, with the only difference that they are made of plants.'],
- ['animals eat meat', 'Wild animals also kill each other. Does that mean it’s morally acceptable for people to kill each other?'],
- ['tradition', 'Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?'],
- ['culture', 'Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?'],
- ['our ancestors ate meat', 'Eating animals has helped our ancestors to survive. But do we still need to resort to eating meat to survive today?'],
- ['cows will overpopulate the world', 'The world will not become completely vegan overnight, but this will instead be a gradual process over a long period of time.'],
- ['humans are more important', "We don't need to choose between killing people and animals. Veganism is a way to avoid animal suffering while also improving the lives of humans and your own health."],
- ['plants feel pain', "It takes up to 16 kg of plants to produce 1 kg of meat. Additionally, we don't know that for a fact, where we can hear the screams of animals being slaughtered."],
- ["it's the food chain", 'The food chain exists because of what animals need to do to survive. Do you need to eat animals to survive?\nAdditionally, every cruelty committed by man is based on the illusion of self-assigned power; be it Nazis who believed they were superior to Jews, white people who believed they were superior to black people, or people who believe they are superior to animals.'],
-
- ]);
-
- if (argument.length === 0 || !argMap.has(argument)) {
- await interaction.reply({
- content: 'Please enter a listed argument!',
- ephemeral: true,
- fetchReply: true,
- });
- } else {
- await interaction.reply({
- content: `${argMap.get(argument)}`,
- ephemeral: false,
- fetchReply: true,
- });
- }
- }
- }
\ No newline at end of file
+import { isMessageInstance } from '@sapphire/discord.js-utilities';
+import { Command } from '@sapphire/framework';
+
+export class InfoCommand extends Command {
+ public constructor(context: Command.Context, options: Command.Options) {
+ super(context, {
+ ...options,
+ name: 'info',
+ description: 'Gets info on common anti-vegan arguments',
+ });
+ }
+
+ // Registers that this is a slash command
+ public override registerApplicationCommands(registry: Command.Registry) {
+ registry.registerChatInputCommand((builder) => builder
+ .setName(this.name)
+ .setDescription(this.description))
+ .addStringOption((option) => option.setName('argument')
+ .setDescription('The argument you want to learn about')
+ .setRequired(true));
+ }
+
+ // Command run
+ public async getInfo(interaction: Command.ChatInputInteraction) {
+ const argument = interaction.options.getString('argument');
+ const argMap = new Map([
+ ['natural', 'Murder and rape are both natural. Does that mean they are okay?'],
+ ['but I can', 'You could also probably kill a baby if you wanted to. Does that make it right?'],
+ ['resources', 'Here are some resources compiled in a spreadsheet form! https://vegancheatsheet.org'],
+ ['personal choice', 'Is it okay for a killer to kill someone because it was his personal choice?'],
+ ['I love animals', 'Would you also say, “I love my children and I also beat them”?'],
+ ['meat tastes good', 'Is it morally acceptable for someone to kill a dog if that person likes the taste? \n As a vegan you can still experience all the tastes and consistencies you were used to, with the only difference that they are made of plants.'],
+ ['animals eat meat', 'Wild animals also kill each other. Does that mean it’s morally acceptable for people to kill each other?'],
+ ['tradition', 'Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?'],
+ ['culture', 'Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?'],
+ ['our ancestors ate meat', 'Eating animals has helped our ancestors to survive. But do we still need to resort to eating meat to survive today?'],
+ ['cows will overpopulate the world', 'The world will not become completely vegan overnight, but this will instead be a gradual process over a long period of time.'],
+ ['humans are more important', "We don't need to choose between killing people and animals. Veganism is a way to avoid animal suffering while also improving the lives of humans and your own health."],
+ ['plants feel pain', "It takes up to 16 kg of plants to produce 1 kg of meat. Additionally, we don't know that for a fact, where we can hear the screams of animals being slaughtered."],
+ ["it's the food chain", 'The food chain exists because of what animals need to do to survive. Do you need to eat animals to survive?\nAdditionally, every cruelty committed by man is based on the illusion of self-assigned power; be it Nazis who believed they were superior to Jews, white people who believed they were superior to black people, or people who believe they are superior to animals.'],
+
+ ]);
+
+ if (argument.length === 0 || !argMap.has(argument)) {
+ await interaction.reply({
+ content: 'Please enter a listed argument!',
+ ephemeral: true,
+ fetchReply: true,
+ });
+ } else {
+ await interaction.reply({
+ content: `${argMap.get(argument)}`,
+ ephemeral: false,
+ fetchReply: true,
+ });
+ }
+ }
+}
\ No newline at end of file
From 2be46aad9cdcdd53c59f606ae3cad36147df34df Mon Sep 17 00:00:00 2001
From: Kate <70778931+katefort@users.noreply.github.com>
Date: Sun, 21 Aug 2022 14:37:58 -0400
Subject: [PATCH 08/15] add my name to copyright
---
src/commands/utils/info.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts
index d3fbad6..18f9330 100644
--- a/src/commands/utils/info.ts
+++ b/src/commands/utils/info.ts
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
/*
Animal Rights Advocates Discord Bot
- Copyright (C) 2022 Anthony Berg
+ Copyright (C) 2022 Anthony Berg, Kate Fort
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
From 591b3fd128ddaf9e904fc763d16cf425752b0612 Mon Sep 17 00:00:00 2001
From: Kate <70778931+katefort@users.noreply.github.com>
Date: Sun, 21 Aug 2022 14:38:42 -0400
Subject: [PATCH 09/15] add a newline at end of file (are you kidding)
---
src/commands/utils/info.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts
index 18f9330..803e38e 100644
--- a/src/commands/utils/info.ts
+++ b/src/commands/utils/info.ts
@@ -74,4 +74,4 @@ export class InfoCommand extends Command {
});
}
}
-}
\ No newline at end of file
+}
From 2270f06647aa7e1518d33994a3e77d137763de95 Mon Sep 17 00:00:00 2001
From: Kate <70778931+katefort@users.noreply.github.com>
Date: Sun, 21 Aug 2022 14:40:35 -0400
Subject: [PATCH 10/15] help
---
src/commands/utils/info.ts | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts
index 803e38e..6890431 100644
--- a/src/commands/utils/info.ts
+++ b/src/commands/utils/info.ts
@@ -17,7 +17,6 @@
along with this program. If not, see .
*/
-import { isMessageInstance } from '@sapphire/discord.js-utilities';
import { Command } from '@sapphire/framework';
export class InfoCommand extends Command {
From ff0a04989f2eb7a41166b531952c3cbfe1fcd384 Mon Sep 17 00:00:00 2001
From: Kate <70778931+katefort@users.noreply.github.com>
Date: Sun, 21 Aug 2022 14:47:09 -0400
Subject: [PATCH 11/15] fix
---
src/commands/utils/info.ts | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts
index 6890431..e06fa4d 100644
--- a/src/commands/utils/info.ts
+++ b/src/commands/utils/info.ts
@@ -19,7 +19,8 @@
import { Command } from '@sapphire/framework';
-export class InfoCommand extends Command {
+class InfoCommand extends Command {
+ argMap: Map;
public constructor(context: Command.Context, options: Command.Options) {
super(context, {
...options,
@@ -41,7 +42,7 @@ export class InfoCommand extends Command {
// Command run
public async getInfo(interaction: Command.ChatInputInteraction) {
const argument = interaction.options.getString('argument');
- const argMap = new Map([
+ this.argMap = new Map([
['natural', 'Murder and rape are both natural. Does that mean they are okay?'],
['but I can', 'You could also probably kill a baby if you wanted to. Does that make it right?'],
['resources', 'Here are some resources compiled in a spreadsheet form! https://vegancheatsheet.org'],
@@ -74,3 +75,4 @@ export class InfoCommand extends Command {
}
}
}
+export default InfoCommand;
From 98eb4c0497dad2e16db54cde0b501dd00e5c2537 Mon Sep 17 00:00:00 2001
From: Kate <70778931+katefort@users.noreply.github.com>
Date: Sun, 21 Aug 2022 14:49:43 -0400
Subject: [PATCH 12/15] fix
---
src/commands/utils/info.ts | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts
index e06fa4d..bb24d89 100644
--- a/src/commands/utils/info.ts
+++ b/src/commands/utils/info.ts
@@ -21,6 +21,7 @@ import { Command } from '@sapphire/framework';
class InfoCommand extends Command {
argMap: Map;
+
public constructor(context: Command.Context, options: Command.Options) {
super(context, {
...options,
From 2e181a8d1cae99186c891ad242020204bb09ea23 Mon Sep 17 00:00:00 2001
From: Kate <70778931+katefort@users.noreply.github.com>
Date: Sun, 21 Aug 2022 14:50:54 -0400
Subject: [PATCH 13/15] fix
---
src/commands/utils/info.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts
index bb24d89..8a73893 100644
--- a/src/commands/utils/info.ts
+++ b/src/commands/utils/info.ts
@@ -21,7 +21,7 @@ import { Command } from '@sapphire/framework';
class InfoCommand extends Command {
argMap: Map;
-
+
public constructor(context: Command.Context, options: Command.Options) {
super(context, {
...options,
From aec4367ce0844d858d156b150990ac5268ae8769 Mon Sep 17 00:00:00 2001
From: Kat <70778931+katefort@users.noreply.github.com>
Date: Thu, 25 Aug 2022 17:29:46 -0400
Subject: [PATCH 14/15] fix info command to compile properly
---
src/commands/utils/info.ts | 122 ++++++++++++++++++++++++-------------
1 file changed, 81 insertions(+), 41 deletions(-)
diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts
index 8a73893..4292bf5 100644
--- a/src/commands/utils/info.ts
+++ b/src/commands/utils/info.ts
@@ -1,27 +1,25 @@
// SPDX-License-Identifier: GPL-3.0-or-later
/*
- Animal Rights Advocates Discord Bot
- Copyright (C) 2022 Anthony Berg, Kate Fort
+ Animal Rights Advocates Discord Bot
+ Copyright (C) 2022 Anthony Berg, Kate Fort
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program. If not, see .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
*/
import { Command } from '@sapphire/framework';
class InfoCommand extends Command {
- argMap: Map;
-
public constructor(context: Command.Context, options: Command.Options) {
super(context, {
...options,
@@ -34,42 +32,84 @@ class InfoCommand extends Command {
public override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand((builder) => builder
.setName(this.name)
- .setDescription(this.description))
- .addStringOption((option) => option.setName('argument')
- .setDescription('The argument you want to learn about')
- .setRequired(true));
+ .setDescription(this.description)
+ .addStringOption((option) => option
+ .setName('argument')
+ .setDescription('The argument you want to learn more about')
+ .setRequired(true)
+ .addChoices(
+ {
+ name: 'natural',
+ value: 'Murder and rape are both natural. Does that mean they are okay?',
+ },
+ {
+ name: 'but I can',
+ value: 'You could also probably kill a baby if you wanted to. Does that make it right?',
+ },
+ {
+ name: 'resources',
+ value: 'Here are some resources compiled in a spreadsheet form! https://vegancheatsheet.org',
+ },
+ {
+ name: 'personal choice',
+ value: 'Is it okay for a killer to kill someone because it was his personal choice?',
+ },
+ {
+ name: 'I love animals',
+ value: 'Would you also say, “I love my children and I also beat them”?',
+ },
+ {
+ name: 'meat tastes good',
+ value: 'Is it morally acceptable for someone to kill a dog if that person likes the taste? \n As a vegan you can still experience all the tastes and consistencies you were used to, with the only difference that they are made of plants.',
+ },
+ {
+ name: 'animals eat meat',
+ value: 'Wild animals also kill each other. Does that mean it\'s morally acceptable for people to kill each other?',
+ },
+ {
+ name: 'it\'s my tradition',
+ value: 'Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?',
+ },
+ {
+ name: 'it\'s my culture',
+ value: 'Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?',
+ },
+ {
+ name: 'our ancestors ate meat',
+ value: 'Eating animals has helped our ancestors to survive. But do we still need to resort to eating meat to survive today?',
+ },
+ {
+ name: 'cows will overpopulate the world',
+ value: 'The world will not become completely vegan overnight, but this will instead be a gradual process over a long period of time.',
+ },
+ {
+ name: 'humans are more important',
+ value: "We don't need to choose between killing people and animals. Veganism is a way to avoid animal suffering while also improving the lives of humans and your own health.",
+ },
+ {
+ name: 'plants feel pain',
+ value: "It takes up to 16 kg of plants to produce 1 kg of meat. Additionally, we don't know that for a fact, where we can hear the screams of animals being slaughtered.",
+ },
+ {
+ name: "it's the food chain",
+ value: 'The food chain exists because of what animals need to do to surive. Do you need to eat animals to survive?\nAdditionally, every cruelty committed by man is based on the illusion of self-assigned power; be it Nazis who believed they were superior to Jews, white people who believed they were superior to black people, or people who believe they are superior to animals.',
+ },
+ )));
}
// Command run
- public async getInfo(interaction: Command.ChatInputInteraction) {
- const argument = interaction.options.getString('argument');
- this.argMap = new Map([
- ['natural', 'Murder and rape are both natural. Does that mean they are okay?'],
- ['but I can', 'You could also probably kill a baby if you wanted to. Does that make it right?'],
- ['resources', 'Here are some resources compiled in a spreadsheet form! https://vegancheatsheet.org'],
- ['personal choice', 'Is it okay for a killer to kill someone because it was his personal choice?'],
- ['I love animals', 'Would you also say, “I love my children and I also beat them”?'],
- ['meat tastes good', 'Is it morally acceptable for someone to kill a dog if that person likes the taste? \n As a vegan you can still experience all the tastes and consistencies you were used to, with the only difference that they are made of plants.'],
- ['animals eat meat', 'Wild animals also kill each other. Does that mean it’s morally acceptable for people to kill each other?'],
- ['tradition', 'Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?'],
- ['culture', 'Slavery, racial segregation and the oppression of women were once regarded as a tradition and part of culture. Is that why we should stick to these practices?'],
- ['our ancestors ate meat', 'Eating animals has helped our ancestors to survive. But do we still need to resort to eating meat to survive today?'],
- ['cows will overpopulate the world', 'The world will not become completely vegan overnight, but this will instead be a gradual process over a long period of time.'],
- ['humans are more important', "We don't need to choose between killing people and animals. Veganism is a way to avoid animal suffering while also improving the lives of humans and your own health."],
- ['plants feel pain', "It takes up to 16 kg of plants to produce 1 kg of meat. Additionally, we don't know that for a fact, where we can hear the screams of animals being slaughtered."],
- ["it's the food chain", 'The food chain exists because of what animals need to do to survive. Do you need to eat animals to survive?\nAdditionally, every cruelty committed by man is based on the illusion of self-assigned power; be it Nazis who believed they were superior to Jews, white people who believed they were superior to black people, or people who believe they are superior to animals.'],
-
- ]);
-
- if (argument.length === 0 || !argMap.has(argument)) {
+ public static async getInfo(interaction: Command.ChatInputInteraction) {
+ const argy = interaction.options.getString('argument');
+ if (argy === null) {
await interaction.reply({
- content: 'Please enter a listed argument!',
+ content:
+ 'Please choose a listed argument or talk to an activist for further questions!',
ephemeral: true,
fetchReply: true,
});
} else {
await interaction.reply({
- content: `${argMap.get(argument)}`,
+ content: `${argy}`,
ephemeral: false,
fetchReply: true,
});
From d890c8158c0db999daed3a4bfeb322a1fdf93940 Mon Sep 17 00:00:00 2001
From: Kat <70778931+katefort@users.noreply.github.com>
Date: Thu, 25 Aug 2022 17:56:23 -0400
Subject: [PATCH 15/15] rename variable
---
src/commands/utils/info.ts | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts
index 4292bf5..63880bc 100644
--- a/src/commands/utils/info.ts
+++ b/src/commands/utils/info.ts
@@ -99,17 +99,17 @@ class InfoCommand extends Command {
// Command run
public static async getInfo(interaction: Command.ChatInputInteraction) {
- const argy = interaction.options.getString('argument');
- if (argy === null) {
+ const response = interaction.options.getString('argument');
+ if (response === null) {
await interaction.reply({
content:
- 'Please choose a listed argument or talk to an activist for further questions!',
+ 'Please choose a listed argument, or talk to an activist for further questions!',
ephemeral: true,
fetchReply: true,
});
} else {
await interaction.reply({
- content: `${argy}`,
+ content: `${response}`,
ephemeral: false,
fetchReply: true,
});