Compare commits

...

3 commits

Author SHA1 Message Date
Evilham bf6add3fd0
Add update_config.sh script 2024-02-28 20:13:24 +01:00
Evilham 58fc01f17d
Add avatar asset 2024-02-27 15:50:27 +01:00
Evilham 9d2ad1436c
Switch to final rooms and user_id 2024-02-27 15:50:11 +01:00
3 changed files with 25 additions and 5 deletions

BIN
avatar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View file

@ -1,8 +1,7 @@
# TODO: setup definitive rooms and bot on eXO's server
bot_user_id = '@bot_exo:unchat.cat'
bot_user_id = '@exofasia:matrix.guifi.net'
# bot password is specified via the BOT_PASSWORD environment variable
reporting_room_id = '!hpnyGxAwuNxXIwuBrv:unchat.cat'
admin_room_id = '!ddhJlZpTNIuWWctmFj:unchat.cat'
reporting_room_id = '!XzqjayeQShMPfcRChD:matrix.guifi.net'
admin_room_id = '!XUhsnBMCHMVyvAltDL:matrix.guifi.net'
notice_emoji = '⭕'
restrict_notice = true
image_markdown = '> ![]({{file}})'
@ -12,7 +11,7 @@ verbs = ["reporta", "diu", "anuncia", "comenta", "informa"]
min_length = 30
# Set to '' to disable text response
ack_text = "✅ Gràcies {{user}}, hem desat la teva resposta per eXOfàsia!"
update_config_command = "sh /data/update_config.sh"
update_config_command = "sh ./update_config.sh"
editors = [
'@evilham:unchat.cat',
'@guifipedro:matrix.guifi.net',

21
hebbot/update_config.sh Executable file
View file

@ -0,0 +1,21 @@
#!/bin/sh -eu
cd "${HEBBOT_DATA_DIR:-/data}"
BASE_HEBBOT_URL="${BASE_HEBBOT_URL:-https://farga.exo.cat/exo/eXOfasia/raw/branch/main/hebbot}"
echo "Updating config.toml ..."
wget -nv -O config.toml "${BASE_HEBBOT_URL}/config.toml"
echo "Updating report_template.md..."
wget -nv -O report_template.md "${BASE_HEBBOT_URL}/report_template.md"
echo "Updating section_template.md..."
wget -nv -O section_template.md "${BASE_HEBBOT_URL}/section_template.md"
echo "Updating project_template.md..."
wget -nv -O project_template.md "${BASE_HEBBOT_URL}/project_template.md"
echo "Updating update_config.sh ..."
wget -nv -O update_config.sh "${BASE_HEBBOT_URL}/update_config.sh"