Skip to content

Commit

Permalink
replace root alias with #/
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanThatOneKid committed Apr 16, 2024
1 parent 418d079 commit 35139f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"ngrok": "ngrok http 8080"
},
"imports": {
"#/": "./",
"@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",
"shorter/": "./",
"tweetnacl": "npm:[email protected]"
}
}
4 changes: 2 additions & 2 deletions lib/queues/queues.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ShorterOptions } from "shorter/lib/shorter/mod.ts";
import { shorter } from "shorter/lib/shorter/mod.ts";
import type { ShorterOptions } from "#/lib/shorter/mod.ts";
import { shorter } from "#/lib/shorter/mod.ts";

/**
* TTLMessage is a message received from the TTL channel.
Expand Down
11 changes: 4 additions & 7 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,17 @@ import {
InteractionResponseType,
MessageFlags,
} from "@discord-applications/app";
import type { ShorterOptions } from "shorter/lib/shorter/mod.ts";
import { shorter } from "shorter/lib/shorter/mod.ts";
import {
addTTLMessage,
makeTTLMessageListener,
} from "shorter/lib/queues/mod.ts";
import type { ShorterOptions } from "#/lib/shorter/mod.ts";
import { shorter } from "#/lib/shorter/mod.ts";
import { addTTLMessage, makeTTLMessageListener } from "#/lib/queues/mod.ts";
import {
DISCORD_CLIENT_ID,
DISCORD_PUBLIC_KEY,
DISCORD_ROLE_ID,
DISCORD_TOKEN,
GITHUB_TOKEN,
PORT,
} from "shorter/env.ts";
} from "#/env.ts";

const INVITE_URL =
`https://discord.com/api/oauth2/authorize?client_id=${DISCORD_CLIENT_ID}&scope=applications.commands`;
Expand Down

1 comment on commit 35139f2

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 35139f2 Apr 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

UNCAUGHT_EXCEPTION

Error: Failed to register command: 400 Bad Request
    at registerApplicationCommand (https://jsr.io/@discord-applications/app/0.0.4/discord_api.ts:111:11)
    at eventLoopTick (ext:core/01_core.js:153:7)
    at async createApp (https://jsr.io/@discord-applications/app/0.0.4/app_handler.ts:414:5)
    at async main (file:///src/main.ts:94:22)
    at async file:///src/main.ts:79:3

Please sign in to comment.