Sha256: 0e80dced766bf21d8a136b6f40eb2f5dcf8a79f072db9e82b6b8dcf9a13cc19d

Contents?: true

Size: 407 Bytes

Versions: 3

Compression:

Stored size: 407 Bytes

Contents

# frozen_string_literal: true
require 'opqr'
# 加载插件
plugin_dir = File.join(File.dirname(__FILE__), 'plugins')
ps = OPQ::PluginLoader.new
ps.load_all(plugin_dir)
# 必须是个数组
# 使用OPQ::QqObj.new创建需要监听消息的对象,加入对象数组ob
# 功能请在插件目录添加插件实现
ob = []
ob << OPQ::QqObj.new(1294222408,ps.plugins)
bot = OPQ::Bot.new("127.0.0.1",8086,ob)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
opqr-0.1.5 example/main.rb
opqr-0.1.4 example/main.rb
opqr-0.1.3 example/main.rb