botman / studio-addons Goto Github PK
View Code? Open in Web Editor NEWBotMan Studio addons
BotMan Studio addons
Seems like Packagist has still the old version even though github is on 1.5.0.
I used Laravel 5.7 and when I run composer require botman/stodio-addons it appear this error
`Symfony\Component\Debug\Exception\FatalErrorException : Class BotMan\Studio\Console\Commands\BotManCacheClear contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Illuminate\Console\GeneratorCommand::getStub)
at C:\mychatbot\vendor\botman\studio-addons\src\Console\Commands\BotManCacheClear.php:50
46| }
47|
48| $this->info('BotMan cache cleared!');
49| }
50| }
51|
Whoops\Exception\ErrorException : Class BotMan\Studio\Console\Commands\BotManCacheClear contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Illuminate\Console\GeneratorCommand::getStub)
at C:\mychatbot\vendor\botman\studio-addons\src\Console\Commands\BotManCacheClear.php:50
46| }
47|
48| $this->info('BotMan cache cleared!');
49| }
50| }
51|
PHP Warning: Uncaught ErrorException: Declaration of BotMan\Studio\Console\Commands\BotManCacheClear::handle(Illuminate\Filesystem\Filesystem $files) should be compatible with Illuminate\Console\GeneratorCommand::handle() in C:\mychatbot\vendor\botman\studio-addons\src\Console\Commands\BotManCacheClear.php:50
Stack trace:
#0 C:\mychatbot\vendor\composer\ClassLoader.php(444): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Declaration of ...', 'C:\mycha...', 50, Array)
#1 C:\mychatbot\vendor\composer\ClassLoader.php(444): include()
#2 C:\mychatbot\vendor\composer\ClassLoader.php(322): Composer\Autoload\includeFile('C:\Work\Git\cha...')
#3 [internal function]: Composer\Autoload\ClassLoader->loadClass('BotMan\Studio\C...')
#4 [internal function]: spl_autoload_call('BotMan\Studio\C...')
#5 C:\mychatbot\vendor\laravel\framework\src\Illuminate\Container\Container.php(767): ReflectionClass->__construct('BotMan\Studio\C in C:\mychatbot\vendor\botman\studio-addons\src\Console\Commands\BotManCacheClear.php on line 50
PHP Fatal error: Class BotMan\Studio\Console\Commands\BotManCacheClear contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Illuminate\Console\GeneratorCommand::getStub) in C:\mychatbot\vendor\botman\studio-addons\src\Console\Commands\BotManCacheClear.php on line 50
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255`
But if I running this command, composer require botman/stodio-addons "~1.2.1" no errors found (specific version 1.2.1). may be this version (1.4.0) has some bugs. could you please help to fix.
When using composer install
or composer update
, I'm getting the issue below:
Class BotMan\Studio\Console\Commands\BotManCacheClear contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Illuminate\Console\GeneratorCommand::getStub)
I've had a look at the BotManCacheClear.php class and found that if you change the class extension from Illuminate\Console\GeneratorCommand to Illuminate\Console\Command it works fine:
class BotManCacheClear extends GeneratorCommand
to:
class BotManCacheClear extends Command
If you ask a question by providing a simple string as a question the assertQuestion
fails, but assertReply
passes. So it looks like the ask()
method produces replies (BotMan\BotMan\Messages\Outgoing\OutgoingMessage
) instead of questions (BotMan\BotMan\Messages\Outgoing\Question
) if you pass strings to it.
// Conversation 1
$this->ask('How are you?', function (Answer $answer) {
// ...
});
// Test
$this->bot->assertQuestion('How are you?'); // fails
$this->bot->assertReply('How are you?'); // passes
// Conversation 2
$this->ask(Question::create('How are you?'), function (Answer $answer) {
// ...
});
// Test
$this->bot->assertQuestion('How are you?'); // passes
$this->bot->assertReply('How are you?'); // fails
It should be 'BotMan'.
It creates a new directory(Botman), instead of using the existing directory(BotMan).
When installing a BotMan driver using the artisan command, we need to check if an error occurs and tell the user.
Right now we're always showing a success message.
https://github.com/botman/studio-addons/blob/master/src/Console/Commands/BotManInstallDriver.php#L78
Laravel 5.8 changed the signature of Illuminate\Support\Composer::getProcess()
. Attempting to install drives from Botman Studio now throws an error.
Too few arguments to function Illuminate\Support\Composer::getProcess()
0
passed in vendor/botman/studio-addons/src/Composer.php:17
1
expected at vendor/laravel/framework/src/Illuminate/Support/Composer.php:93
Instead of passing the command as a string to setCommandLine()
, this PR passes the command as an array to getProcess()
.
this command after installation of botman studio
php artisan botman:list-drivers
always gives this error:
Unable to fetch BotMan driver repository.
Please check your internet connection ang try again.
and i dont know why.
Hello,
I'm unable to use this package on a Laravel 7 project.
The commit #43 added support for it but there has been no release since that commit.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.