# I want to take the names of the users who wrote !text in the chat channel.

**URL:** <https://discuss.dev.twitch.com/t/i-want-to-take-the-names-of-the-users-who-wrote-text-in-the-chat-channel/21807>\
**Category:** Chat and IRC\
**Created:** [July 13, 2019, 10:09am UTC](https://discuss.dev.twitch.com/t/i-want-to-take-the-names-of-the-users-who-wrote-text-in-the-chat-channel/21807 "2019-07-13T10:09:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HaciKandemir](https://avatars.discourse-cdn.com/v4/letter/h/9f8e36/32.png) [@HaciKandemir](https://discuss.dev.twitch.com/u/HaciKandemir)\
**Post date:** [July 13, 2019, 10:09am UTC](https://discuss.dev.twitch.com/t/i-want-to-take-the-names-of-the-users-who-wrote-text-in-the-chat-channel/21807/1 "2019-07-13T10:09:06Z")

</div>

Is there an example for this ? or where should I look in the documentation? I couldn’t find anything. I’d appreciate it if you could guide me.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [July 13, 2019, 10:09am UTC](https://discuss.dev.twitch.com/t/i-want-to-take-the-names-of-the-users-who-wrote-text-in-the-chat-channel/21807/2 "2019-07-13T10:09:49Z")

</div>

Parse in the incoming text as a standard IRC line and read out the user from the host segment of the string.

If you are using a IRC library or Twitch Specific library this will do it for you.

This is an example (where the command and tags capabilities have been enabled)

> @badge-info=subscriber/66;badges=moderator/1,subscriber/60,twitchconNA2019/1;color=#033700;display-name=BarryCarlyon;emotes=163128:0-9;flags=;id=3f41509d-52f9-40be-91b9-0d6885120b2a;mod=1;room-id=26610234;subscriber=1;tmi-sent-ts=1563012700159;turbo=0;user-id=15185913;user-type=mod :barrycarlyon!barrycarlyon@barrycarlyon.tmi.twitch.tv PRIVMSG #cohhcarnage :bikeWepuns test

So you just need to tokenise that and parse the host section of the message.

It’s not specifically covered in the Documentation as it’s basic/standard IRC

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [August 12, 2019, 10:09am UTC](https://discuss.dev.twitch.com/t/i-want-to-take-the-names-of-the-users-who-wrote-text-in-the-chat-channel/21807/3 "2019-08-12T10:09:55Z")

</div>

Closed on August 12, 2019, 10:09am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
