Skip to content

Commit

Permalink
Add bun support
Browse files Browse the repository at this point in the history
  • Loading branch information
valgaze committed Feb 27, 2024
1 parent 470a512 commit 2a9c805
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
8 changes: 7 additions & 1 deletion docs/new.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ Copy the commands below to get up and running
npx -y speedybot@^2.0.0 setup --project default --boot --install {{ store.state.tokenValid ? `--token ${store.state.token}` : '' }}
```

```sh-vue [🚀 Bun (FAST!!)]
bunx speedybot@^2.0.0 setup --bun --project default --boot --install {{ store.state.tokenValid ? `--token ${store.state.token}` : '' }}
```

```sh-vue [👹 Experienced]
git clone https://github.com/valgaze/speedybot
cd speedybot
Expand Down Expand Up @@ -133,7 +137,7 @@ volta install node

However you set up your system, make sure to run `node -v` in your terminal to verify node is correctly installed and you can get up and running with `npx speedybot setup --project default`:

<img src="https://raw.githubusercontent.com/valgaze/speedybot-utils/main/assets/various/new/cli_setup.gif"
<img src="https://raw.githubusercontent.com/valgaze/speedybot-utils/main/assets/various/cli_setup.gif"
:style="{ filter: !isDark ? 'invert(1)' : 'none' }"
style="
margin: 1rem 0px;
Expand All @@ -145,6 +149,8 @@ However you set up your system, make sure to run `node -v` in your terminal to v
padding: 10px;
"/>

Note: If you really want to speedy things up try it with **[Bun](https://bun.sh)** and install with
`curl -fsSL https://bun.sh/install | bash`
:::

Now send a message to your bot and you'll see a welcome screen with buttons and cards:
Expand Down
3 changes: 2 additions & 1 deletion examples/speedybot-starter/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ You can turn your bot back on by entering the following commands:
cd ${resolve(__dirname, "..")}
npm run dev
If you want to deploy your bot to a persistent server or serverless function, see here: https://speedybot.js.org/examples
If you want to deploy your bot to a persistent server or serverless function, see here:
https://speedybot.js.org/examples
`
);
};
4 changes: 2 additions & 2 deletions examples/voiceflow-kb/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ You can turn your bot back on by entering the following commands:
cd ${resolve(__dirname, "..")}
npm run dev
If you want to deploy your bot to a persistent server or serverless function, see here: https://speedybot.js.org/examples
`
If you want to deploy your bot to a persistent server or serverless function, see here:
https://speedybot.js.org/examples`
);
};
4 changes: 2 additions & 2 deletions examples/voiceflow/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ You can turn your bot back on by entering the following commands:
cd ${resolve(__dirname, "..")}
npm run dev
If you want to deploy your bot to a persistent server or serverless function, see here: https://speedybot.js.org/examples
`
If you want to deploy your bot to a persistent server or serverless function, see here:
https://speedybot.js.org/examples`
);
};

0 comments on commit 2a9c805

Please sign in to comment.