-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
122 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,13 +19,20 @@ Configure the bot's Delta Chat account: | |
|
||
```sh | ||
matterdelta init [email protected] PASSWORD | ||
# optional: | ||
``` | ||
|
||
You can run `matterdelta init` several times to add multiple different accounts to the bot | ||
so it can be reached in more than one email address. | ||
|
||
The bot's display name, avatar and status/signature can also be tweaked: | ||
|
||
``` | ||
matterdelta config selfavatar "/path/to/avatar.png" | ||
matterdelta config displayname "Bridge Bot" | ||
matterdelta config selfstatus "Hi, I am a Delta Chat bot" | ||
``` | ||
|
||
Running the bot: | ||
To run the bot so it starts processing messages: | ||
|
||
```sh | ||
matterdelta serve | ||
|
@@ -65,7 +72,7 @@ Add these to your existing Matterbridge config to set up an API instance that Ma | |
``` | ||
{ | ||
"gateways": [ | ||
{"gateway": "gateway1", "chatId": 1234} | ||
{"gateway": "gateway1", "accountId": 1, "chatId": 1234} | ||
], | ||
"api": { | ||
"url": "http://127.0.0.1:4242", | ||
|
@@ -78,6 +85,6 @@ Add these to your existing Matterbridge config to set up an API instance that Ma | |
This file should be in Matterdelta's configuration directory, usually `~/.config/matterdelta/` | ||
in Linux-based systems. | ||
|
||
To get the `chatId` of the chat you want to bridge, run the bot and add its address to your Delta Chat group, | ||
then send `/id`in the group, the bot will reply with the chat id, then edit the configuration file | ||
and restart the bot. | ||
To get the `accountId` and `chatId` of the chat you want to bridge, | ||
run the bot and add its address to your Delta Chat group, then send `/id` in the group, | ||
the bot will reply with the account and chat id, then edit the configuration file and restart the bot. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Matterdelta bot.""" | ||
|
||
from .hooks import cli | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
requires = ["setuptools>=64", "setuptools_scm>=8"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
version = "0.2.2" | ||
name = "matterdelta" | ||
description = "Matterbridge API plugin for Delta Chat" | ||
dynamic = ["version"] | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
requires-python = ">=3.8" | ||
license = {file = "LICENSE.txt"} | ||
keywords = ["deltachat", "bot", "matterbridge", "bridge"] | ||
authors = [ | ||
{name = "adbenitez", email = "[email protected]"}, | ||
{name = "adbenitez", email = "[email protected]"}, | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Programming Language :: Python" | ||
] | ||
dependencies = [ | ||
"deltabot-cli>=0.1.0", | ||
"deltachat-rpc-server>=1.127.0", | ||
"deltabot-cli>=3.0.0,<4.0", | ||
"requests", | ||
] | ||
|
||
|
@@ -40,6 +39,9 @@ dev = [ | |
[project.scripts] | ||
matterdelta = "matterdelta:main" | ||
|
||
[tool.setuptools_scm] | ||
# can be empty if no extra settings are needed, presence enables setuptools_scm | ||
|
||
[tool.isort] | ||
profile = "black" | ||
|
||
|