Skip to content

Commit

Permalink
Fixing staircase arg.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrevalentin committed May 29, 2018
1 parent fcd75fa commit dd74527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/LiarsDiceBotController.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function host(BotMan $bot)
// Take bot message and get rid of the "host liar" part, only keeping any arguments it might contain.
$message = substr($bot->getMessage()->getText(), 9);
// Check if there could even possibly be any arguments after the "host liar" message.
preg_match_all("/--\w+?\w*/", $message, $matches);
preg_match_all("/--\w+=?\w*/", $message, $matches);
if(count($matches)) {
// Here we want to look for any arguments in the following format "--key=value"
foreach($matches[0] as $arg){
Expand Down

0 comments on commit dd74527

Please sign in to comment.