Skip to content

Latest commit

 

History

History
75 lines (55 loc) · 1.78 KB

README.md

File metadata and controls

75 lines (55 loc) · 1.78 KB

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!