This is an extremely simple Discord webhook that dispatches TeamTalk events to a particular channel.
- Create a webhook.
- Find the channel you want the events to be sent to.
- Right click on it and find "Edit Channel".
- Find the "Integrations" tab.
- Click on "Webhooks", then "New Webhook".
- Give it a name (this is what will display in the channel whenever it sends a message), and make sure you have the URL coppied.
- Click save.
- Edit the config file with all the correct info.
- Important: Do not surround these values with quotes!
- Create a virtual environment, and activate it.
python -m venv env- env\scripts\activate
- Install the requirements.
pip install -r requirements.txt
- Run the hook.
python hook.py
The following events are currently supported. Many more can be added upon request, but these are the most common ones that I think basically everyone wants.
- User logged in.
- User joined channel
- Channel message sent.
- User left channel.
- User logged out.
- Make supported events customizable.
- Maybe have a section in the config file, and a boolean for all the event types.
- Proper error handling.