Skip to content

Instantly share code, notes, and snippets.

View roger35972134's full-sized avatar

Roger Wang roger35972134

View GitHub Profile
class CurrencyController < ApplicationController
require 'line/bot'
def client
@client ||= Line::Bot::Client.new { |config|
config.channel_secret = ENV["LINE_CHANNEL_SECRET"] # Your Channel secret
config.channel_token = ENV["LINE_CHANNEL_TOKEN"] # Your Channel token
}
end