Compare commits
3 commits
e83078e06a
...
bf6add3fd0
Author | SHA1 | Date | |
---|---|---|---|
Evilham | bf6add3fd0 | ||
Evilham | 58fc01f17d | ||
Evilham | 9d2ad1436c |
BIN
avatar.png
Normal file
BIN
avatar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
|
@ -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
21
hebbot/update_config.sh
Executable 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"
|
||||
|
Loading…
Reference in a new issue