Author Topic: How to make a IRC bot  (Read 16952 times)

0 Members and 1 Guest are viewing this topic.

Offline Ephraim B

  • LV2 Member (Next: 40)
  • **
  • Posts: 28
  • Rating: +1/-1
    • View Profile
How to make a IRC bot
« on: February 05, 2015, 08:04:31 pm »
I want to make a bot that does everything that worm in #knightos on freenode does plus other cool things like greeting me, Excedra.

Can anyone please help me?





Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: How to make a IRC bot
« Reply #1 on: February 05, 2015, 09:52:33 pm »
I'm not familiar with the functions worm has. However, there are a lot of different ways to write an IRC bot. I recommend you look at a dedicated tutorial in the language of your choice. Here's one in python and another in Haskell.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline bb010g

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 428
  • Rating: +22/-1
  • I do stuff
    • View Profile
    • elsewhere on the net
Re: How to make a IRC bot
« Reply #2 on: February 05, 2015, 11:49:50 pm »
The problem with Roll Your Own IRC Bot on the Haskell wiki is that it hasn't been updated in a while and uses some old libraries (with exceptions mostly) IIRC.
Arch Linux user
Haskell newbie | Warming up to Lua | Being dragged into C++
Calculators: HP 50g, HP 35s, Casio Prizm, TI-Nspire CX CAS, HP 28s, HP Prime, Mathematica 9 (if that counts)
π: 3.14...; l: 108; i: 105; e: 101; l+i+e: 314
THE CAKE IS A LIE IS A PIE

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: How to make a IRC bot
« Reply #3 on: February 06, 2015, 12:48:12 am »
Here's the one I use, with a few scripts I wrote. It's in Javascript (with Node.js), if you read the API it shouldn't be really complicated.

https://github.com/Eeems/EeeZorBot/tree/re-org
https://github.com/juju2143/EeeZorBot-scripts

Otherwise, you can try Eggdrop or this old thing I wrote 5 years ago.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Ivoah

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +3/-0
    • View Profile
    • Codinghobbit
Re: How to make a IRC bot
« Reply #4 on: February 06, 2015, 08:30:49 am »
Here's the source code for worm from #knightos: https://github.com/SirCmpwn/wormy
http://codinghobbit.no-ip.org
My Calcs:
TI-86 (now broken) $2
TI SR-56 - $0
TI-Nspire CX CAS - $152
TI-84+ Silver Edition - $56
TI-84+ Silver Edition - $0
TI-85 - $0
TI-73 Explorer VS - $10
ViewScreen - $3

Offline Ephraim B

  • LV2 Member (Next: 40)
  • **
  • Posts: 28
  • Rating: +1/-1
    • View Profile
Re: How to make a IRC bot
« Reply #5 on: February 06, 2015, 03:58:44 pm »
I want to program my IRC Bot in C





Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: How to make a IRC bot
« Reply #6 on: February 06, 2015, 04:00:20 pm »

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: How to make a IRC bot
« Reply #7 on: February 06, 2015, 09:48:18 pm »
Here's the one I use, with a few scripts I wrote. It's in Javascript (with Node.js), if you read the API it shouldn't be really complicated.

https://github.com/Eeems/EeeZorBot/tree/re-org
https://github.com/juju2143/EeeZorBot-scripts
Not to mention that version isn't fully released yet ;)
I want to program my IRC Bot in C
You might want to lead off with what language you want to work with at the start of the topic next time.
/e

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: How to make a IRC bot
« Reply #8 on: February 07, 2015, 02:47:45 pm »
C is a pretty terrible choice for an IRC bot, because manual string buffering and all that, and it's not a program that's performance-critical. you should really try using something else for this use case

Offline Ephraim B

  • LV2 Member (Next: 40)
  • **
  • Posts: 28
  • Rating: +1/-1
    • View Profile
Re: How to make a IRC bot
« Reply #9 on: February 08, 2015, 03:01:29 pm »
C is a pretty terrible choice for an IRC bot, because manual string buffering and all that, and it's not a program that's performance-critical. you should really try using something else for this use case

What language is the beest language for a IRC bot?





Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: How to make a IRC bot
« Reply #10 on: February 08, 2015, 03:09:58 pm »
Some high level scripting language, like python, for example.

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Ephraim B

  • LV2 Member (Next: 40)
  • **
  • Posts: 28
  • Rating: +1/-1
    • View Profile
Re: How to make a IRC bot
« Reply #11 on: February 08, 2015, 10:10:28 pm »
I think Python costs money. Is Java okay? I'll need to learn Java if I want to learn Web Programming.





Offline Hooloovoo

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 225
  • Rating: +22/-0
    • View Profile
Re: How to make a IRC bot
« Reply #12 on: February 08, 2015, 10:13:52 pm »
Python is free. Did you look it up? According to everywhere on the internet, Python is very free. According to me, Python is easy to use, easy to program, and is the best for projects like IRC bots.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale." -tr1p1ea
Spoiler For some of the calcs I own:



(actually I have quite a few more than this, but I don't feel like making bars for them all.)

Offline Ephraim B

  • LV2 Member (Next: 40)
  • **
  • Posts: 28
  • Rating: +1/-1
    • View Profile
Re: How to make a IRC bot
« Reply #13 on: February 08, 2015, 10:17:21 pm »
I want to do it with Java because I'll need to learn it eventually for Web Programming. How do I program a IRC Bot in Java?





Offline Hooloovoo

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 225
  • Rating: +22/-0
    • View Profile
Re: How to make a IRC bot
« Reply #14 on: February 08, 2015, 10:21:53 pm »
Java is not used on the web anymore. Maybe you're thinking of Javascript, which is commonly used on webpages. Javascript is not very well suited to programming bots in, though.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale." -tr1p1ea
Spoiler For some of the calcs I own:



(actually I have quite a few more than this, but I don't feel like making bars for them all.)