Manishearth / ChatExchange

A Python API for talking to Stack Exchange chat
Apache License 2.0
65 stars 36 forks source link

Event using #175

Closed Peter-developer01 closed 1 year ago

Peter-developer01 commented 1 year ago

How to use the events data? For example:

  1. The user entered a room;
  2. Client generated a chatexchange.events.UserEntered object;
  3. And how to use it? I tried it using as a class instance, as a dict, but this doesn't work.

How to properly use the data from events? Maybe I should try something different?

Manishearth commented 1 year ago

It has a .user field

Peter-developer01 commented 1 year ago

But... If this is other events? e.g. MessageStarred?

Manishearth commented 1 year ago

Check the code for the fields in use. We should probably document this better.