/teamtalk-to-discord-webhook

Simple Discord webhook to dispatch TeamTalk events to a particular channel.

Primary LanguagePythonMIT LicenseMIT

TeamTalk to Discord Webhook

This is an extremely simple Discord webhook that dispatches TeamTalk events to a particular channel.

Usage.

  1. Create a webhook.
    1. Find the channel you want the events to be sent to.
    2. Right click on it and find "Edit Channel".
    3. Find the "Integrations" tab.
    4. Click on "Webhooks", then "New Webhook".
    5. 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.
    6. Click save.
  2. Edit the config file with all the correct info.
    1. Important: Do not surround these values with quotes!
  3. Create a virtual environment, and activate it.
    1. python -m venv env
    2. env\scripts\activate
  4. Install the requirements.
    1. pip install -r requirements.txt
  5. Run the hook.
    1. python hook.py

Supported events.

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.

Todo.

  • Make supported events customizable.
    • Maybe have a section in the config file, and a boolean for all the event types.
  • Proper error handling.