Automatically open browser tabs when links matching given constraints are sent in discord channels.
Use at own risk!
Automating normal user accounts (generally called "self-bots") is against the Discord Guidelines and may result in an account termination (ban) without prior notice.
- Download Python 3.6.x or 3.7.x or 3.8.x . Before installing, make sure to check “Add Python to PATH”.
- Once installed, open CMD and type:
pip install discord.py[voice]
pip install asyncio
pip install pyyaml
- Download Link Opener: https://github.com/Smidelis/discord-link-opener/
- Extract the contents of the *.zip file to a local folder of your choice (desktop/documents/...)
- Copy config_example.yaml and rename it to config.yml.
- Open the config.yml and replace the placeholders with the values for the token (tutorial on how to find your token: https://www.youtube.com/watch?v=tI1lzqzLQCs), the keywords you're looking for, the blacklisted words and the channels.
- Three browsers have been implemented: chrome, edgechromium and firefox. Change the user_choice to the value of your preferred browser.
- Save the file.
- Open PowerShell/CMD and change directory (cd) to the folder, where you have extracted the *.zip file to.
- Run open.py.
- Wait for the bot to automatically open new browser tabs when links matching given constraints are sent in the specified discord channels.
- Cook.
asyncio, discord.py, pyyaml
This was designed for and only tested on windows.
This script is a combination of the versions by clearyy and Vincentt1705 and some own ideas. Thanks for the inspiration! Config files added by elevul.