All Projects → hanshino → redive_linebot

hanshino / redive_linebot

Licence: MIT license
基於 Bottender 框架實作出的,公主連結聊天機器人,附加其他實用管理功能。

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to redive linebot

biguint-format
Node.js module to format big uint numbers from a byte array or a Buffer
Stars: ✭ 16 (-20%)
Mutual labels:  node-js
crowdin-api-client-js
JavaScript client library for Crowdin API
Stars: ✭ 89 (+345%)
Mutual labels:  node-js
BocchiBot
BocchiBot is a multipurpose WhatsApp bot using wa-automate-nodejs library!
Stars: ✭ 228 (+1040%)
Mutual labels:  node-js
midtrans-nodejs-client
Official Midtrans Payment API Client for Node JS | https://midtrans.com
Stars: ✭ 124 (+520%)
Mutual labels:  node-js
teresa
Teresa is a special bot of discord for you.
Stars: ✭ 21 (+5%)
Mutual labels:  node-js
json-as-xlsx
Create excel from json npm package
Stars: ✭ 103 (+415%)
Mutual labels:  node-js
op-mattermost
OpenProject and Mattermost integration
Stars: ✭ 19 (-5%)
Mutual labels:  node-js
nodejsdesignpatterns.com
Source for Website for Node.js Design Patterns, book by Mario Casciaro and Luciano Mammino, published by Packt (https://nodejsdp.link/buy)
Stars: ✭ 27 (+35%)
Mutual labels:  node-js
Registration-and-Login-using-MERN-stack
Simple Registration and Login component with MERN stack
Stars: ✭ 210 (+950%)
Mutual labels:  node-js
adyen-node-api-library
Adyen API Library for Node.js
Stars: ✭ 82 (+310%)
Mutual labels:  node-js
Tweet-Analysis-With-Kafka-and-Spark
A real time analytics dashboard to analyze the trending hashtags and @ mentions at any location using kafka and spark streaming.
Stars: ✭ 18 (-10%)
Mutual labels:  node-js
node-ctrip-tickets
🚄🚄🚄 Node.js 携程火车票查询,查询有票的列车
Stars: ✭ 12 (-40%)
Mutual labels:  node-js
mongo-uri-builder
A node.js module to easily create mongodb connection strings using configuration objects
Stars: ✭ 29 (+45%)
Mutual labels:  node-js
recent-activity
Add your recent activity to your profile readme!
Stars: ✭ 87 (+335%)
Mutual labels:  node-js
express-file-upload
Node.js Express Upload/Download File Rest APIs example with Multer
Stars: ✭ 64 (+220%)
Mutual labels:  node-js
TinyPNGNodeJSBatcher
提供一个NodeJS环境下,基于TinyPNG服务的,批量压缩任意数量图片的工具。
Stars: ✭ 51 (+155%)
Mutual labels:  node-js
ChaRo-Server
🚙 서버가 걸어다니면? 서버억,,서버억,,, 🚙
Stars: ✭ 18 (-10%)
Mutual labels:  node-js
jenni
👩‍💻 Jenkins Personal Assistant - CLI to interact with Jenkins server
Stars: ✭ 40 (+100%)
Mutual labels:  node-js
mern-ecommerce
MERN Stack ecommerce site
Stars: ✭ 122 (+510%)
Mutual labels:  node-js
Shock
Shock - 내가 골라 외우는 영단어
Stars: ✭ 20 (+0%)
Mutual labels:  node-js

公主連結聊天機器人

本專案是基於框架bottender進行實作,此框架特色

  • 適用於多種臺灣常用聊天app 雖然我都沒有好友,只好寫機器人陪我聊天
  • 框架已處理好不同平台的規則,無須因應各平台進行適應
  • 開發過程協助分析每一動作的耗時,進行效能優化
  • 因為他真的超好用der

目錄

使用須知

本專案已配置好所有程式所需之環境,只需跟著安裝方式,進行操作即可。

機器配置

此專案結合了 docker-compose 一鍵佈署的特性,以下為使用到的服務

Production

container image expose 說明
nginx nginx 80 webserver
frontend frontend 80 react-frontend
bot app 5000 node.js:12-alpine 包含主程式
mysql mysql 3306 資料庫
redis redis 6379 記憶體快取資料庫
crontab crontab node.js:12-alpine 定時排程執行
phpmyadmin phpmyadmin 80 phpmyadmin 資料庫管理
opencv opencv 3000 opencv 影像處理

可使用docker-compose指令水平擴展主程式,端看於個人硬體強度來做提升。

Developement

開發用,將可編輯的程式掛載至容器,編輯則馬上生效

  • frontend 採用 react-scripts 的 開發環境建置
  • bot 以及 crontab 採用 nodemon
container image expose 說明
nginx nginx 5000 webserver
frontend frontend 3000 react-frontend
bot app 5000 node.js:12-alpine 包含主程式
mysql mysql 3306 資料庫
redis redis 6379 記憶體快取資料庫
crontab crontab node.js:12-alpine 定時排程執行
phpmyadmin phpmyadmin 8080 phpmyadmin 資料庫管理
opencv opencv 3000 opencv 影像處理

目前適用聊天軟體

此專案特色

各大遊戲性功能 - 管理員用

  • 抽卡模擬
  • 資訊查詢(管理員自主設定指令)

群組功能性 - 使用者用

  • 群組排行
  • 群組設定(自定義功能開關)
  • 等級系統

公主連結資訊查詢 - 使用者

  • 角色資訊查詢
  • 戰隊報名管理
  • 官方活動查詢

部分截圖

首頁 全群指令管理 轉蛋卡池

事前準備

安裝方式

前置作業

  1. 打開你的CLI跟著我一起輸入(終端機、命令提示字元、命令介面)
  2. git clone https://github.com/hanshino/redive_linebot.git
  3. cd redive_linebot
  4. cp .env.example .env
  5. 編輯 .env ,請務必填上所有資訊並存檔!
  6. docker network create nginx_network

正式用

  1. docker-compose -f docker-compose-prod.yml up -d
  2. 此時電腦的 80 port 將會開啟服務,如無固定ip可用,可使用ngrok進行服務公開。

開發用

  1. docker-compose -f docker-compose-dev.yml up -d
  2. 此時電腦的 5000 port 將會開啟服務,如無固定ip可用,可使用ngrok進行服務公開。

額外教學 (ngrok)

  1. 下載ngrok
  2. 請在有ngrok的目錄下輸入 ngrok http 80 --region ap or ngrok http 5000 --region ap
  3. 請將網址 ex: https://xxxxxxxxxx.ap.ngrok.io/webhooks/line 複製,繼續後續動作

Line後臺設定

  1. 網址預設為 https://{your_domain}/webhooks/line
  2. 將網址填進 Line Account Manager

注意事項

  • 要使用戰隊功能,需先跟 Ian 戰隊系統作者申請 Accesss Token
  • Windows 作業系統使用 Docker 需注意開啟 hyper-v 是否會影響自己遊玩手機模擬器。
  • 初次啟動時需耗時一段時間進行環境建置,此屬正常情況!
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].