Author Topic: [Haskell] Wormbot - a minimalistic, yet complete IRC Bot  (Read 1449 times)

0 Members and 7 Guests are viewing this topic.

Offline TheWormKill

  • EZ's Scripting Whore
  • Global Moderator
  • Knight
  • *
  • Posts: 257
  • Cookies: 66
  • The Grim Reaper of Worms
    • View Profile
[Haskell] Wormbot - a minimalistic, yet complete IRC Bot
« on: September 26, 2015, 05:23:41 pm »
Well, I wrote it, it's as simple as it gets, but nonetheless complete. It simply runs scripts in a specific directory when a command is issued and returns their output. This has the benefit that we get module (un)loading, an interface and other nifty features essentially for free, keeping the core small (~180 SLOC), clean and fast (this is Haskell after all).

Apart from that, it interacts with IRC as a bot should; answers in PM's as well as channels, joins multiple channels, rejoins on kick, lists available scripts, and runs overall stable.

The project can be found over at github, where development takes place. Feel free to issue comments, suggestions, bugreports etc. there or in this thread.

Furthermore, if people like it and we gather some scripts for it, which should be very easy considering the no-API approach, and the developers of Techbot and BeastBot don't oppose this decision, we might use it as the "official" bot on IRC.
« Last Edit: September 27, 2015, 03:37:33 pm by TheWormKill »
Stuff I did: How to think like a superuser, Iridium

He should make that "Haskell"
Quote
<m0rph-is-gay> fuck you thewormkill you python coding mother fucker

Offline kenjoe41

  • Symphorophiliac Programmer
  • Administrator
  • Baron
  • *
  • Posts: 990
  • Cookies: 224
    • View Profile
Re: [Haskell] Wormbot - a minimalistic, yet complete IRC
« Reply #1 on: September 27, 2015, 01:17:24 am »
The core is in haskell, the scripts/modules are in bash, mmmh.

Did you ever get to know why techbot has never replaced Beastbot for EZBot irrespective of its complexity? I am going to direct Chris1 to give you the answer and if you have hopes of bringing wormbot to the big leagues then you will have your least requirements noted when still in initial development.

Otherwise, no problem with another choice to bring to the table. I better bounce my idea of refactoring Beastbot on chris1 to get the market shares back.
If you can't explain it to a 6 year old, you don't understand it yourself.
http://upload.alpha.evilzone.org/index.php?page=img&img=GwkGGneGR7Pl222zVGmNTjerkhkYNGtBuiYXkpyNv4ScOAWQu0-Y8[<NgGw/hsq]>EvbQrOrousk[/img]

Offline chris

  • EZ's GOD
  • VIP
  • Knight
  • *
  • Posts: 197
  • Cookies: 37
  • What should I put here :(
    • View Profile
Re: [Haskell] Wormbot - a minimalistic, yet complete IRC
« Reply #2 on: September 27, 2015, 01:28:28 am »
I am going to direct Chris1 to give you the answer

ITS CAUSE I'M AWESOME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

meh........ im tired af right now and gotta headache..... ill do it later....
<chris1> give me a idea of a img to use for a avatar
<HTH> A cock

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: [Haskell] Wormbot - a minimalistic, yet complete IRC
« Reply #3 on: September 27, 2015, 08:53:02 am »
The core is in haskell, the scripts/modules are in bash, mmmh.

Did you ever get to know why techbot has never replaced Beastbot for EZBot irrespective of its complexity? I am going to direct Chris1 to give you the answer and if you have hopes of bringing wormbot to the big leagues then you will have your least requirements noted when still in initial development.

Otherwise, no problem with another choice to bring to the table. I better bounce my idea of refactoring Beastbot on chris1 to get the market shares back.

Techbot isn't in place because I never put it online,  it us 200 times simpler than beastbot, and ezbot is closed source.
>>>import this
-----------------------------

Offline TheWormKill

  • EZ's Scripting Whore
  • Global Moderator
  • Knight
  • *
  • Posts: 257
  • Cookies: 66
  • The Grim Reaper of Worms
    • View Profile
Re: [Haskell] Wormbot - a minimalistic, yet complete IRC
« Reply #4 on: September 27, 2015, 02:17:08 pm »
The core is in haskell, the scripts/modules are in bash, mmmh.
Correction: the modules are written in whatever you want as long as they are directly executable.
So you can put scripts with a shebang there or even an executable.
Stuff I did: How to think like a superuser, Iridium

He should make that "Haskell"
Quote
<m0rph-is-gay> fuck you thewormkill you python coding mother fucker

Offline Lenoch

  • EZ's Menstruator
  • VIP
  • Serf
  • *
  • Posts: 49
  • Cookies: 37
    • View Profile
Re: [Haskell] Wormbot - a minimalistic, yet complete IRC Bot
« Reply #5 on: September 27, 2015, 10:30:31 pm »
I have a first working version of the urban dictionary module here: https://github.com/Lenoch420/ud
The code needs cleanup work and depending on what people want some added functionality, for now it just works

I also just had the idea in mind for a minimum install script in bash which just pulls modules from git, compiles them and moves them to the scripts/ directory.
« Last Edit: September 27, 2015, 10:31:12 pm by Lenoch »


Quote
<m0dem> I find evilzone is a really HQ community

Offline chris

  • EZ's GOD
  • VIP
  • Knight
  • *
  • Posts: 197
  • Cookies: 37
  • What should I put here :(
    • View Profile
Re: [Haskell] Wormbot - a minimalistic, yet complete IRC Bot
« Reply #6 on: September 28, 2015, 07:29:23 am »
Techbot isn't in place because I never put it online,  it us 200 times simpler than beastbot, and ezbot is closed source.

TechB, i believe you are mistaken.... BeastBot/EZBot IS OPEN SOURCE!! You should know since you have submitted code for it.
Also, it appears that TechBot is soo much simpler.... Although, this could be because it doesn't do anything......
« Last Edit: September 28, 2015, 07:33:45 am by chris1 »
<chris1> give me a idea of a img to use for a avatar
<HTH> A cock

Offline khofo

  • EZ's Swashbuckler
  • Knight
  • **
  • Posts: 350
  • Cookies: 25
  • My humor is so black, it could go cotton picking.
    • View Profile
Re: [Haskell] Wormbot - a minimalistic, yet complete IRC Bot
« Reply #7 on: September 28, 2015, 10:14:07 pm »
Side Note: We should create a BotWar to determine the best bot, instead of everyone claiming their bot is the best.

@TheWormkill,

Your bot is super clean and the fact that it can run any module is a great added value compared to other bots that only run modules written in the same language
Quote from: #Evilzone
<Spacecow18> priests are bad ppl
<Insanity> Holy crap
Of course God isnt dead. He's out there partying with the Easter Bunny, Santa Clause, Tooth Fairy, and the Man on the moon...
Some of my work: Introduction to Physical Security

Offline blindfuzzy

  • VIP
  • Peasant
  • *
  • Posts: 86
  • Cookies: 34
    • View Profile
Re: [Haskell] Wormbot - a minimalistic, yet complete IRC Bot
« Reply #8 on: September 28, 2015, 10:49:13 pm »
Your bot is super clean and the fact that it can run any module is a great added value compared to other bots that only run modules written in the same language

I completely agree. Versatility with modules is a great idea. I'll be working my way into that down the road. Occupying a lot my time learning Haskell right now.

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: [Haskell] Wormbot - a minimalistic, yet complete IRC Bot
« Reply #9 on: September 28, 2015, 10:58:14 pm »
TechB, i believe you are mistaken.... BeastBot/EZBot IS OPEN SOURCE!! You should know since you have submitted code for it.
Also, it appears that TechBot is soo much simpler.... Although, this could be because it doesn't do anything......

I was mistaken,  EvilBot doesn't have the code available.

Lol, there is no need to get butthurt.
« Last Edit: September 28, 2015, 10:58:43 pm by techb »
>>>import this
-----------------------------

Offline chris

  • EZ's GOD
  • VIP
  • Knight
  • *
  • Posts: 197
  • Cookies: 37
  • What should I put here :(
    • View Profile
Re: [Haskell] Wormbot - a minimalistic, yet complete IRC Bot
« Reply #10 on: September 29, 2015, 02:48:24 am »
I was mistaken,  EvilBot doesn't have the code available.

Lol, there is no need to get butthurt.

My mistake..... I thought for sure you where talking about EZBot sense Evilbot is services.....  :-\
Regardless.... EvilBot is open source as well... EvilBot = Anope.. Anope = Open Source....

Regardless.... I apologize for the rudeness i suppose....  :-\
« Last Edit: September 29, 2015, 02:53:16 am by chris1 »
<chris1> give me a idea of a img to use for a avatar
<HTH> A cock