Skip to content

miloira/line-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

line-web

Line chatbot framework.

Usage

$ pip install line-web
from line import Line
from line.authentications import BusinessAuthentication

bot = Line(
    authentication=BusinessAuthentication("<username>", "<password>"), # Business Account
    bot="<shop>" # Shop Name
)


# event
# chat(message, messageSent, read, typing, typingVanished, noteUpdated, markedAsManualChat, unmarkedAsManualChat, chatRead, assigneeUpdated, tagged, ...)
# botUnreadChatCount(increment, ...)
# botInfo(hasChatRoomChanged, ...)
# ...

@bot.handle()
def on_event(bot, event):
    print(bot, event)


@bot.handle("chat", "message")
def on_message(bot, event):
    pass


bot.run()

Meta

Distributed under the MIT license. See LICENSE <https://github.com/miloira/line-web/LICENSE> for more information.

https://github.com/miloira/line-web

About

Line chatbot framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages