Sha256: 42062b5a287702eada4f392b22cbb1c0baaec8907d2c3dd047e395cc20b2da45

Contents?: true

Size: 952 Bytes

Versions: 4

Compression:

Stored size: 952 Bytes

Contents

#!/usr/bin/env ruby

require 'matrix_qq'

config = File.join(ENV['HOME'], '.config', 'matrix-qq', 'config.rb')
unless File.size? config
  File.open config, 'w' do |f|
    f.puts %(module MatrixQQ
  Config = {
    tunnel: {
      # '#example:matrix.org' => {
      #   type: 'matrix',
      #   to: { '123456789' => 'group' }
      # },
      # '123456789' => {
      #   type: 'group',
      #   to: { '#example:matrix.org' => 'matrix' }
      # },
      # '10000' => {
      #   type: 'friend',
      #   intercept: false,
      #   to: { '!abcdef:matrix.org' => 'matrix' }
      # }
      # 'friend' => {
      #   type: 'all',
      #   to: { '#friend:matrix.org' => 'matrix' }
      # }
    }
  }
end)
  end
end
load config

session_bus = DBus::SessionBus.instance

matrix = MatrixQQ::Matrix.new session_bus
qq = MatrixQQ::QQ.new session_bus
matrix.qq_dbus = qq.dbus
qq.matrix_dbus = matrix.dbus

main = DBus::Main.new
main << session_bus
main.run

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
matrix_qq-0.5.2 exe/matrix_qq
matrix_qq-0.5.1 exe/matrix_qq
matrix_qq-0.5.0 exe/matrix_qq
matrix_qq-0.4.0 exe/matrix_qq