phpoxford / spires

Spires IRC bot
MIT License
1 stars 4 forks source link

BangMessage learnt "bangCommand()" and new TestCase class added #23

Closed ascii-soup closed 8 years ago

ascii-soup commented 8 years ago

I've added BangMessage::bangCommand() - which simply returns the 'command' after the ! e.g. !foo = 'foo' command

I have also added a base test case (SpiresTestCase) which allows you to create a new RawMessage easily with text of your choice. Simple for now, but I had no need of anything more complex.