🤖 The universal chatbot library based on React. Write once, launch Telegram, Facebook, Slack, ... every messenger with chatbots
The universal chatbot library based on React.
Platforms we are supporting
Soon
Please use our zero configuration starter.
npx create-urban-bot my-app
npx create-urban-bot my-app --template js
Or install manually:
bash npm i react @urban-bot/core @urban-bot/telegram @urban-bot/facebook ...
```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( ); ```