Need help with urban-bot?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

urban-bot
297 Stars 12 Forks MIT License 649 Commits 22 Opened issues

Description

🤖 The universal chatbot library based on React. Write once, launch Telegram, Discord, Facebook, ... every messenger with chatbots

Services available

!
?

Need anything else?

Contributors list

Build Community Chat

Urban Bot

The universal chatbot library based on React.

  • Declarative. You don't need to know any messenger API, just write simple react components.
  • Multiplatform. Write once, launch any messenger.
  • Reusable. Easy share logic between different chatbots or just use common parts.
  • Session. App renders unique for every chat, so just write your app as if it is client-side rendering.
  • Types. Full typescript support.

Platforms we are supporting

Soon

Get Started

API

Tutorials

Installation

Please use our zero configuration starter.

typescript

npx create-urban-bot my-app

javascript

npx create-urban-bot my-app --template js

Or install manually:

bash
npm i react @urban-bot/core @urban-bot/telegram @urban-bot/facebook ...

Example

```javascript import React from 'react'; import { render, Route, Router, Root, Text, ButtonGroup, Button, useText } from '@urban-bot/core'; import { UrbanBotTelegram } from '@urban-bot/telegram'; import { UrbanBotSlack } from '@urban-bot/slack';

function Echo() { const [text, setText] = React.useState('Say something');

useText(({ text }) => {
    setText(text);
});

return ( {text} );

}

function Counter() { const [count, setCount] = React.useState(0);

const increment = () => setCount(count + 1);
const decrement = () => setCount(count - 1);

return ( +1 -1 );

}

function App() { return ( ); }

const urbanBotTelegram = new UrbanBotTelegram({ token: 'telegramToken', });

const urbanBotSlack = new UrbanBotSlack({ signingSecret: 'slackSigningSecret', token: 'slackToken', });

render( );

render( ); ```

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.