Plugin Directory

Changeset 2718550


Ignore:
Timestamp:
05/05/2022 10:40:18 AM (4 years ago)
Author:
webxid
Message:

fix readme file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bots-master/tags/1.0.0/README.txt

    r2718549 r2718550  
    8282$bot_user = BotUser::findOne(['type_id' => ChatBot\BotUser::TYPE_USER]);
    8383
    84 $bot_user
    85     && ChatBot::factory($user)
     84if ($bot_user) {
     85    ChatBot::factory($user)
    8686        ->sendMessage('<b>Hello</b> world!'); // will send the message, if the plugin installed correctly
     87}
    8788`
    8889
Note: See TracChangeset for help on using the changeset viewer.