Git Product home page Git Product logo

ditecross's Introduction

DiteCross

Discord-Telegram Cross messaging system

DiteCross Example

A bot that automatically relays Discord and Telegram messages from one group to another.

NOTE: Due to personal matters I can't develop this bot actively. I just made it to give an impulse on the community and look forward to better ideas. I noticed that a new project was recently created and is better than this project, so please take a look at it if you want an up-to-date bot and ready to use. Thank you :)

Installation

DiteCross is based on NodeJS with npm, so make sure to have both of them installed.

To install DiteCross just type npm install

Getting started

Make sure to have both tokens to login to Telegram and Discord.

How to register a Telegram token

You should talk with @BotFather and follow its procedure to make a new bot. @DiteCross_bot is the official one (not 24/7 yet). The token must be placed in a telegram.ini file like below:

[token]
PLACE_TOKEN_HERE

How to register a Discord token

You have to create a new User Bot and place the token in a discord.ini file, like you did for Telegram.

First time run and handshake

To run DiteCross just type node ditecross.js

The handshake process is described below:

  1. Type /handshake on Telegram
  2. DiteCross asks you to insert Discord server and channel names, like this: @ServerName#ChannelName (spaces are supported)
  3. If DiteCross is present on that server and channel, it will ask you to type /handshake there with a password
  4. Enjoy!

NOTE: I hope to have built a robust and simple handshaking system. If you have one better in mind, please let me know!

Be aware that DiteCross is not actively developed.

That's it, enjoy! If you have questions / problems / whatsoever, feel free to open an issue here on GitHub or contact me via email (see my profile).

ditecross's People

Contributors

giovannigrieco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ditecross's Issues

Struggling to setup Ditecross for syncing between a groupchat & Discord.

Hey there,

Seems that Ditecross doesn't particularly like syncing up with group chats. I try to initiate the handshake, however when I do the name of my Discord followed by the channel, it won't give out the next step. I'm using @My_Discord#telegram as a response to the handshake but nothing else happens.

Help would be appreciated.

Sorry, I don't have hands to shake or the password is wrong

I have been trying to set up a bot to relay messages from a telegram channel/group in which I am an admin and so is the telegram bot. Also, I'm the admin of my discord server and the discord bot has all the appropriate permissions.

First of all, I don't get which channel I have to put in here (i.e. the discord channel I want my messages forwarded to or the telegram channel I want to forward from) ;

@ServerName#ChannelName

and second, no matter what I put in as the channel name on discord I get this error only :

Sorry, I don't have hands to shake or the password is wrong

Forgive me for any mistakes,
Any help would be MASSIVELY appreciated. Cheers!

Discord 3x *** markdown format won't be relayed to Telegram

When using the 3x *** markdown in Discord, it won't be send to Telegram. Instead, it pops an error in the console:

    at IncomingMessage.res.on.e (/home/username/DiteCross/node_modules/teleapiwrapper/lib/bot_api.js:716:18)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

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.