01-24-2014, 12:51 AM
(This post was last modified: 01-24-2014, 01:54 AM by qwerasd205.)
Okay so to make chat less spammy they added a feature in IRC where you can specify an in game player to send something to, In your bot please implement this. if you cant manage to grab names from your code here's and example:
channel="channelname"
text = irc.recv(2040)
step1 = text.split(channel)
step2 = step1[1]
step3 = step2.split(":")
player = step3[0]
EDIT:
then you would do something like irc.send("PRIVMSG "+channel+" :@"+player+" "+msg+"\r\n")
channel="channelname"
text = irc.recv(2040)
step1 = text.split(channel)
step2 = step1[1]
step3 = step2.split(":")
player = step3[0]
EDIT:
then you would do something like irc.send("PRIVMSG "+channel+" :@"+player+" "+msg+"\r\n")
This is my signature.