Git Product home page Git Product logo

transferbot's Introduction

Transferbot

This bot that can send Messages from Telegram to Discord (and back)

Documentation

Install / Self Hosting

First install the nodejs and npm packages

sudo apt-get install nodejs && sudo apt-get install npm

then clone the git repos to your Server

git clone https://github.com/corusm/Transferbot.git

Install dependencies

npm install

Create Bot

Here there are two urls of incstructions for creating a Discord and a Telegram Bot

  1. Create Discord Bot
  2. Create Telegram Bot

Add Tokens

Add your discord and telegram bot token to the tokens.json file

{
  "discord": "placeYourToken",
  "telegram": "placeYourToken"
}

Run the bot

Navigate to the directory where you have installed the bot (where the bot.js file is located) and run these commands:

  1. Start Bot: npm start
  2. Stop Bot: npm stop
  3. Test Bot: npm test

Log

All the logs that you see in the shell also get logged in the info.log file.

Commands

Telegram Commands:

Add your username to the System (so it gets your ID):

  • /auth

Add your group to the System:

  • /authgroup "nickname"

List Telegram users connected to the System:

  • /listusers

Send Message from Telegram to Discord:

  • /send "channelName or username" - "message"

Discord Commands:

Add your username to the System (so it gets your ID):

  • !auth

Send Messages from Discord to Telegram: with the nickname you just chose

  • !send "nickname or username" - "message"

List Telegram users connected to the System:

  • !listusers

Help me improving this bot!

If there is any bug to fix or you have a feature request do not hesitate to conctact me!

transferbot's People

Contributors

corusm 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.