WildPHP / irc-bot

A simple and modular PHP IRC bot
MIT License
84 stars 24 forks source link

Objects for outgoing data #42

Closed NanoSector closed 9 years ago

NanoSector commented 9 years ago

Don't rely on strings. Use objects.

[02:03] <NanoSector> also, what do you think of passing objects as outgoing data instead of just strings
[02:03] <NanoSector> like
[02:03] <amunak> I mean we can just use its server for now, perhaps the application loop and stuff, and we can rewrite whatever else is left later
[02:03] <NanoSector> $this->bot->out(new IRCCommands::notify($user, $message));
NanoSector commented 9 years ago

We're using the Phergie Generator for this now. Closing as such.