Skip to content

dahliahadfury/line_bot_framework

 
 

Repository files navigation

LINE Bot Framework

Framework to create bot for LINE Messenger

Features:

  • Installation Wizard
  • Code Editor
  • Emulator
  • Modular Apps

Pre-requisite

  • Web Server with PHP + mysqli + curl
  • MySQL Server

Getting Started

Download these project files and put it in your web server folder. Open web page with your web browser. It will display installation wizard.

Installation Wizard

alt text

alt text

alt text

alt text

alt text

Pages

  • Adders list

alt text

  • Editor with sample apps

alt text

  • Emulator

alt text

  • Settings

alt text

Sample Apps

  • EchoBot
<?php
	class EchoBot extends Line_Apps{
				
		function on_follow(){
			return "Hi!";
		}
		
		function on_message($text){
			return "Echo: " . $text;
		}
	}
  • Reverse
<?php
	class Reverse extends Line_Apps{
				
		function on_follow(){
			return "Welcome {$this->profile->display_name}.\nThis bot will respond with reversed words.";
		}
		
		function on_message($text){
			return strrev($text);
		}
	}

You can see other apps on Editor page

About

Framework to create bot for Line Messenger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.8%
  • PHP 8.3%
  • CSS 1.9%