A small python program to relay discord image URLs to a webhook using a user listener account. This was intended to be used with relaying images from fanart reposting channels, but can also be used as a HTTP link and file upload relayer.
The info it includes is the server the relayed file is from and the username of the image sender. It supports sending to multiple webhooks, and listening to multiple servers and channels.
It will relay any links, as well as any uploaded files to the webhook(s) of your choice.
- Put your user token in the variable named "DISCORD_USER_TOKEN".
- Get the ID of the server you want to listen to, and put it in the "listenserverids.txt" file.
- Get the channel ID of the channel you want to listen to, and put it in the "listenchannelids.txt" file.
- Get the webhook you want the channel to relay to and put it in "relaywebhooks.txt". Put it on the SAME LINE NUMBER as the corresponding channel ID in "listenchannelids.txt"
Example: If the channel ID for #cats-and-tortises is on line 4, the corresponding webhook needs to be on line 4.
If you want to relay one channel to multiple webhooks, separate the webhooks with a comma and a space -> ,
and put it on the same line.
Example: https://discordapp.com/3817418, https://discordapp.com/329471, https://discordapp.com/01298541
The bot to relay ALL messages sent in a channel is here.
Discord is killing access to information that should be public.