-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from earthernsence/earth/the-miscellaneous-update
The "add stuff" update
- Loading branch information
Showing
67 changed files
with
2,045 additions
and
671 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ config.json | |
package-lock.json | ||
.vscode | ||
test.js | ||
/dist | ||
/dist | ||
/glyphapi |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* eslint-disable no-unused-vars */ | ||
import { ChatInputApplicationCommandData, Client, CommandInteraction } from "discord.js"; | ||
import { ChatInputApplicationCommandData, ChatInputCommandInteraction, Client, CommandInteraction } from "discord.js"; | ||
import { Model, ModelStatic } from "sequelize/types"; | ||
|
||
export interface Command extends ChatInputApplicationCommandData { | ||
run: (interaction: CommandInteraction, client: Client, tags?: ModelStatic<Model>) => void; | ||
run: (interaction: ChatInputCommandInteraction, client: Client, tags?: ModelStatic<Model>) => void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,12 @@ | ||
import { ApplicationCommandType, CommandInteraction } from "discord.js"; | ||
import { ApplicationCommandType, ChatInputCommandInteraction, Client } from "discord.js"; | ||
import { Command } from "../../command"; | ||
import { isHelper } from "../../functions/Misc"; | ||
import { earlyeternityprogression } from "./earlyeternityprogression"; | ||
|
||
export const eep: Command = { | ||
name: "eep", | ||
description: "shorthand for /earlyeternityprogression", | ||
type: ApplicationCommandType.ChatInput, | ||
run: async(interaction: CommandInteraction) => { | ||
if (!interaction) return; | ||
|
||
// eslint-disable-next-line max-len | ||
const content: string = `1. First eternity's EP on TD1 | ||
2. (Buying TS21 path + RESPEC) Eternity at e426IP for 3EP, spend all on TT | ||
3. (Buy TS42) Eternity at e500IP for 4 EP | ||
(Buy TS51) Eternity at e614IP for 8EP | ||
4. Buy TS61, then get 100 eternities. | ||
Afterwards, check out this flowchart (also pinned in eternity to ec1): https://i.imgur.com/pdmy3bN.png`; | ||
|
||
await interaction.reply({ content, ephemeral: !isHelper(interaction) }); | ||
run: async(interaction: ChatInputCommandInteraction, client: Client) => { | ||
await earlyeternityprogression.run(interaction, client); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,13 @@ | ||
import { ApplicationCommandOptionType, ApplicationCommandType, CommandInteraction } from "discord.js"; | ||
import { ApplicationCommandType, ChatInputCommandInteraction, Client } from "discord.js"; | ||
import { Command } from "../../command"; | ||
import { Tree } from "../../classes/Tree"; | ||
import { isHelper } from "../../functions/Misc"; | ||
import { ts } from "./ts"; | ||
|
||
export const studytree: Command = { | ||
name: "studytree", | ||
description: "Generates a Time Study tree based on your total Time Theorems.", | ||
type: ApplicationCommandType.ChatInput, | ||
options: [ | ||
{ | ||
name: "theorems", | ||
description: "The number of Time Theorems you have.", | ||
type: ApplicationCommandOptionType.Integer, | ||
required: true, | ||
// eslint-disable-next-line camelcase | ||
min_value: 0, | ||
}, | ||
{ | ||
name: "path", | ||
description: "The path you want to use; only has effect 54 < x < 123 where x is TT", | ||
type: ApplicationCommandOptionType.String, | ||
required: false, | ||
choices: [ | ||
{ name: "Passive", value: "passive" }, | ||
{ name: "Active", value: "active" }, | ||
{ name: "Idle", value: "idle" }, | ||
] | ||
} | ||
], | ||
run: async(interaction: CommandInteraction) => { | ||
if (!interaction || !interaction.isChatInputCommand()) return; | ||
|
||
const theorems: number = interaction.options.getInteger("theorems") as number; | ||
const path: string = interaction.options.getString("path") as string; | ||
const tree = new Tree(theorems, path).generateTree(); | ||
|
||
await interaction.reply({ content: tree, ephemeral: !isHelper(interaction) }); | ||
options: ts.options, | ||
run: async(interaction: ChatInputCommandInteraction, client: Client) => { | ||
await ts.run(interaction, client); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.