Page 1 of 1

PlayBoy - An open-source IRC API!

Posted: Sat Feb 01, 2014 4:06 am
by NightKawata
Now I know someone'll kill me for the name. But I had to do it.
Anyways, it's pretty bare bones right now, but it does connect to an IRC server and such.
Maybe I'll add GUI stuff. Maybe I'll add other stuff. Maybe you'll add other stuff. Maybe that table will add other stuff.
It's open source, anyone can add other stuff!

Do what you want with it, and I'll do what I want with it.
Have it your way, but it's not Burger King.

Get some PlayBoy action!

Re: PlayBoy - An open-source IRC API!

Posted: Sat Feb 01, 2014 8:50 am
by jjmafiae
Wow, im impressed.

Re: PlayBoy - An open-source IRC API!

Posted: Sat Feb 01, 2014 10:49 am
by Germanunkol
This is great. I don't have much time to look through it right now - but this means I could use IRC from within my game?! Awesome.

I'll look into it some more, but I think I might just use it in my next game...

Re: PlayBoy - An open-source IRC API!

Posted: Sat Feb 01, 2014 6:31 pm
by NightKawata
Germanunkol wrote:This is great. I don't have much time to look through it right now - but this means I could use IRC from within my game?! Awesome.

I'll look into it some more, but I think I might just use it in my next game...
That it does. It should be pretty simple to plug into most projects as well.

Re: PlayBoy - An open-source IRC API!

Posted: Wed Feb 05, 2014 3:52 am
by Wrinkliez
This is great stuff man, thank you!

Re: PlayBoy - An open-source IRC API!

Posted: Mon Feb 10, 2014 2:37 pm
by Chroteus
This can easily be used for multiplayer! I will definitely download this library.

Re: PlayBoy - An open-source IRC API!

Posted: Tue Feb 11, 2014 2:30 am
by 20047m
NightKawata wrote: Do what you want with it, and I'll do what I want with it.
Have it your way, but it's not Burger King.
Okay, so how do we send stuff on it? Or can't you? I'm (kind of) new to LuaSocket and you didn't provide much of an example in your repo :P

Also, I am making a terminal style game. Considering your API right now rests in a terminal, I could probably somehow mash up this API and my terminal, and make it look pretty. I think it would be cool, :)

Re: PlayBoy - An open-source IRC API!

Posted: Tue Feb 11, 2014 10:11 pm
by NightKawata
I'll probably get to examples soon, and thanks for the feedback, everyone!
20047m wrote:
NightKawata wrote: Do what you want with it, and I'll do what I want with it.
Have it your way, but it's not Burger King.
Okay, so how do we send stuff on it? Or can't you? I'm (kind of) new to LuaSocket and you didn't provide much of an example in your repo :P

Also, I am making a terminal style game. Considering your API right now rests in a terminal, I could probably somehow mash up this API and my terminal, and make it look pretty. I think it would be cool, :)
A recent commit adds the ability to do this! (How'd I forget?)
It also adds a license, because I'm a genius and forgot to include one of those. (It's MIT!)

Code: Select all

playBoy:sendMessage(message)
This'll tell PlayBoy's chat object to send a chat message to whatever channel PlayBoy has defined. PlayBoy of course has a default channel in case that's unspecified, and if called with an invalid message, it'll just send a blank one.

Re: PlayBoy - An open-source IRC API!

Posted: Tue Feb 11, 2014 11:08 pm
by ejmr
Nice-looking library. Thanks NightKawata for creating and sharing this.

Does it have any provisions for attempting to reconnect automatically if it loses it’s connection with an IRC server? If not I may implement that sometime, because I might use this library for another project.