Skip to content

Commit

Permalink
Merge branch 'main' into docs/idle
Browse files Browse the repository at this point in the history
  • Loading branch information
william-monroy authored Oct 9, 2023
2 parents fc1eeb0 + f42f8ec commit bf23558
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/docs/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default component$(() => {
{ name: 'endFlow', link: '/docs/end-flow' },
{ name: 'gotoFlow', link: '/docs/goto-flow' },
{ name: 'idle', link: '/docs/idle' },
{ name: 'blacklist', link: '/docs/blacklist' },
],
},
{
Expand Down
32 changes: 32 additions & 0 deletions packages/docs/src/routes/docs/blacklist/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import Navigation from '../../../components/widgets/Navigation'

# blackList

Se utiliza para bloquear usuarios que no esten en la lista de usuarios permitidos.

Para implementar esta caracteristica deberás hacerlo al momento de crear la instancia del bot.

## Ejemplo

```js
createBot({
flow: adapterFlow,
provider: adapterProvider,
database: adapterDB,
},{
blackList:['34XXXXXXXX']
})
```

## Propiedades

- **blackList** (array): Lista de usuarios que no podran interactuar con el bot.

---

<Navigation
pages={[
{ name: 'Instalación', link: '/docs/install' },
{ name: 'Conceptos', link: '/docs/essential' },
]}
/>

0 comments on commit bf23558

Please sign in to comment.