Sha256: bd6d867209517070e7e2cfe4e13732ce04f4f6139942a350468fff5f6d2ce53d

Contents?: true

Size: 815 Bytes

Versions: 1

Compression:

Stored size: 815 Bytes

Contents

#!/usr/bin/env ruby

require 'matrix_qq'

config = File.join(ENV['HOME'], '.config', 'matrix-qq', 'config')
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',
      #   to: { '!abcdef: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

1 entries across 1 versions & 1 rubygems

Version Path
matrix_qq-0.1.1 exe/matrix_qq