A unified bot for Discord and Slack and etc. Powered by Dify.AI.
- Slack
- Discord
- Coming Soon
DEBUG=debug
MODE=chat # chat or completion
ADAPTER=slack
# Dify
DIFY_API_BASE_URL=https://api.dify.ai/v1
DIFY_API_KEY=app-OxxxxxxxxxxxxxTxxxxxxx
# Slack
SLACK_BOT_TOKEN=xoxb-xxxxxxxxxxxxx-xxxxxxxxxxxxx-V25CBgH7347xxxxxxxxxxxxx
SLACK_APP_TOKEN=xapp-1-A05KP4WSVS4-xxxxxxxxxxxxx-4208xxxxxxxxxxxxxca9dxxxxxxxxxxxxxc33a0d8bb311d40axxxxxxxxxxxxx
# Discord
DISCORD_TOKEN=MTExMjAyMTMxOxxxxxxxxxxxxx.GkPR5t.xIrYZxxxxxxxxxxxxxBN1jqkxxxxxxxxxxxxx
DISCORD_ID=1112021318955708487
-
For Slack bot you need to create a bot user and install the app to your workspace. You need SLACK_BOT_TOKEN and SLACK_APP_TOKEN to run the bot. You can find the tokens in the Slack API page.
-
For Discord bot you need to create a bot user and get the token in the Discord Developer Portal. You nded DISCORD_TOKEN and DISCORD_ID to run the bot. You can find the tokens in the Discord Developer Portal as well.
TODO
You will need node.js 20.0.0 or newer.
cp .env.example .env
npm install
npm run build
npm run start
docker build . -t pinkbanana/bot:latest
npm run dev
docker build . -t pinkbanana/bot:latest
docker run -it --env-file .env pinkbanana/bot:latest
MIT License
- 小红书 点个关注 ➕