-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
97 additions
and
374 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 |
---|---|---|
@@ -1,44 +0,0 @@ | ||
import * as discord from "discord-api-types"; | ||
import type { AppSchema } from "discord-app"; | ||
|
||
export const appSchema = { | ||
chatInput: { | ||
name: "shorter", | ||
description: "Manage shortlinks.", | ||
subcommands: { | ||
add: { | ||
description: "Add a shortlink.", | ||
options: { | ||
alias: { | ||
type: discord.ApplicationCommandOptionType.String, | ||
description: "The alias of the shortlink", | ||
required: true, | ||
}, | ||
destination: { | ||
type: discord.ApplicationCommandOptionType.String, | ||
description: "The destination of the shortlink", | ||
required: true, | ||
}, | ||
force: { | ||
type: discord.ApplicationCommandOptionType.Boolean, | ||
description: "Whether to overwrite an existing shortlink", | ||
}, | ||
ttl: { | ||
type: discord.ApplicationCommandOptionType.String, | ||
description: "The time-to-live of the shortlink", | ||
}, | ||
}, | ||
}, | ||
remove: { | ||
description: "Remove a shortlink.", | ||
options: { | ||
alias: { | ||
type: discord.ApplicationCommandOptionType.String, | ||
description: "The alias of the shortlink", | ||
required: true, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} as const satisfies AppSchema; | ||
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,15 +1,13 @@ | ||
{ | ||
"tasks": { | ||
"start": "deno run -A --unstable-kv main.ts", | ||
"start": "deno run -A --unstable-kv --env main.ts", | ||
"ngrok": "ngrok http 8080" | ||
}, | ||
"imports": { | ||
"discord-api-types": "https://deno.land/x/[email protected]/v10.ts", | ||
"@discord-applications/app": "jsr:@discord-applications/app@^0.0.4", | ||
"codemod": "https://deno.land/x/[email protected]/github/mod.ts", | ||
"durationjs": "https://deno.land/x/[email protected]/mod.ts", | ||
"discord-app": "https://deno.land/x/[email protected]/mod.ts", | ||
"tweetnacl": "npm:[email protected]", | ||
"@std/dotenv": "jsr:@std/dotenv@^0.222.1", | ||
"shorter/": "./" | ||
"shorter/": "./", | ||
"tweetnacl": "npm:[email protected]" | ||
} | ||
} |
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,3 @@ | ||
import { load } from "@std/dotenv"; | ||
|
||
await load({ export: true }); | ||
|
||
/** | ||
* PORT is the port to listen on. | ||
*/ | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
979aaa4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failed to deploy: