Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/pyproject.toml
xtex 23ae1fb5f2
feat: partial matrix support (#680)
* build(deps): add matrix-nio

* build(deps): update requirements.txt for matrix-nio

* feat: add example config for matrix

* feat: init matrix support

* feat: do init sync to avoid receiving old messages

* feat: store next sync batch with file

* feat: parse matrix message

* feat: check moderator permission

* feat: redacting message

* feat: toMessageChain for m.text and m.image

* feat: drop m.notice messages

* feat: sending messages

* fix: power level fetching

* fix: rich reply fallback stripping

* style: less log

* feat: guess image content type

* fix: image upload

* feat: sending audio

* chore: add todo

* chore: add todo

* fix: use FinS.result to store room id

As the spec, room_id is an opaque identifier, and at least all valid ASCII characters except '/' and ':' can be included in room_id. This means in some servers, '|' may be included in room_id.

* fix: print RoomSendError

* fix: public rooms with two user are regarded as DM

* feat: resolving pm

* fix: nio.ErrorResponse

* feat: add post test

* feat: pm post test

* Revert "feat: pm post test"

This reverts commit 3688213c80.

* Revert "feat: add post test"

This reverts commit 259fcf54ca.

* feat: create TPM room

* feat: send typing notifications

* feat: leave empty room

* feat: rich reply formatted fallback support

* fix: import

* fix: include body in formatted rich reply fallbacks

* fix: escape line breaks in html

* fix: <br/> tag

* feat: improve matrix direct messaging

* feat: parse m.emote as m.text

* fix: command run blockingly

* fix: message send error handle

* fix: keep DM room

* fix: reuse of DM rooms

* feat: add error log

* docs: add deploy guide for matrix

* docs: add matrix to readme

* docs: add more warning

* style: remove explictly type declartion  (poljar/matrix-nio#417)

* feat: receive audio message

* feat: standard rich-reply fallback for m.emote

* chore: add matrix to bug report issues template
2023-07-30 17:41:01 +08:00

75 lines
1.5 KiB
TOML

[tool.poetry]
name = "akari-bot"
version = "0.1.0"
description = ""
authors = [
"OasisAkari <oasisakari@teahou.se>",
"Dianliang233 <dianliang@teahou.se>",
"DoroWolf <dorowolf@tehou.se>",
"nullcat <null@teahou.se>",
"_LittleC_ <i@ltlec.com>",
]
license = "AGPL-3.0"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.8.1"
Pillow = "^9.4.0"
aiohttp = "^3.8.3"
beautifulsoup4 = "^4.11.1"
psutil = "^5.9.4"
gql = "^3.4.0"
filetype = "^1.2.0"
SQLAlchemy = "^1.4.46"
APScheduler = "^3.9.1.post1"
aioconsole = "^0.6.1"
aiogram = "^2.24"
ujson = "^5.7.0"
PyMySQL = "^1.0.2"
py-cord = "^2.3.2"
aiocqhttp = "^1.4.3"
tabulate = "^0.9.0"
feedparser = "^6.0.10"
ffmpy = "^0.3.0"
google-play-scraper = "^1.2.2"
py-cpuinfo = "^9.0.0"
aiofile = "^3.8.1"
loguru = "^0.6.0"
numpy = "^1.24.1"
matplotlib = "^3.6.3"
pint = "^0.21"
simpleeval = "^0.9.12"
pywin32 = { version = "^305", platform = "win32" }
tenacity = "^8.1.0"
openai = "^0.27.8"
cryptography = "^41.0.2"
pre-commit = "^3.0.4"
webcolors = "^1.12"
langchain = "^0.0.232"
wolframalpha = "^5.0.0"
duckduckgo-search = "^3.0.0"
chromadb = "^0.3.21"
tiktoken = "^0.3.3"
pycryptodome = "^3.18.0"
langconv = "^0.2.0"
toml = "^0.10.2"
khl-py = "^0.3.16"
matrix-nio = "^0.21.2"
attrs = "^23.1.0"
[tool.poetry.group.dev.dependencies]
autopep8 = "^2.0.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.autopep8]
max_line_length = 120
in-place = true
recursive = true
aggressive = 3
[tool.pyright]
reportUndefinedVariable = 'error'