# Line Bot Message API + Django 基礎設定 ## Introduction 本篇的目標是建立一個 Line 機器人,並且可以實際執行而不用額外付費。當然,如果您的目的是要商業使用,則應該進一步使用付費方案。 Line Bot 基礎教學很多,但大部分要可以真的實際使用都需要經過複雜的過程,而且可能只是暫時性的,因此這篇使用 Replit 可以免費且快速的部署,讓初學者一窺究竟。 而筆者有點懶惰,所以打算直接拍影片,而且效果可能也比較好。 ## 會用到的連結 - [Line Developer](https://developers.line.biz/zh-hant/services/bot-designer/) - [我的Replit專案](https://replit.com/@kyle1228/myLineBot?v=1) - [我拍的Youtube教學](https://www.youtube.com/@meow-yeh) ## 常用的 command ``` // 建立資料表 python manage.py makemigrations python manage.py migrate // 建立後台使用者 python manage.py createsuperuser ``` ## Check List 以下是簡單的檢查清單,可以檢查下列項目是否都完成。 - [ ] 申請 Line Developer 帳號 - [ ] 創立 Line Bot Message API - [ ] 建立 Replit 帳號 - [ ] Fork 我的 Replit 專案 - [ ] Replit 設定好 Secret Key - [ ] Replit 按下 Run 出現 Webview - [ ] 將 Line Bot 的兩個密碼貼到 Replit - [ ] 將 Line Bot 的 Webhook 設定好 - [ ] Webhook 按下 Verify 出現 Success Todo: - 拍影片 ## 上課講解 - [20231206 記帳](https://replit.com/@kyle1228/myLineBotlessondemo20231206?v=1)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up