# The GlobalChatDelegate and GlobalToggleStatusNotification events

in twitch API there are to useful global events

GlobalToggleStatusNotification is an event that passes a bool value. It lets you know whenever tapi has been toggled on and off. It can, therefore be used to toggle twitch functionality on and off within your mod.

GlobalChatDelegate is an event that passes the following `(string user, string message, string channel)`. This strings corrospond to every message sent in chat. With user being the sending user, message being the contents of the message, and channel being the channel.\
can be used for whatever interaction you can think of, really. Make the enemies have the names of viewers of chatted. Make messages from chat appear in silly places. Make fireworks appear whenever someone types "\fireworks", etc.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mtgmodders.gitbook.io/etg-modding-guide/the-globalchatdelegate-and-globaltogglestatusnotification-events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
