Exemplo n.º 1
0
#!/usr/bin/python
import sys
sys.path.append("./project/RasWxNeteaseMusic")
sys.path.append("./project/RasWxNeteaseMusic/neteaseApi/ncmbot")
from WxNeteaseMusic import WxNeteaseMusic
import ncmbot
from PluginManager import Model_MenuObj

wnm = WxNeteaseMusic()
ncmbot.login(phone='17302827960', password='******')

class MusicPlugin(Model_MenuObj):
    def __init__(self):
        pass

    def Start(self,content,sender):
    	if content.startswith("m"):
            res = wnm.msg_handler(content[2:])
            sender.send(res)

Exemplo n.º 2
0
 def test_PERSONAL_FM(self):
     ncmbot.login(phone='xxx', password='******')
     r = ncmbot.personal_fm()
     print 'test_PERSONAL_FM', r.content
Exemplo n.º 3
0
 def test_EVENT(self):
     ncmbot.login(phone='xxx', password='******')
     r = ncmbot.event()
     print 'test_EVENT', r.content
     pass
Exemplo n.º 4
0
 def test_LOGIN(self):
     r = ncmbot.login(phone='xxx', password='******')
     print 'test_LOGIN', r.content
     pass
Exemplo n.º 5
0
 def test_USER_RECORD(self):
     ncmbot.login(phone='xxx', password='******')
     r = ncmbot.user_record(uid='264893698')
     print 'test_USER_RECORD', r.content
     pass