Valhalla Legends Forums Archive | Battle.net Bot Development References | Web Channel

AuthorMessageTime
PaiD
How would I make my bot to send the stuff it sees onto the net?
March 12, 2003, 5:25 PM
haZe
Using WebBot. It can be found here. Everything about it, including how to use it, can be found there.
March 12, 2003, 5:37 PM
PaiD
I know about webbot. I want to add a feasure in my bot to do what webbot can do
March 12, 2003, 5:39 PM
Yoni
Use the WebChannel specification which is available somewhere on BotDev. You will need to write a botnet client as well.
March 12, 2003, 5:46 PM
haZe
http://botdev.valhallalegends.com/documents/WebChannelDoc.txt
March 12, 2003, 8:00 PM
Camel@sk00l
[quote]I know about webbot. I want to add a feasure in my bot to do what webbot can do[/quote]
i would start brushing up on PHP and SQL. you can have your bot connect to an sql server, and keep a list of names products pings etc. then write a php script to read the list, and create the html.
March 13, 2003, 10:45 AM
Nova1313
or you can do it the makeshift way..

Create something on your bot that can respond to a simple http request on a port. So then you can just feed the data to a page. So for example for my program you connect to http://yourip:2001


http://www.killerpro.com/
runs my old old plugin that does this. It's a very uneffective way but it works if you have a constant connection to the net. The person that runs theirs does not. So it may or may not be up.

then you can define your own protocol of sorts. Although it may not look as nice it certainly does work.

March 13, 2003, 6:36 PM
Camel
[quote]or you can do it the makeshift way..

Create something on your bot that can respond to a simple http request on a port. So then you can just feed the data to a page. So for example for my program you connect to http://yourip:2001[/quote]
cool, i didn't think of that
i suppose you have a template too?
March 13, 2003, 7:16 PM
warz
You are forgetting the bot id.
March 15, 2003, 10:37 PM
UserLoser
Yes, Spht helped me out with that, thanks anyways
March 15, 2003, 10:42 PM
Assassin~{RC}
Hmm.. me and Zonker programmed a simple one for {RC} as well. But because we didn't want the channel text broadcasted we kept it simple. Upload done by Dark`Bot evey two minutes to http://www.royal-council.com/Channel.txt, then a server side PHP parser outputs it to http://www.royal-council.com/channel.php
March 17, 2003, 6:51 PM
c0ol
its easier just to code your own webserver, or an HTTP overload handler for your current web server.
April 11, 2003, 9:56 PM
Skywing
[quote author=c0ol link=board=17;threadid=519;start=0#msg7597 date=1050098188]
its easier just to code your own webserver, or an HTTP overload handler for your current web server.
[/quote]Easier to code one which works with bloated, nonstandards-tolerant browsers or easier to code a decent, standards-compliant server?
April 11, 2003, 10:50 PM
tA-Kane
[quote author=Skywing link=board=17;threadid=519;start=0#msg7609 date=1050101404]Easier to code one which works with bloated, nonstandards-tolerant browsers or easier to code a decent, standards-compliant server?[/quote]

As long as you have access to the standard(s), and the standards are fairly straightforward (such as the BNLS protocol spec verses the BotNet protocol spec... BNLS protocol spec is nice and clean, whereas the BotNet spec isn't so, as Kp and I have argued about), writing your own standards-compliant code is easy, albeit sometimes time consuming.
April 12, 2003, 7:58 AM
Nova1313
my handler for http...

Private Sub Winsock2_DataArrival(Index As Integer, ByVal bytesTotal As Long)
Dim strData As String
Dim strGet As String
Dim s2 As Long
Dim page As String
Winsock2(Index).GetData strData
If Mid(strData, 1, 3) = "GET" Then
strGet = InStr(strData, "GET ")
s2 = InStr(strGet + 5, strData, " ")
page = Trim(Mid(strData, strGet + 5, s2 - (strGet + 4)))
If Right(page, 1) = "/" Then page = Left(page, Len(page) - 1)
On Error Resume Next
Winsock2(Index).SendData createpage(page)
End If
End Sub

then make a function that creates the page and returns it example:
public sub createpage (page as string) as string


that code was pulled right form my Bg3 WebStream

you can feed anything you want then over the connection.

Hope that helps somewhat.
April 13, 2003, 4:45 PM
c0ol
[quote author=Skywing link=board=17;threadid=519;start=0#msg7609 date=1050101404]
Easier to code one which works with bloated, nonstandards-tolerant browsers or easier to code a decent, standards-compliant server?
[/quote]

i was thinking more of like mod_perl overloaded http requests in apache, i dunno if u can do that kinda stuff in IIS but its cool in apache.
April 14, 2003, 5:24 AM
Skywing
[quote author=c0ol link=board=17;threadid=519;start=15#msg7785 date=1050297841]
[quote author=Skywing link=board=17;threadid=519;start=0#msg7609 date=1050101404]
Easier to code one which works with bloated, nonstandards-tolerant browsers or easier to code a decent, standards-compliant server?
[/quote]

i was thinking more of like mod_perl overloaded http requests in apache, i dunno if u can do that kinda stuff in IIS but its cool in apache.
[/quote]Yes, you can via ISAPI DLLs, which is what I did for BinaryChatISAPI (hence the name). However, this approach requires the end-user to run a full-blown webserver, with all of the potential vulnerabilities and problems this entails. Web servers of just about any sort (including IIS, Apache, and just about anything else you'd care to name) aren't exactly known for bullet-proof security; given this, is it really wise to expect every user to run one, especially given that many people won't be security experts, or even willing/able to keep up to date on patches?
April 14, 2003, 5:03 PM

Search