Closed A-Lawrence closed 7 years ago
Which messaging driver(s) are you using? And which bot details do you mean?
Hi Marcel! We're using the Slack driver.
I should've been clearer about the details - You'll notice in the first image has 4 users. The first icon is the bot account (setup in slack with a name and profile picture). The last icon is the result of using ->say()
.
Conversation can be found here: https://github.com/VATSIM-UK/core/blob/feature/botman/app/Conversations/ExampleConversation.php
Okay - but the first icon is the bot using the ask
method?
If you're using the RTM API, inside conversations it get's swapped to the regular Slack
driver which is related to the way the drivers get serialized.
Could you try and pass the additional parameters to the say
method?
Like this:
$parameters = [
'username' => 'Bot User',
'icon_url' => 'http://you-bot-icon.png',
];
$this->say('Starting training towards one of the many Pilot Ratings we offer in the UK is easy.', $parameters);
Seems like it's an issue when switching from SlackRTMDriver
to SlackDriver
.
Fixed in dev-master
When sending a message using
$this->say
in conversations, or$botman-say
in other contexts, it appears that the bot details aren't used.The code for this is:
Not able to diagnose if this is a bug, or if it's down to my incompetence. Any ideas gratefully received!