41 lines
1.1 KiB
Bash
Executable File
41 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
# Quick connect script for matrix.kokoham.com
|
|
# Run this inside WeeChat after loading the matrix plugin
|
|
|
|
echo "Quick connect to matrix.kokoham.com"
|
|
echo "=================================="
|
|
|
|
# Check if we're in WeeChat
|
|
if ! echo "$TERM" | grep -qE "^(xterm|screen|tmux)"; then
|
|
echo "Warning: This script is designed to run commands inside WeeChat"
|
|
echo "Start weechat first, then run: /exec -window ./scripts/quick_connect.sh"
|
|
echo ""
|
|
echo "Or paste these commands manually:"
|
|
echo ""
|
|
fi
|
|
|
|
cat << 'EOF'
|
|
/plugin load matrix
|
|
|
|
/server add kokoham https://matrix.kokoham.com:443
|
|
|
|
/set plugins.var.dev矩阵.server.kokoham.autoconnect on
|
|
/set plugins.var.dev矩阵.server.kokoham.ssl_verify on
|
|
|
|
# Connect
|
|
/connect kokoham
|
|
|
|
# After connecting, login with:
|
|
# /matrix login your_username your_password
|
|
|
|
# Or register a new account:
|
|
# /msg #register:matrix.kokoham.com your_password
|
|
|
|
/save
|
|
EOF
|
|
|
|
echo ""
|
|
echo "After connecting, you'll need to:"
|
|
echo "1. Register or login with your Matrix credentials"
|
|
echo "2. Link your Facebook account via the bridge (see server docs)"
|