You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/docs/guide/introduction.md
+29-1Lines changed: 29 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ You will get to know them as you go.
66
66
67
67
## Prerequisites to Getting Started
68
68
69
-
> Skip the rest of this page if you already know how to develop a Deno or a Node.js application, and [get started](./getting-started).
69
+
> Skip the rest of this page if you already know how to develop Deno, Bun or Node.js application, and [get started](./getting-started).
70
70
71
71
Here are a few interesting things about programming---things that are essential to coding, yet rarely explained because most developers think they are self-evident.
72
72
@@ -173,6 +173,34 @@ You can stop the bot again with `Ctrl+C`.
Bun is a new JavaScript runtime, which is another good choice to build bot, like Deno, you are going to write your bot in TypeScript.
179
+
The exact commands for all of that will be introduced in the next section when you actually create a bot, but it is important to know that these steps are necessary.
180
+
181
+
Firstly, you have to have [Bun](https://bun.sh/) installed.
182
+
183
+
In summary, this is what you have to do for Bun:
184
+
185
+
Create a new directory somewhere.
186
+
It will contain your bot project.
187
+
Open this new directory in VS Code.
188
+
189
+
```sh
190
+
mkdir ./my-bot
191
+
cd ./my-bot
192
+
code .
193
+
```
194
+
195
+
Then:
196
+
197
+
1. Run `bun init --yes` in your terminal to initialize the project.
198
+
2. Create a source file `bot.ts` with TypeScript code inside the project.
199
+
3. Run `bun run bot.ts` from your terminal, or run `bun --watch run bot.ts` if you want to keep updated with file changes.
0 commit comments