Making a bot.

Any other programming language that is not covered in the Web Scripting category.

Making a bot.

Postby oscuro on Thu May 18, 2006 1:07 am

Hi I was just reading around, and I found that bots are written in, C, Perl, and now tcl.

I would like to know, which of this languages is the best for writing a bot and why =( Also if you know where I could learn to write a very basic bot with C, which is the language I'm learning. I've seen those eggdrops source code but geez! they're so long and confusing.

Anyways thanks for any help =)
oscuro
Regular
Regular
 
Posts: 88
Joined: Thu Apr 27, 2006 4:59 pm

Re: Making a bot.

Postby bluebell on Thu May 18, 2006 7:50 am

oscuro wrote:Hi I was just reading around, and I found that bots are written in, C, Perl, and now tcl.

I would like to know, which of this languages is the best for writing a bot and why =( Also if you know where I could learn to write a very basic bot with C, which is the language I'm learning. I've seen those eggdrops source code but geez! they're so long and confusing.

Anyways thanks for any help =)


frankly it depends on what you want your bot to do...bots like eggdrops didnt happen in one day and wasnt just made by one guy, well not to the point where it is now. People have been working on eggdrops b4 even most of the people on this forum knew how to use a computer Razz ....eggdrops are very open minded bots...by that I mean very configurable using bot scripts or addons....and that means it carries its own add-on adding compatibility feature and sometimes its own parsers, which are pretty complicated coding.

If you want to just write a small bot that would connect to an irc server and do little work like display channel user nicks and stuff, you can probably do with few socket connections using irc RFCs and less than 100 lines of codes.
And i would suggest that you start something small first and then build on top of it and not think of making something like an eggdrop rightaway.

And try to code first in your favorite language or the language which you are very comfortable with. Implementing the RFCs can be a bit-- at times with C. which platform you want to run it on is also needs to be determined. In windows u could use java or C# very easily and not worrry about lowlevel protocol programming since those languages have free irc implementation packages or namespaces available freely over the web.

i hope this information helped.

happy coding.
bluebell
Contributer
Contributer
 
Posts: 31
Joined: Wed Mar 29, 2006 2:38 am

Postby zenobia on Tue May 23, 2006 5:05 pm

irssi uses perl for its scripts, so if you are using irssi perl would be a good choice.

there are also tones of modules at cpan.org for perl which would help you... http://search.cpan.org/search?query=irc ... t&mode=all

good luck =)
zenobia
Newbie
Newbie
 
Posts: 17
Joined: Tue May 23, 2006 4:57 pm

Re: Making a bot.

Postby Pinkbyte on Wed May 24, 2006 2:24 pm

oscuro wrote:Hi I was just reading around, and I found that bots are written in, C, Perl, and now tcl.

I would like to know, which of this languages is the best for writing a bot and why =( Also if you know where I could learn to write a very basic bot with C, which is the language I'm learning. I've seen those eggdrops source code but geez! they're so long and confusing.

Anyways thanks for any help =)


oscuro, try to use eggdrop. If you know tcl you can write such scripts for it, which cover your needs. And if you know C - you can write fast modules for eggdrop - it is easy than write completely NEW bot and it is much more faster
Pinkbyte
Contributer
Contributer
 
Posts: 49
Joined: Sun Mar 19, 2006 7:44 am
Location: Russian

Re: Making a bot.

Postby oscuro on Tue May 30, 2006 1:40 am

yay =) Thank you guys.
oscuro
Regular
Regular
 
Posts: 88
Joined: Thu Apr 27, 2006 4:59 pm

Postby arn0ld on Tue May 30, 2006 11:05 pm

ei! loved your posts. anyway, is it possible to write in c++ rather than c or c#? which is easier? Wink
...in a sea of strangers where everybody is just a face, a person can stand out with a smile
May gina-admire ako galing nahuya ko magstorya sa iya nga face-to-face!!
arn0ld
Regular
Regular
 
Posts: 110
Joined: Fri Mar 31, 2006 7:09 pm
Location: Las Phelippinas

Postby slabby on Fri Jun 02, 2006 10:22 am

well ive been making my own irc bot in the last 2 weeks. all done in php and it is working quite nice now Very Happy I started using this guide
http://www.codedemons.net/tutorials/PHP ... wn-IRC-Bot
and when I started I had never used php before so with also refering to this site:
http://www.w3schools.com/php/default.asp
I have made my own php bot just using a little of the code given in the guide given above.

It recognises 'botops' by hostname and username and allows them to use commands such as !ban, !op, !hop, !mode. It also has user commands such as !time, '!tell me about ...' or '!tell tim about ...'. I am currently working on a !joke function.

If someone is interested in looking at the source code or seeing the bot in use just message me. I have stripped down versions of the bot and upto the latest which im working on.
Click the adverts! Visit the IRC!
slabby
Contributer
Contributer
 
Posts: 42
Joined: Sun May 21, 2006 4:14 pm
Location: UK

Postby hellboy on Fri Jun 02, 2006 9:34 pm

TCL is very easy to learn and understand.It work`s very well on irc with eggdrop bot. You can join Undernet networks and look for me on #Removals channel if you need anye help.
Image

Looking for a HellGirl...
hellboy
Contributer
Contributer
 
Posts: 71
Joined: Sun Apr 09, 2006 9:00 pm
Location: Miami

Postby daddy2k on Mon Jul 10, 2006 3:34 pm

well, you can use nearly every language to develop a bot.
I've done one in python for quiet a long time.
It was done by simple using sockets, but now it appears to be a really nice library to do stuff like that:
http://python-irclib.sourceforge.net/

you could look at that...
Python is the language i prefer Wink
daddy2k
Contributer
Contributer
 
Posts: 32
Joined: Mon Jul 10, 2006 3:14 pm
Location: Germany

Re: Making a bot.

Postby callihn on Thu Jul 27, 2006 3:09 pm

oscuro wrote:Hi I was just reading around, and I found that bots are written in, C, Perl, and now tcl.

I would like to know, which of this languages is the best for writing a bot and why =( Also if you know where I could learn to write a very basic bot with C, which is the language I'm learning. I've seen those eggdrops source code but geez! they're so long and confusing.

Anyways thanks for any help =)


Well C++ would be the most efficient on resouces and thus quickest to respond, you could do more with it and get better performance while doing so, perl and tcl are not very efficient on resouces and are better suited to ceratin tasks and small projects.

That being said why code your own when there are so many fine bots out there to use already, depending on your needs of course, there eggbot and darkbot to name a few, look around, maybe you'll find what you need, no sense n reinventing the wheel if you don't have to.
callihn
Regular
Regular
 
Posts: 77
Joined: Thu Jul 27, 2006 2:35 pm
Location: Cyberspace

Postby d0ppel-D on Fri Jul 28, 2006 11:32 am

maybe a tip for real programming beginners:

i dont have many experience with programming at all, so i just took eggdrop/windrop and now i use it to see how it works ... its the other way round: because i didnt learn any programming language, i take the "finished product" and look at the code etc to see how it works ... of course i use the web to learn more about programming at the same time, but it works fine the way i do it Very Happy

i think i really get better and also could help some people already ...

maybe you would like to have a look at my programming thread? couldn't find an answer yet ...


greetings

d0ppel-D
YOU ARE THE SHOGUN CUT THEM INTO PIECES
d0ppel-D
Contributer
Contributer
 
Posts: 31
Joined: Sat Jul 15, 2006 1:51 pm
Location: Germany

Postby pugrit on Wed Aug 02, 2006 10:35 am

probably the most easiest way to make a bot is mIRC's scripting capabilities.
Laughing

and it has some pretty much lots of variations of bots depending on use. the most common are for spamming and ddos.


Smile
pugrit
Phoenix Veteran
Phoenix Veteran
 
Posts: 293
Joined: Thu Mar 10, 2005 1:06 pm
Location: /home/pugrit

Postby wegstar on Mon Aug 07, 2006 8:24 pm

slabby wrote:well ive been making my own irc bot in the last 2 weeks. all done in php and it is working quite nice now Very Happy I started using this guide
http://www.codedemons.net/tutorials/PHP ... wn-IRC-Bot


Slabby, I learned how to make my own IRC bot from that site too Wink. You could probably find my old posts there... I got the bot to do many, many things, such as a running a MUD-type game played in IRC, to testing mysql servers for the root login vulnerability.

oscuro wrote:Hi I was just reading around, and I found that bots are written in, C, Perl, and now tcl.

I would like to know, which of this languages is the best for writing a bot and why =( Also if you know where I could learn to write a very basic bot with C, which is the language I'm learning. I've seen those eggdrops source code but geez! they're so long and confusing.

Anyways thanks for any help =)

I would suggest using php or python first, as the languages have great string manipulation capabilities, and is not complicated, when it comes to sockets.
After you nail down sockets and the general IRC protocol,
http://www.irchelp.org/irchelp/rfc/rfc.html
RFC 1459 and your imagination would be your only guides in improving your bot Wink
wegstar
Contributer
Contributer
 
Posts: 29
Joined: Mon Aug 07, 2006 8:05 pm
Location: Around the San Francisco Bay Area


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron