Skip to content

Commit 0ef61d3

Browse files
committed
chore: fmt
1 parent 49fc02b commit 0ef61d3

File tree

4 files changed

+34
-32
lines changed

4 files changed

+34
-32
lines changed

README.md

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,48 +8,43 @@ Welcome to the repo for the official Svelte Discord bot!
88

99
## Commands
1010

11-
- Bookmark
11+
- Bookmark
12+
- Message command that lets you save a reference to a message from the server in your DMs. Right click any message then go to `Apps` in the context menu to use.
1213

13-
- Message command that lets you save a reference to a message from the server in your DMs. Right click any message then go to `Apps` in the context menu to use.
14+
- Docs
15+
- `/docs svelte` or `/docs sveltekit`: Quickly search the Svelte or SvelteKit docs and send a link in the chat.
16+
- `/mdn` Same as above but for the MDN web docs.
1417

15-
- Docs
18+
- Github
19+
- `/discussion`, `/issue` or `/pr` search for matching discussions, issues or PRs in some of the `sveltejs/*` repositories and send links to the results in the chat.
1620

17-
- `/docs svelte` or `/docs sveltekit`: Quickly search the Svelte or SvelteKit docs and send a link in the chat.
18-
- `/mdn` Same as above but for the MDN web docs.
21+
- Tags: Tags are a way to store and reuse frequent responses so that you don't have to look up and type them out every time.
22+
- `/tag` Sends an existing tag to the chat.
23+
- `/tags create` Create a tag. You must have the threadlord role to use it.
24+
- `/tags update` Edit a tag. You must be the author of the tag to use it.
25+
- `/tags delete` Delete a tag. You must be the author of the tag or have the threadlord role.
1926

20-
- Github
27+
- Threads: These are commands to manage the autothreads created by the bot. They can be used by the person who initiated the thread or by people with the threadlord role.
28+
- `/thread rename`
29+
- `/thread solve` Renames the thread to have a green checkmark at the start and sets the archive duration to 1hr.
30+
- `/thread archive` Archive an active thread without marking it as solved.
31+
- `/thread reopen` Reopen a thread that's been accidentally marked as solved.
2132

22-
- `/discussion`, `/issue` or `/pr` search for matching discussions, issues or PRs in some of the `sveltejs/*` repositories and send links to the results in the chat.
23-
24-
- Tags: Tags are a way to store and reuse frequent responses so that you don't have to look up and type them out every time.
25-
26-
- `/tag` Sends an existing tag to the chat.
27-
- `/tags create` Create a tag. You must have the threadlord role to use it.
28-
- `/tags update` Edit a tag. You must be the author of the tag to use it.
29-
- `/tags delete` Delete a tag. You must be the author of the tag or have the threadlord role.
30-
31-
- Threads: These are commands to manage the autothreads created by the bot. They can be used by the person who initiated the thread or by people with the threadlord role.
32-
33-
- `/thread rename`
34-
- `/thread solve` Renames the thread to have a green checkmark at the start and sets the archive duration to 1hr.
35-
- `/thread archive` Archive an active thread without marking it as solved.
36-
- `/thread reopen` Reopen a thread that's been accidentally marked as solved.
37-
38-
- Stats: _Currently disabled_ commands which let you see how many cookies‡ a user has and the server leaderboard.
39-
<span style="margin-inline-start: 4ch; font-size: 0.8em;">‡ internet points for solving threads, not the evil tracking ones</small>
33+
- Stats: _Currently disabled_ commands which let you see how many cookies‡ a user has and the server leaderboard.
34+
<span style="margin-inline-start: 4ch; font-size: 0.8em;">‡ internet points for solving threads, not the evil tracking ones</small>
4035

4136
# Stack
4237

4338
Click on the links below to view the documentation on the different parts of the bot's tech stack:
4439

45-
- [TypeScript](https://www.typescriptlang.org/docs/)
46-
- [JellyCommands](https://github.com/ghostdevv/jellycommands)
47-
- [Pocketbase](https://pocketbase.io)
40+
- [TypeScript](https://www.typescriptlang.org/docs/)
41+
- [JellyCommands](https://github.com/ghostdevv/jellycommands)
42+
- [Pocketbase](https://pocketbase.io)
4843

4944
# Config
5045

51-
- The bots main config is located at [src/config.ts](src/config.ts), by default it will have the Svelte Discord & Testing configurations.
52-
- All secrets should be in a `.env` file, the template/example can be found [here](./.env.example).
46+
- The bots main config is located at [src/config.ts](src/config.ts), by default it will have the Svelte Discord & Testing configurations.
47+
- All secrets should be in a `.env` file, the template/example can be found [here](./.env.example).
5348

5449
# Contributing
5550

src/commands/docs/tutorial.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ export default command({
3939
`Have you gone through the tutorial page on ${top_result}?`,
4040
)
4141
: {
42-
content: "No matching result found. Try again with a different search term.",
42+
content:
43+
'No matching result found. Try again with a different search term.',
4344
ephemeral: true,
4445
},
4546
);

src/commands/tags/tags_read.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export default command({
4545

4646
await defer;
4747
await interaction.followUp({
48-
content: "No tag found with that name, remember tag names have to be exact.",
48+
content:
49+
'No tag found with that name, remember tag names have to be exact.',
4950
embeds: matching_tags && [
5051
list_embed_builder(
5152
matching_tags.map((t) => `\`${t}\``),

src/events/on_message/_autothread.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { ChannelType, type Message, MessageType, type ThreadChannel } from 'discord.js';
1+
import {
2+
ChannelType,
3+
type Message,
4+
MessageType,
5+
type ThreadChannel,
6+
} from 'discord.js';
27
import { delete_message, in_link_only_channel, STOP } from './_common.js';
38
import { AUTO_THREAD_CHANNELS, HELP_CHANNELS } from '../../config.js';
49
import { wrap_in_embed } from '../../utils/embed_helpers.js';

0 commit comments

Comments
 (0)