RepositoryJavaScript
hubotio

hubotio/hubot-redis-brain

A hubot script to persist hubot's brain using redis

70stars
60forks
1issues
0views

💾 Lưu trữ Hubot Brain lên Redis với hubot-redis-brain

Một plugin giúp Hubot lưu trữ bền vững dữ liệu brain (trạng thái, người dùng, bộ nhớ...) lên Redis, tránh mất dữ liệu khi khởi động lại.

hubot-redis-brain là một script cho Hubot, giúp lưu trữ dữ liệu brain (brain state) của Hubot lên Redis. Thay vì lưu trữ trong bộ nhớ RAM (mất khi khởi động lại), plugin này đảm bảo dữ liệu được duy trì liên tục.

✨ Điểm nổi bật

  • Lưu trữ brain lên Redis: Sử dụng Redis làm backend lưu trữ bền vững cho dữ liệu Hubot.
  • Cấu hình qua REDIS_URL: Hỗ trợ cấu hình hostname, port, authentication, key prefix qua biến môi trường REDIS_URL.
  • Hỗ trợ UNIX domain socket: Có thể kết nối qua socket thay vì TCP.
  • Tích hợp Heroku: Tự động phát hiện và sử dụng Redis Cloud hoặc Redis To Go addon trên Heroku.
  • Hỗ trợ Boxen: Tự động sử dụng Redis do Boxen quản lý nếu có biến BOXEN_REDIS_URL.
  • Tắt kiểm tra Redis: Hỗ trợ tùy chọn REDIS_NO_CHECK để tắt ready check khi dùng Twemproxy.
  • Cài đặt đơn giản: Chỉ cần thêm vào external-scripts.json và cài đặt qua npm.
  • Hỗ trợ nhiều nền tảng: Dễ dàng cài Redis trên macOS (Homebrew), Ubuntu/Debian (apt), hoặc biên dịch từ nguồn.

💡 Vì sao đáng chú ý

Plugin này giải quyết vấn đề mất dữ liệu khi Hubot khởi động lại, rất hữu ích cho các bot cần duy trì trạng thái người dùng, bộ nhớ hội thoại hoặc cấu hình lâu dài. Với hỗ trợ cấu hình linh hoạt qua REDIS_URL và tích hợp sẵn các nền tảng như Heroku, Boxen, plugin này giúp triển khai Hubot trong môi trường thực tế trở nên dễ dàng và vững chắc hơn.


#Hubot #Redis #OpenSource #Chatbot #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryJavaScript
stephenyeargin/hubot-grafana

📈🤖 Query Grafana dashboards

154
Nov 15, 2026
RepositoryJavaScript
mtsmfm/hubot-test-helper

Helper for testing hubot script

113
Dec 29, 2023
RepositoryJavaScript
hubot-archive/hubot-pager-me

PagerDuty integration for Hubot

73
Oct 31, 2026
RepositoryJava
jenkinsci/hubot-steps-plugin

Jenkins pipeline steps for integration with Hubot.

59
Nov 2, 2026
RepositoryJavaScript
hubotio/hubot

A customizable life embetterment robot.

16.8k
Nov 1, 2026
RepositoryJavaScript
loafoe/hubot-matteruser

Hubot adapter for Mattermost using Web API and Websockets

194
Jan 17, 2025
RepositoryJavaScript
xmppjs/hubot-xmpp

XMPP adapter for Hubot

181
Dec 30, 2022
RepositoryJavaScript
lukefx/hubot-telegram

Hubot adapter for Telegram

160
Jan 6, 2023
RepositoryJavaScript
hubotio/generator-hubot

Hubot generator for Yeoman

157
Aug 5, 2026