Author Topic: [IRC] LMIB  (Read 5891 times)

0 Members and 1 Guest are viewing this topic.

Offline TsukasaZX

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 415
  • Rating: +46/-3
  • Never Gonna Give You Up!
    • View Profile
[IRC] LMIB
« on: March 18, 2011, 09:39:53 am »
Due to recent situations, I was somewhat inspired to get back into working on IRC robots. Thought I'd post about my little venture for the sake of legitimately boosting my post count :P

LMIB :: the Lovely Maiden IRC (ro)Bot

LMIB is written in procedural PHP4 (will upgrade to php5 some day but I'm lazy) and will serve as my own version of Netbot in my channel(s). Whenever I finish it, the core will be available for download.

LMIB is designed to be a fully modular IRC bot capable of performing various kinds of channel administrative and entertainment-based tasks. Only a minority of its abilities will be hard-coded into its core with the majority being external module files. That way, LMIB can be easily customized for any situation, even on the fly.

Some features I'm working on or planning to work on:
 - Basic administrative functionality (op/deop, voice/mute, ban/unban, channel modes) [obviously :P]

- User registration
          - like with netbot and any other irc bot worth its weight, users can register themselves with the bot for services like auto-op, auto-voice, greets, etc

- Channel rules
          - An interesting concept wherein the bot can routinely enforce a given rule. Do your channel ops tend to all AFK at the same time for large periods of time? Do you still want the channel somewhat managed while you're all gone? LMIB can automatically enforce special rules for given periods of times. What sort of rules? All sorts :P LMIB could +i the channel and auto-invite known users while you're gone, all automatically, and stop upon your return. You wouldn't even have to do anything, just set the "start" and "end" time for the rule and LMIB automatically enforces or relaxes the rules as necessary.

- Responsibility splitting and covering
          - An idea I had for if you use multiple LMIBs. You can split certain management tasks among different bots and if one bot dies or goes unresponsive/AWOL, the other bots can take over that bot's responsibility until it returns.

That's about all I've thought up for now in terms of bot functionality. I also had this idea:

MaidenServ
Essentially, it's an external repository of modules. Whenever an LMIB starts up, it acquires all (specified) modules from the repository and updates its own modules directory with them. If you add a module to the bot manually, the LMIB will copy its module to the repository for others to use.



blargh, it's 7:38 AM, I'm hungry, and I lack sleep so if this is all weird and blughargh, I'll fix it up in a bit. Anywho, thoughts? If you want to see the barebones version in action, I have an instance running in EFNet #unss and #omnimaga under the name "Mizuno".
IRC EFNet | Nick Su-Hime | Chan #omnimaga, #unss, #cemetech
Yumé - 100% Complete!
Yumé 2: Rika's Story - 10%
 - Hiatus until summertime
Yumé: The Eternal Dreams - 50%
 - World and events
TIBiC/GO C Library - N%

"Alenda lux ubi orta libertas" - Let learning be cherished where liberty has arisen.

  ▲
▲ ▲ Triforce!

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [IRC] LMIB
« Reply #1 on: March 18, 2011, 09:41:47 am »
Sounds nice, could maybe function as a 'police bot' or so
I'm not a nerd but I pretend:

SirCmpwn

  • Guest
Re: [IRC] LMIB
« Reply #2 on: March 18, 2011, 09:47:51 am »
She can stay in #omnimaga if she's quiet, but remember, we don't allow talking bots.

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: [IRC] LMIB
« Reply #3 on: March 18, 2011, 09:48:22 am »
This looks nice. I agree with aeTIos this would probably work quite well as a police bot.
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline TsukasaZX

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 415
  • Rating: +46/-3
  • Never Gonna Give You Up!
    • View Profile
Re: [IRC] LMIB
« Reply #4 on: March 18, 2011, 10:01:06 am »
Sounds nice, could maybe function as a 'police bot' or so
Generally the idea. Both Mizuno and the LMIB core are based off the Maidens from Star Driver who essentially were police in spirit and seals to keep cybody robots from operating in real space and accidentally the whole thing :P

She can stay in #omnimaga if she's quiet, but remember, we don't allow talking bots.
I don't think Mizuno in particular will be a problem then, since she has no functionality that causes her to talk in channel (or talk at all, really).
IRC EFNet | Nick Su-Hime | Chan #omnimaga, #unss, #cemetech
Yumé - 100% Complete!
Yumé 2: Rika's Story - 10%
 - Hiatus until summertime
Yumé: The Eternal Dreams - 50%
 - World and events
TIBiC/GO C Library - N%

"Alenda lux ubi orta libertas" - Let learning be cherished where liberty has arisen.

  ▲
▲ ▲ Triforce!

SirCmpwn

  • Guest
Re: [IRC] LMIB
« Reply #5 on: March 18, 2011, 10:09:15 am »
What are her current commands?

Offline TsukasaZX

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 415
  • Rating: +46/-3
  • Never Gonna Give You Up!
    • View Profile
Re: [IRC] LMIB
« Reply #6 on: March 18, 2011, 05:26:28 pm »
At the moment:
  • :nick
  • :join
  • :part
  • :op
  • :deop
  • :voice
  • :mute
  • :quit
  • :ban [nick] [flag (optional)]
  • :unban [nick] [flag (optional)]

The only existing flag for ban and unban is 'h' which specifies hostmask only
e.g. for nick!user@hostmask, doing :ban nick results in mode: +b *!user@hostmask and doing :ban nick h results in mode: +b *!*@hostmask
Same thing for :unban, just mode -b instead of mode +b. Works for any nick, whether they're in the channel or not. Does nothing if the user specified doesn't exist.

Not really sure why I did that. Not really sure what other flags I'll include.
IRC EFNet | Nick Su-Hime | Chan #omnimaga, #unss, #cemetech
Yumé - 100% Complete!
Yumé 2: Rika's Story - 10%
 - Hiatus until summertime
Yumé: The Eternal Dreams - 50%
 - World and events
TIBiC/GO C Library - N%

"Alenda lux ubi orta libertas" - Let learning be cherished where liberty has arisen.

  ▲
▲ ▲ Triforce!

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: [IRC] LMIB
« Reply #7 on: March 18, 2011, 06:09:12 pm »
Maybe a timelimit on bans?
/e

Offline TsukasaZX

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 415
  • Rating: +46/-3
  • Never Gonna Give You Up!
    • View Profile
Re: [IRC] LMIB
« Reply #8 on: March 18, 2011, 06:12:18 pm »
I could do that.

I also need to finish the :votemute commands for the #omnimaga channel. If anybody still wants to use it :P
IRC EFNet | Nick Su-Hime | Chan #omnimaga, #unss, #cemetech
Yumé - 100% Complete!
Yumé 2: Rika's Story - 10%
 - Hiatus until summertime
Yumé: The Eternal Dreams - 50%
 - World and events
TIBiC/GO C Library - N%

"Alenda lux ubi orta libertas" - Let learning be cherished where liberty has arisen.

  ▲
▲ ▲ Triforce!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [IRC] LMIB
« Reply #9 on: March 30, 2011, 02:20:56 am »
Temp bans would be nice. Often I found myself forgetting to remove bans that were meant to be temporary, especially short bans. This is actually the reason why I decided to have short bans expire at 2 AM everytime.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: [IRC] LMIB
« Reply #10 on: March 30, 2011, 01:47:49 pm »
:votemute would be great :)
/e