Prepare sirbot for the 7k members
Closed this issue ยท 12 comments
@SirBotALot should trigger for the 7k member and start the party
Maybe this should be every round 1,000 members - instead of being specific to 7k?
blackjack and hookers !
A message that notify #general of the new milestone would be a good start.
If you want to try it I can give some pointers if needed :)
That would be great, I'll have a go. I'll need to test the blackjack and hookers - so I'll just send you the bill @ovv?
So, having a quick look, I guess gathering user count will be done from the sirbot-slack repo and then sending the message from sirbot-pythondev/sirbot/pythondev/slack.py?
I don't think you'll need to modify anything in sirbot-slack.
I would do it like this:
- register an event listener for member_joined_channel
- When receiving an event like it check if it's for #general (nobody can leave general so we have the full members count here)
message.to.id == await slack.channels.get(name='general').id - Update the general channel to retrieve the full member count
await slack.channels.get('general', update=True) - do nothing / post a message if members are a multiple of 1000
Don't hesitate if you want me to test things as I have everything setup and documentation is still non-existent ๐ญ
@ovv, I think - I may have something that may do it. Whats the easiest way to test it? I've pushed it to my fork, branch is feature/1000_users_event. Is it easier if you test it before I make a PR?
You can try to set everything up by creating a slack team and everything (the ansible playbook might give you some tips how to do that) or open a PR and I'll test it :)
there isn't any doc on how to easily set everything up yet.
Ok, I'll give it a go, i'd rather test it first than just create a PR if i can. thanks! ๐