Use bot username if specified (slack). Closes #273

This commit is contained in:
Wim 2017-10-12 20:33:37 +02:00 committed by GitHub
parent 155ae80d22
commit 4e1dc9f885
1 changed files with 3 additions and 0 deletions

View File

@ -345,6 +345,9 @@ func (b *Bslack) handleSlackClient(mchan chan *MMMessage) {
}
if bot.Name != "" {
m.Username = bot.Name
if ev.Username != "" {
m.Username = ev.Username
}
m.UserID = bot.ID
}
}