Skip to content

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

Notifications You must be signed in to change notification settings

hurek/relay-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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=Discord 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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages