Skip to content

Commit a850a3a

Browse files
committed
add echo bot README.md
1 parent e49e85e commit a850a3a

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

examples/echobot/Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
6+
7+
gem 'sinatra'
8+
gem 'line-bot-api'

examples/echobot/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Echo Bot
2+
3+
An example LINE bot just to echo messages
4+
5+
## Getting started
6+
7+
```ruby
8+
$ export LINE_CHANNEL_SECRET=YOUR_CHANNEL_SECRET
9+
$ export LINE_CHANNEL_TOKEN=YOUR_CHANNEL_ACCESS_TOKEN
10+
$ bundle install
11+
$ bundle exec ruby app.rb
12+
```
13+
14+
```
15+
https://your.base.url:4567/callback
16+
```

0 commit comments

Comments
 (0)