From 568d7bc1471829ed332d70269db1ce7470206282 Mon Sep 17 00:00:00 2001 From: xHyroM Date: Thu, 14 Jul 2022 09:46:52 +0200 Subject: [PATCH] fix(tagsUtils): use +++ for codeblock --- README.md | 3 ++- files/tags.toml | 6 +++--- src/utils/tagsUtils.ts | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c8a2862..e94a91a 100644 --- a/README.md +++ b/README.md @@ -16,4 +16,5 @@ I love bun ❤️ Informations: - The bot uses interactions so you can use emoji from all discord servers. However, please only use ours as we can't control the others. - You can use hyperlink `[bun.sh](https://bun.sh)` -- Keywords need to include the tag name \ No newline at end of file +- Keywords need to include the tag name +- Use `+++` for codeblock (https://canary.discord.com/channels/876711213126520882/887787428973281300/997045766411530281) \ No newline at end of file diff --git a/files/tags.toml b/files/tags.toml index 9991d92..2e0794f 100644 --- a/files/tags.toml +++ b/files/tags.toml @@ -75,7 +75,7 @@ If that doesn't work (and you're on a Windows machine), try this: [illegal-instruction] keywords = ["illegal-instruction", "core-dumped", "dumped", "core", "illegal"] -cotent = """ +content = """ **Illegal instruction - core dumped** Bun currently only works on CPUs supporting the AVX2 instruction set. @@ -85,7 +85,7 @@ If you get this error while bun is initializing, you probably need to wrap the b **1.** Install intel-sde: • Arch Linux: `yay -S intel-sde` • Other Distros: -```bash ++++bash wget https://downloadmirror.intel.com/732268/sde-external-9.7.0-2022-05-09-lin.tar.xz -O /tmp/intel-sde.tar.xz cd /tmp tar -xf intel-sde.tar.xz @@ -94,7 +94,7 @@ mkdir /usr/local/bin -p cp sde64 /usr/local/bin/sde cp -r intel64 /usr/local/bin/ cp -r misc /usr/local/bin/ -``` ++++ **2.** Add alias to bashrc • `echo "alias bun='sde -chip-check-disable -- bun'" >> ~/.bashrc` diff --git a/src/utils/tagsUtils.ts b/src/utils/tagsUtils.ts index 5d745e6..47d1723 100644 --- a/src/utils/tagsUtils.ts +++ b/src/utils/tagsUtils.ts @@ -10,6 +10,7 @@ export interface Tag { const tagCache: Collection = new Collection(); for (const [key, value] of Object.entries(tags)) { + (value as Tag).content = (value as Tag).content.replaceAll('+', '`'); tagCache.set(key, value as unknown as Tag); }