Skip to content

Instantly share code, notes, and snippets.

View lxchurbakov's full-sized avatar

Aleksandr Churbakov lxchurbakov

View GitHub Profile
@lxchurbakov
lxchurbakov / slackbot.js
Last active October 28, 2022 07:28
chatbots
const app = new App({
socketMode: true,
token: String(process.env.SLACK_BOT_TOKEN),
appToken: String(process.env.SLACK_APP_TOKEN),
signingSecret: String(process.env.SLACK_SIGNING_SECRET),
});
;(async () => {
// Start your app
app.start().catch((error) => {
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/6.6.0/rxjs.umd.js"></script>
</head>
<body>
<input id="name" />
<div id="gender">Gender: null</div>