Class: CQHttp::Bot
- Inherits:
-
Object
- Object
- CQHttp::Bot
- Defined in:
- lib/Bot/Bot.rb
Defined Under Namespace
Classes: Sender, Target, WebSocket
Class Method Summary collapse
Class Method Details
.connect(url, debugmode = false) {|client| ... } ⇒ Object
6 7 8 9 10 11 |
# File 'lib/Bot/Bot.rb', line 6 def self.connect(url, debugmode=false) client = ::CQHttp::Bot::WebSocket.new(url, debugmode) yield client if block_given? client.connect client end |