Giter Club home page Giter Club logo

kakao-discord-bridge-2's Introduction

kakao-discord-bridge-2

카카오톡 메시지를 디스코드에서 주고받게 해주는 프로그램. 게시판도 볼 수 있다.

본계정 말고 부계정 사용을 권장한다.

쓰는 방법

  • 도스창을 켜고 npm i node-kakao, npm i [email protected]을 차례로 친다.
  • 이 모듈을 내려받아 node_modules에 djs11 디렉토리를 만들어서 거기에 저장한다.
  • 디스코드 봇을 하나 만든다.
  • kakao.json을 만든다.
{
	"email": " ",
	"password": " ",
	"uuid": " ",
	"force_show_deleted_message": false,
	"no_system_message": false,
	"wh": [
		{
			"id": " ",
			"data": [" ", " "]
		}
	],
	"token": " ",
	"salt": ["deververer", "rtgtrrtgergergre"],
	"allowed_senders": {
		" ": [" "],
	}
}
  • -> email: 카카오계정 전자우편 주소
  • -> password: 카카오계정 비밀번호를 base64로 바꾼 거
  • -> uuid: 약 80자리의 무작위 base64 문자열
  • -> force_show_deleted_message: 삭제된 메시지 표시
  • -> no_system_message: 시스템 메시지 보내지 않기
  • -> wh: { id: 카톡 채팅방 ID(getid.js 실행으로 확인 가능), data: [ 디스코드 웹후크 ID, 디스코드 웹후크 토큰 ] }
  • -> token: 디스코드 봇 토큰
  • -> salt: 충분히 긴 무작위 문자열 2개
  • -> allowed_senders: { (디스코드 채널 ID): [메시지를 보낼 수 있는 디스코드 유저 ID 1, ...]
  • kakao_register.js를 실행한다.
  • kakao.js를 실행한다.

참고

  • 8MB 이하의 사진, 비디오 등은 디스코드 CDN에 재업로드된다. (즉, 디스코드로 보는 경우에는 기간 만료가 없게 된다. 8MB보다 큰 화일은 링크 형태로 디스코드에 올라오며 카카오톡에서 화일이 만료되면 더 이상 내려받을 수 없다.)
  • 정적 이모티콘은 디스코드 방식 이모지로 바뀌어 올라온다.
  • 첨부파일은 사진, 동영상, 음성메시지(*.m4a)만 정상적으로 내려받을 수 있다.
  • 묶음사진과 답장은 정상적으로 표시된다.
  • 이 프로그램은 node-kakao v3 기반 버전과 v4 기반 버전이 따로 있지만, v3 버전에서는 사용한 지 두 달만에 영구정지가 실제로 일어난 적이 있다. v4는 1년 넘게 가동 중이지만 아직 별 문제 없다.
  • 게시판을 보려면 !board를 친다.
    • 게시글 보기: !viewpost 글번호
    • 게시글 댓글 달기: !comment 글번호 댓글내용
    • 게시글 좋아요: !like 글번호
    • 게시글 좋아요 취소: !unlike 글번호
    • 공지 등록하기: !setnotice 글번호
    • 공지 내리기: !denotice 글번호
    • 게시글을 현재 채팅방에 공유: !share 글번호

라이선스

  • 다른 곳에서 베낀 코드는 코드 내에 주석으로 따로 명시했고, 본인이 직접 쓴 코드는 저작권 없음(포크해서 특허만 안 내면 됨).

kakao-discord-bridge-2's People

Contributors

gdl-blue avatar nawega avatar

Stargazers

 avatar

Watchers

 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.