Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support icon_url field #49

Open
YoungjaeKim opened this issue Oct 6, 2018 · 9 comments
Open

support icon_url field #49

YoungjaeKim opened this issue Oct 6, 2018 · 9 comments

Comments

@YoungjaeKim
Copy link

First of all, thanks for the great plugin.

#15 reported that icon is displayed in default bot icon, and so do I.
Even though I properly set bot profile image, Teamcity-sent message is shown in default bot icon.

Could you provide icon_url field for the message?

@alexkvak
Copy link
Owner

alexkvak commented Oct 9, 2018

So you would like to specify icon url on global plugin settings page?

@YoungjaeKim
Copy link
Author

@alexkvak thanks for the reply.
Yes, correct.

I've already customized bot profile image at bot settings, but the message from this plugin only shows default bot icon.

The message from this plugin is as below;
image

But when I click the profile, the bot profile image is already defined as below;
image

So, I thought that this issue could be resolved by the plugin global settings page, and the plugin consumes it by using icon_url Slack api field.

@alexkvak
Copy link
Owner

alexkvak commented Oct 9, 2018

Could you try to change Slack TeamCity user's icon?

@YoungjaeKim
Copy link
Author

I'm sorry it's quite confused; what is Slack TeamCity user icon?
There's no TeamCity user account actually, as this account is created by adding bot app.

I've tried two bot apps. both are providing API Token.

  1. Bots; https://clova.slack.com/apps/A0F7YS25R-bots?next_id=0
  2. Hubot; https://clova.slack.com/apps/A0F7XDU93-hubot

Note that my organization restricts bot apps and Hubot is the only one that I can use now.

@alexkvak
Copy link
Owner

alexkvak commented Oct 9, 2018

Note that my organization restricts bot apps and Hubot is the only one that I can use now.
Probably this is the reason you don't have an icon from app?

Please also check whether your app is added to the channel.

@YoungjaeKim
Copy link
Author

YoungjaeKim commented Oct 9, 2018

@alexkvak Yes, the bot is added to channels. That's why the bot can send messages to the channel by your plugin :) The bot configuration page shows its invited channels and I confirmed that it seems OK.

image

@alexkvak
Copy link
Owner

default
this is how the bot is added to my slack. Please compare to your settings

@YoungjaeKim
Copy link
Author

@alexkvak I found that your bot settings page and mine look slightly different. Mine is as below;

image

According to document Authorship section, I think the bot we are saying could be different type; Slack App user token, and Slack App bot user token?
Or, mine is probably a workspace app.

Whatever it is, it seems they could work differently. (I don't believe the document freshness, but we can check that there can be differences between two).

I assume that icon_url on each message could resolve the profile photo issue as this field will guarantee an icon for the one message.

@LazyTarget
Copy link
Contributor

LazyTarget commented Feb 27, 2019

@alexkvak I also am in need for this feature.
My Slack configuration looks like @YoungjaeKim except instead of "Hubot" it simply says "Bots".
With the url: https://{TEAM}.slack.com/apps/A0F7YS25R-bots

I believe, as @YoungjaeKim originally mentioned that the icon_url field needs to be set, using a global configuration for the Slack plugin (as like with the SenderName)

Could you provide icon_url field for the message?

I'd be happy to implement this although.. my knowledge of scala is basically zero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants