etcinit / phabulous

A Phabricator bot for Slack
MIT License
218 stars 47 forks source link

Keep slack bot and auto messages consistent #25

Open dvcrn opened 8 years ago

dvcrn commented 8 years ago

I just found this bot and gave it a spin though I'm a little bit confused about the way it handles:

screen shot 2016-02-26 at 8 50 39 am

In particular:

azenla commented 8 years ago

@etcinit This is probably an accident due to usage of 'username' in https://api.slack.com/methods/chat.postMessage - If you don't specify it, it will use the bot user, which will make things consistent.

dvcrn commented 8 years ago

oh I didn't know that. Let me give that a try

etcinit commented 8 years ago

Hm. Sounds like an easy fix. Will try to work on it during the weekend,

azenla commented 8 years ago

@etcinit if I get a chance I will PR it. I set this bot up at my company, lots of people <3 it times 5000. Thanks for the awesome work.

etcinit commented 8 years ago

:+1:

etcinit commented 8 years ago

On origin/develop, I've added the option to tell the bot to only post messages through the RTM user. This should resolve the inconsistency problem.

However, there are two limitations from the Slack API:

Relevant setting: https://github.com/etcinit/phabulous/blob/eae12b5c4edbe94bbbaadfce5007e5cd9cb22cd1/config/main.yml#L20

You should be able to pull that branch and try out building it. I'll include this changes on the next release.

azenla commented 8 years ago

@etcinit :D Awesome, thanks.

sinantaifour commented 8 years ago

I have build the code on origin/develop, kept the flag as true in the YAML file, but the bot is still not posting as itself.

azenla commented 8 years ago

@staii Noticed this too. @etcinit, it seems to not be working.

etcinit commented 8 years ago

I noticed the as-user flag wasn't being passed around everywhere it needed to be. ad0d74a should patch the bot to follow the as-user setting for most messages.

azenla commented 8 years ago

@etcinit Thanks

sinantaifour commented 8 years ago

I built after your latest commit, and it still doesn't work.

Let me know if I need to provide anything for debugging.

I've so far seen two messages, both weren't sent as the user. The user is definitely in the channel. One message was "Hi! Phabulous v2 reporting for duty!", and the other was an updated on a differential entry.

etcinit commented 8 years ago

@staii: Thanks for the examples! I'll take a look soon.

schemar commented 6 years ago

@staii can you confirm that this issue still exists?