Coder Social home page Coder Social logo

studio-addons's Introduction

BotMan Studio Addons

Addons used in combination with BotMan Studio.

Latest Version on Packagist Build Status codecov

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

If you discover a security vulnerability within BotMan, please send an e-mail to Marcel Pociot at [email protected]. All security vulnerabilities will be promptly addressed.

License

BotMan is free software distributed under the terms of the MIT license.

studio-addons's People

Contributors

browner12 avatar crynobone avatar karlisj avatar mpociot avatar nilansanjaya avatar pkboom avatar qwp6t avatar rashidlaasri avatar recca0120 avatar stefro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

studio-addons's Issues

Roadmap to support Latest Laravel 5.8, 6, 7 and 8

  • Add GitHub actions to tests against all currently supported Laravel versions.
  • Add support for Laravel 5.8
  • Add support for Laravel 6
  • Add support for Laravel 7
  • Add support for Laravel 8

Laravel 5.8 breaking changes

Reported at #37, #38

Laravel 5.8 changed the signature of Illuminate\Support\Composer::getProcess(). Attempting to install drives from Botman Studio now throws an error.

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

Fix

Instead of passing the command as a string to setCommandLine(), this PR passes the command as an array to getProcess().

References

Upgrade for Laravel 7

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

Found problems with add botman to existing projects

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.

Laravel 5.5 - BotManCacheClear.php causing issues.

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

BotManInstallDriver.php can't connect to internet.

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.

ask() method with a string argument can't be tested with assertQuestion

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.