twitch Chat,ankhbot and autohotkey

Ask gaming related questions
gamingplusit
Posts: 2
Joined: 15 Nov 2017, 14:41

twitch Chat,ankhbot and autohotkey

15 Nov 2017, 14:58

i would like to do something with ankhbot twitch chat and autohotkey, basically when a spam user links a clip to chat (https: //clips.twitch.tv/ .........,) i would like that The bot saves it and responds to the person thanks for the clips, if I do this directly from the bot with this command $ savetofile ("C: \ Users \ Documents \ Clips \ clip.txt", "$ date - $ time - $ mygame - $ user - $ msg "," / w $ user Thank you for the Clip <3 ") he basically saves the clip responding but saves anything, i just want that type of link and considering that after this piece https: // clips.twitch.tv/ always changes the link, for that I think an asterisk is enough after https://clips.twitch.tv/
User avatar
Exaskryz
Posts: 2690
Joined: 17 Oct 2015, 20:28

Re: twitch Chat,ankhbot and autohotkey

15 Nov 2017, 15:35

Do you have any code going on?

I thought about making a Twitch Bot with AHK. I failed at it; it'd be a messy implementation. But it's fairly easy to write one in python, at least after having watched this video on it: https://www.youtube.com/watch?v=T8DLwACpe3o

However, the one feature you're requesting is the ability to save to a file, which I don't know about and it wasn't covered in the video. I imagine it's manageable in python. But capturing a message, seeing if it fits a pattern you define, and then sending a response to it is totally possible - that is shown in the video. (The video makes it a public response, but I imagine it's possible to make a whisper.)

-----

Of course, if anyone has a good AHK implementation, I'd love to see that as well.
gamingplusit
Posts: 2
Joined: 15 Nov 2017, 14:41

Re: twitch Chat,ankhbot and autohotkey

15 Nov 2017, 15:51

these are all possible commands with ankhbot https://www.ankhbot.com/wp-content/uplo ... tation.pdf
because you already seen it running on a stream you spam the clip link of the chat, the bot responds to you privately and the streamers collect all the clips but i do not know how to do it
User avatar
Exaskryz
Posts: 2690
Joined: 17 Oct 2015, 20:28

Re: twitch Chat,ankhbot and autohotkey

15 Nov 2017, 16:46

If it's a possible command with ankhbot, why not use it's native function? I didn't explore the documentation you linked to.

You can use AHK to pretend to be a human operating ankhbot with commands like Send and Click.

Have you read over the AHK tutorial?

Return to “Gaming”

Who is online

Users browsing this forum: Rohwedder and 9 guests