Basic LINE client using unofficial Thrift API
kawaii-based clients have been banned in the past. As long as you aren't a moron (like me) and not straying too far from the protocol, you should be fine. However, you probably shouldn't link your main account and your bot's account just to be safe.
I accept no responsibility for anything that happens to you for using kawaii. If you get banned, that's 100% your fault.
That being said, have fun!
- Install Apache Thrift from here.
- Download line.thrift from here.
npm install
thrift -r --gen js:node line.thrift
require('./kawaii')
- Log in (and emulate a desktop LINE client)
- Interact using an EventEmitter
- Read non-letter-sealing messages
- Send messages
- Pretty much everything else.
var Kawaii = require("./kawaii");
var bot = new Kawaii("email", "password", cert);
bot.emitter.on("certificate", function(cert){
// Save our certificate for easier, mobile-free log-ons in the future
require("fs").writeFileSync("cert.private", cert);
});
bot.emitter.on("messageReceived", function(message){
bot.sendMessage(message.mFrom, message.text);
});
bot.connect();
Matti Virkkunen for his research and documentation on the LINE protocol; without it, this wouldn't have been possible
GPL v3