PlayBoy - An open-source IRC API!

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
NightKawata
Party member
Posts: 294
Joined: Tue Jan 01, 2013 9:18 pm
Location: Cyberspace, Room 6502
Contact:

PlayBoy - An open-source IRC API!

Post 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!
"I view Python for game usage about the same as going fishing with a stick of dynamite. It will do the job but it's big, noisy, you'll probably get soaking wet and you've still got to get the damn fish out of the water." -taylor
jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: PlayBoy - An open-source IRC API!

Post by jjmafiae »

Wow, im impressed.
Germanunkol
Party member
Posts: 712
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

Re: PlayBoy - An open-source IRC API!

Post 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...
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
User avatar
NightKawata
Party member
Posts: 294
Joined: Tue Jan 01, 2013 9:18 pm
Location: Cyberspace, Room 6502
Contact:

Re: PlayBoy - An open-source IRC API!

Post 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.
"I view Python for game usage about the same as going fishing with a stick of dynamite. It will do the job but it's big, noisy, you'll probably get soaking wet and you've still got to get the damn fish out of the water." -taylor
User avatar
Wrinkliez
Prole
Posts: 33
Joined: Tue Mar 15, 2011 4:56 am

Re: PlayBoy - An open-source IRC API!

Post by Wrinkliez »

This is great stuff man, thank you!
User avatar
Chroteus
Citizen
Posts: 89
Joined: Wed Mar 20, 2013 7:30 pm

Re: PlayBoy - An open-source IRC API!

Post by Chroteus »

This can easily be used for multiplayer! I will definitely download this library.
User avatar
20047m
Prole
Posts: 13
Joined: Sun Nov 03, 2013 5:44 am

Re: PlayBoy - An open-source IRC API!

Post 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, :)
User avatar
NightKawata
Party member
Posts: 294
Joined: Tue Jan 01, 2013 9:18 pm
Location: Cyberspace, Room 6502
Contact:

Re: PlayBoy - An open-source IRC API!

Post 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.
"I view Python for game usage about the same as going fishing with a stick of dynamite. It will do the job but it's big, noisy, you'll probably get soaking wet and you've still got to get the damn fish out of the water." -taylor
User avatar
ejmr
Party member
Posts: 302
Joined: Fri Jun 01, 2012 7:45 am
Location: South Carolina, U.S.A.
Contact:

Re: PlayBoy - An open-source IRC API!

Post 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.
ejmr :: Programming and Game-Dev Blog, GitHub
南無妙法蓮華經
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests