Skip to content

Commit

Permalink
Merge pull request #8 from fabriguespe/docs_update_v1
Browse files Browse the repository at this point in the history
Fix docs deployment
  • Loading branch information
humanagent authored Jun 4, 2024
2 parents 3a1f828 + 1163748 commit d6524df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docs/docs/pages/access.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Create the `accessHandler` function to handle the access request. Returns true or false based on the access request.

```tsx [src/commands.ts]
```tsx [src/index.ts]
const accessHandler = async (context: HandlerContext): Promise<boolean> => {
const { senderAddress } = context.message;

Expand All @@ -17,7 +17,7 @@ const accessHandler = async (context: HandlerContext): Promise<boolean> => {

To declare the access command in the botkit app, you need to add the following code:

```tsx
```tsx [src/index.ts]
run(
async (context: HandlerContext) => {
/* Bot logic here */
Expand Down

0 comments on commit d6524df

Please sign in to comment.