ABitOfSquad / squadbot

The simple chat bot for the 21st Century
MIT License
4 stars 1 forks source link

Squadbot responds to messages in different groups/convos #1

Closed Nickforall closed 9 years ago

Nickforall commented 9 years ago

This would require some changes in the API to fix.

We shoukd talk about this with the team.

boltgolt commented 9 years ago

That will make the api a lot more complicated though

Nickforall commented 9 years ago

message -> if raw.groupid == settings.group_id privateMessage if raw.groupid != undefined

I was thinking about doing it like this. and maybe add the posibility to do bot.send(string, phone)

boltgolt commented 9 years ago

sounds good to me

boltgolt commented 9 years ago

Implementing as bot.private, so everything in the API is the same. The only difference to the groupchat api is that you call bot.private.something() in stead of bot.something().

boltgolt commented 9 years ago

Fully implemented in 0561d267c1d24d9b0bda698c25ceecfd08a64d30