Skip to content

Commit

Permalink
add typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
valgaze committed Feb 17, 2024
1 parent 56b17e9 commit 642afb4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ Here's a starter `bot.ts`:
```ts
import { SpeedyBot } from "speedybot";

const Bot = new SpeedyBot();

Bot.addStep(async ($) => {
await $.send("Step 1");
if ($.text === "hi") {
Expand Down Expand Up @@ -150,6 +152,10 @@ Note: You could run this from a script, a CI/CD environment, an existing server
You can do a LOT of cool stuff with **[SpeedyCards](./speedycard.md)** but one of the most useful things you can do is capture user data in a structured manner. Below we'll send the user a **[SpeedyCard](./speedycard.md)** and then when they tap submit it will be displayed back to the user

```ts
import { SpeedyBot } from "speedybot";

const Bot = new SpeedyBot();

Bot.addStep(async ($) => {
// if card submission
if ($.data) {
Expand Down

0 comments on commit 642afb4

Please sign in to comment.