             #     console.log 'groupMember',data
             # )
 
-
-        @on 'ready', =>
-            console.log 'ready to send'
-            msg = Message.create('hi', {uin:1})
+            msg = Message.create('hi', {uin:})
             @sendToFriend(msg, (data)->
                 console.log 'send msg', data
             )
+            msg = Message.create('hiqun', {uin:})
+            @sendToGroup(msg, (data)->
+                console.log 'send group msg', data
+            )
+            msg = Message.create('hiqun', {uin:})
+            @sendToDiscussionGroup(msg, (data)->
+                console.log 'send discus group msg', data
+            )
 
         @online()
 


        client = HttpClient.create('http://d.web2.qq.com')
            .path('channel/get_discu_info')
            .header('Cookie', @cookie)
            .header('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8')
            .post(QueryString.stringify(params))((err, resp, body) =>
                cb body
        )
    accountToUin:(account) ->
        for x in @friends
            if x.account is account
                return x.uin

    groupToUin:(groupId) ->
        for x in @groups
            if x.id is groupId
                return x.guin

    sendToFriend: (msg, callback) ->
        console.log 'send to friend'

        params =
            r: JSON.stringify(rValue)

        data = QueryString.stringify(params)
        client = HttpClient.create('http://s.web2.qq.com')
            .path('api/get_user_friends2')
            .header('Cookie', @cookie())
            .header('Referer', 'http://s.web2.qq.com/proxy.html?v=20110412001&callback=1&id=3')
            .header('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8')
            .post(data)((err, resp, body) =>
