Code Monkey home page Code Monkey logo

relay-bot's Introduction

Relay-Bot

A bot that can relay messages between channels on different Discord servers

Installation

  1. git clone https://github.com/hurek/relay-bot.git
  2. cd relay-bot
  3. Install requirements from requirements.txt for Python 3.8+ with pip3 install -r requirements.txt
  4. Go to Discord Developers portal and create new Application. Official instructions here.
  5. Go to Bot -> Privileged Gateway Intents section and enable members intents.
  6. mv configEXAMPLE.py config.py and copy your bot token from the dashboard here.
  7. cd /etc/systemd/system
  8. sudo nano relay-bot.service
  9. Copy and paste following settings:
[Unit]
Description=Telegram bot 'Relay Bot'
After=syslog.target
After=network.target

[Service]
Type=simple
User=root
WorkingDirectory=/PATH_TO_BOT_DIRECTORY/relay-bot
ExecStart=/usr/bin/python3 /PATH_TO_BOT_DIRECTORY/relay-bot/bot.py
Restart=always

[Install]
WantedBy=multi-user.target
  1. Save file and run following commands to enable bot service:
sudo systemctl daemon-reload
sudo systemctl start relay-bot.service
sudo systemctl status relay-bot.service
  1. Go to Application dashboard -> OAuth2 and check the box for Bot.
  2. Set following permissions for Bot:
  • Manage Webhooks
  • View Channels
  • Send Messages
  • Embed Links
  • Attach Files
  • Read Message History
  • Mention Everyone
  • Use External Emojis
  1. Copy the bot invitation link to your browser, add bot to your server.
  2. Send !relay.help to see list of Bot commands.

relay-bot's People

Contributors

hurek avatar kprasch 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.