How do I get a specific string from a larger string

Get help using Construct 2

Post » Sun Apr 17, 2016 9:41 am

Hey, I've recently got Twitch IRC chat integration working.

Now the problem is: I can receive messages but theire long for example when someone says !join in the Twitch chat:
Code: Select all
@color=#FF8400;display-name=Goodfeet;emotes=;mod=0;room-id=36869929;subscriber=0;turbo=0;user-id=36869929;user-type= :[email protected] PRIVMSG #goodfeet :!join


Now, I got it working by checking if the message contains !join, but this doesn't give me the username it's coming from and it also works when someone type for example: '!joinsfhsdfhsfhd' so this is not a good solution either. I also need to get the user's Twitch username (in this case Goodfeet).
How would I get his Twitch username from this string? Is there a way to get it from this string?:
Code: Select all
display-name=Goodfeet


If this isn't possible, how would I go about making a plugin to solve this?
Image
B
13
S
2
G
1
Posts: 60
Reputation: 1,554

Post » Sun Apr 17, 2016 11:06 am

if I understood correctly...GoodfeetName.capx
Image
B
64
S
23
G
7
Posts: 1,481
Reputation: 10,823

Post » Sun Apr 17, 2016 11:11 am

korbaach wrote:if I understood correctly...GoodfeetName.capx

Thanks alot! This should work perfectly, didn't know it was so easy.
Image
B
13
S
2
G
1
Posts: 60
Reputation: 1,554

Post » Sun Apr 17, 2016 2:05 pm

Hi. Can you tell how you could connect to twitch chat?
B
53
S
16
G
6
Posts: 718
Reputation: 9,150

Post » Tue Apr 19, 2016 7:35 pm

Bl4ckSh33p wrote:Hi. Can you tell how you could connect to twitch chat?

Here is an example
B
19
S
7
G
3
Posts: 28
Reputation: 2,438

Post » Sun Apr 24, 2016 8:22 am

Thank you very much.
B
53
S
16
G
6
Posts: 718
Reputation: 9,150


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests