GithubHelp home page GithubHelp logo

sartelavie / mebot-kakao Goto Github PK

View Code? Open in Web Editor NEW

This project forked from whrod/mebot-kakao

0.0 0.0 0.0 312 KB

MessengerR봇 & remote-kakao 모듈 봇 만들기

JavaScript 91.69% TypeScript 3.76% Dockerfile 4.55%

mebot-kakao's Introduction

메신저R봇 앱 & remote-kakao 카카오톡 봇

Demo Video

KCbot Demo Video

API 활용 기능

1.카톡 메세지 알람 및 2.chatGPT 3.NotionAPI

  1. 09:00 투두리스트 알람, 14:01 벌금리스트 알람
  • 알람 기능
    • 오픈톡방 커맨드 응답 활용 구현
    • Socket(dgram) 활용 구현
  1. chatGPT chatbot 구현
  • chatGPT 챗봇
    command : ^ + command
    ex: '^안녕?', '^TS와 JS의 차이점은?'
  1. 노션 관련 - >설명서, >팀원, >투두리스트, >투두벌금, >면접질문
  • 노션 매뉴얼
    command : >' + 노션', '설명서', '케이씨', 'KC', 'manual', 'ㅁㄴㅇ', 'ㅅㅁㅅ'

  • 스터디 그룹 멤버 확인
    command : > + '팀원', '멤버', '팀멤버', 'ㅌㅇ', 'ㅌㅁㅂ', 'ㅁㅂ'

  • 오늘 스터디 투두 리스트 확인
    command : > + '투두리스트', '오늘투두', '투두', 'ㅌㄷ', 'ㅌㄷㄹㅅㅌ'

  • 오늘 스터디 투두 리스트 미작성자 확인
    command : > + '투두벌금', '투벌', 'ㅌㅂ', 'ㅌㄷㅂㄱ'

  • 면접 질문리스트 url 호출
    command : > + '면접', '면접질문', '면질', 'ㅁㅈ'

  • 블로그 작성 리스트 호출
    command : > + '블로그', '블로그리스트', '블리', 'ㅂㄹㄱㄹㅅㅌ', 'ㅂㄹㄱ'

  • 팀원 개인별 SNS 리스트 호출
    command : > + 팀원이름 (ex: >조경찬)

배포

  • 배포(Github Action, Docker, EC2 CI/CD 구축)
  • Docker Container 로그 관리(logrotate, crontab)

usage

yarn install
yarn pm2 install typescript
yarn start or yarn pm2 start dev.pm2.config.json

로컬에서 PM2 운영시 pm2.env 추가 필요

//ex: dev.pm2.config.json
{
  "apps": [
    {
      "name": "mebot-kakao",
      "cwd": "src",
      "script": "ts-node index.ts",
      "watch": true,
      "autorestart": true,
      "max_memory_restart": "",
      "env": {
        "NOTION_TOKEN": "your api token",
        "NOTION_DATABASE_ID": "your database id",
        "NOTION_PAGE": "notion page"
      }
    }
  ]
}

기타(TODO:)

  • 리팩토링

    • 상수관리
    • 함수mapping, 분리
    • 서비스,컨트롤러 레이어 분리
  • 테스트코드

    • 서비스레이어 유닛테스트
    • 컨트롤러레이어 유닛테스트

추가 기능 구현 목록

  • 블로그 작성 확인 메소드 구성
  • 벌금 DB, 계산, 알람
  • chatGPT API 연동
  • Upbit API 연동 (실시간 현재가)
  • 주말 관련 로직

build test

api key update 2024-01-29

mebot-kakao's People

Contributors

whrod avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.