Simple Discord Mirror is a tool that can be deployed to mirror a Discord channel's messages to another Discord's channel. This tool can also be deployed to log Discord messages in realtime. It utilizes Discord API, WebSocket, Discord Webhook and Python.
- Mirror normal message(s)
- Log messages in realtime
- Python (3.6 or higher)
- websocket-client
- Clone Simple Discord Mirror:
cd ~
git clone https://github.com/sunnyhaibin/simple-discord-mirror.git
cd simple-discord-mirror
or, simply download ws_wh_call.py
.
$ python ./ws_wh_call.py -h
usage: ws_wh_call.py [-h] --source_server SOURCE_SERVER --source_channel SOURCE_CHANNEL --webhook_url WEBHOOK_URL --webhook_name WEBHOOK_NAME --auth_token AUTH_TOKEN
Mirror and log Discord messages from a defined source channel
optional arguments:
-h, --help show this help message and exit
required arguments:
--source_server SOURCE_SERVER
Source channel's Server ID (required)
--source_channel SOURCE_CHANNEL
Source channel's Channel ID (required)
--webhook_url WEBHOOK_URL
The webhook URL to send mirrored messages to the target channel (required)
--webhook_name WEBHOOK_NAME
The webhook name used for the webhook URL (required)
--auth_token AUTH_TOKEN
Authentication Token (required)
Simple Discord Mirror is released under the MIT license. Some parts of the software are released under other licenses as specified.
Any user of this software shall indemnify and hold harmless sunnyhaibin and its directors, officers, employees, agents, stockholders, affiliates, subcontractors and customers from and against all allegations, claims, actions, suits, demands, damages, liabilities, obligations, losses, settlements, judgments, costs and expenses (including without limitation attorneys’ fees and costs) which arise out of, relate to or result from any use of this software by user.
THIS IS ALPHA QUALITY SOFTWARE FOR RESEARCH PURPOSES ONLY. THIS IS NOT A PRODUCT. YOU ARE RESPONSIBLE FOR COMPLYING WITH LOCAL LAWS AND REGULATIONS. NO WARRANTY EXPRESSED OR IMPLIED.