跳到正文
GitHub·· 6 天前AI 评分8

MaybeNancy/UniversalSlackBot:基于 FastAPI 的 Slack 机器人项目

MaybeNancy/UniversalSlackBot

AI 导读

MaybeNancy/UniversalSlackBot 是一个基于 FastAPI 的 Slack 机器人项目,采用异步架构,核心组件包括 Dispatcher/Router、Handlers 与插件、Services/Integrations 及存储模块。

正文

CODE GOALS:

  • Use async (Done? I guess)
  • No critical data stored in files or memory (all credentials for app auth are handled elsewhere, anything else is no critical)
  • Small independent modules
  • REDIS
  • Fewer dependencies
  • Error/duplicates/uninitiallized catching

CORE COMPONENTS:

  • FastAPI
  • Dispatcher/Router (simplified)
  • Handlers and plugins (to be modified more)
  • Services/Integrations (kinda added)
  • Storage [tiny json files/in memory data] (not needed right now, but possibly in a future)
  • REDIS THINGY: (To be added)
    • Rate limiter
    • Offload tasks (async stuff)
    • Concurrency thingy
    • Caching (LRU /TTL) (To be added)
  • Logging

EXTRA:

  • Built in logger, so I can catch bugs with the app itself
  • Health endpoint (kinda added)
  • Schema validation (better but still needa checks)
  • Slack block attachment formatting util (to be added)
  • Error handling/signature verification (to be modified)
  • Ack Slack inmediately (to be improved with the help of REDIS)

AND MUCH MORE!!! (Eventually added :>)

Warning

Project is under critical modifications, prone to errors, thank you for your patience :'P

来源:GitHub · github.com