Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
zapakitul
18
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 23rd Jul 2008 14:31 Edited at: 23rd Jul 2008 14:32
Hey guys, i just got challenged to prove that one can make an Irc Bot Using Dark Basic Pro! Im not that good at networking but i know you can build an IRC client in DBPRO using Winsock... This is the code i am using right now:

i tired to connect to the server and send the messages for Nick, User and the channel i want to join.. But it doesn't join the channel... Any Idea why?
RanQor
17
Years of Service
User Offline
Joined: 8th Jun 2007
Location:
Posted: 23rd Jul 2008 16:53 Edited at: 23rd Jul 2008 16:54
Append "\n\r" (without quotes) to the end of your commands.

Let me know if that works for you.
zapakitul
18
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 23rd Jul 2008 17:11
Nop! Doesn't enter the channel!
RanQor
17
Years of Service
User Offline
Joined: 8th Jun 2007
Location:
Posted: 23rd Jul 2008 18:11
I ran the code, and it doesnt ever appear to truly connect to the server. After running the above source code, I then ran a netstat test to see if the connection was alive. No connection from/to port 6667 was established at all.

I also couldnt get WPE to recognize the application at all.
zapakitul
18
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 23rd Jul 2008 20:50
Pff.... dam i don't wanna lose the challenge.. Any tips on what to do?
Master Xilo
18
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 1st Aug 2008 03:20 Edited at: 1st Aug 2008 03:22
add:

+chr$(13)

To everything you send, "n" doesn't work with dbp. (the cpp 's work )

EDIT: Perhaps, you also have to add +chr$(10) befor or after 13...

Ian G
16
Years of Service
User Offline
Joined: 3rd Jun 2008
Location: SSM, Canada
Posted: 1st Aug 2008 07:01
I think it's +chr$(13)+chr$(10)

Login to post a reply

Server time is: 2025-05-15 22:42:53
Your offset time is: 2025-05-15 22:42:53