8go / matrix-eno-bot

An admin and personal assistence Matrix bot built on matrix-nio and nio-template
Apache License 2.0
86 stars 13 forks source link

Feature Request: msgtype configurable #35

Open Dual-0 opened 1 year ago

Dual-0 commented 1 year ago

Hello,

first of all thanks for this special bot! ❤️

can we make the msgtype configurable? per default the msgtype is m.notice

example:

{
  "content": {
    "msgtype": "m.notice",
    "body": "@user:my.domain, You’re so special.",
    "format": "org.matrix.custom.html"
  },
  "type": "m.room.message",
  "room_id": "!xXXXxxxXxxXXxXx:my.domain"
}

would be nice to have a configuration option in commands.yaml like:

  hello:
    regex:             "^salut$|^ciao$|^hallo$|^hi$|^servus$|^hola$|^hello$|^hello .*$|^bonjour$|^bonne nuit$|^hello.sh$"
    cmd:               hello.sh
    help:              gives you a friendly compliment
    message_type:      text
    markdown_convert:  false
    formatted:         true
    code:              false

I try to force it in chat_functions.py but the bot doesn't start after changing

Thanks in advance

8go commented 1 year ago

Hi @Dual-0. Thanks for your request. The eno-bot is currently not my priority. It would be nice if someone could provide a Pull Request for your suggestion. Anyone else, needing this feature? Anyone willing to put in the effort and provide a PR?