Sha256: 71dff596ab293b898f06c8efa03f6ea153237780f442720ec966b1e3a5a9f0c1
Contents?: true
Size: 488 Bytes
Versions: 3
Compression:
Stored size: 488 Bytes
Contents
# frozen_string_literal: true require 'opqr' # ctx结构如下 # @type # @from_uin # @sender_uin # @text # @msg_type # @raw_json class Dxx < OPQ::PluginBase def receive_qq(qq, ctx) p "dxx收到来自好友的消息" OPQ::Api.new.send_text_qq(941094692,"我现在发消息给你",qq) end def receive_group(qq, ctx) p "dxx收到了来自群的消息" if ctx.text == "回我" OPQ::Api.new.send_text_group(435994283,"我收到了你的消息",qq) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opqr-0.1.5 | example/plugins/dxx.rb |
opqr-0.1.4 | example/plugins/dxx.rb |
opqr-0.1.3 | example/plugins/dxx.rb |