Gem 一覧へ戻る
ArcaneChat/arcanebot-cli-py(新しいタブで開きます)
主要言語: Python
Library to speedup ArcaneChat bot development
- star 数
- 33
- watcher 数
- 2
- fork 数
- 4
- issue 数
- 0
- 最終更新
- 2026/08/13
主要言語: Python
Library to speedup ArcaneChat bot development
Library to speedup Delta Chat bot development.
With this library you can focus on writing your event/message processing logic and let us handle the repetitive process of creating the bot CLI.
pip install deltabot-cli
Example echo-bot written with deltabot-cli:
from deltachat2 import MessageData, events from deltabot_cli import BotCli cli = BotCli("echobot") @cli.on(events.RawEvent) def log_event(bot, accid, event): bot.logger.info(event) @cli.on(events.NewMessage) def echo(bot, accid, event): msg = event.msg bot.rpc.send_msg(accid, msg.chat_id, MessageData(text=msg.text)) if __name__ == "__main__": cli.start()
If you run the above script you will have a bot CLI, that allows to configure and run a bot. A progress bar is displayed while the bot is configuring, and logs are pretty-printed.
For more examples check the examples folder.