protected $description = 'Get all scores with specified high score name';
public function handle($arguments) {
+ if (!$arguments) {
+ $this->replyWithMessage(
+ [
+ 'text' => "Scores command requires a high score name."
+ ]
+ );
+ return;
+ }
+
$diffEmojiMap = [
'Beginner' => '🗑',
'Easy' => '📗',
]);
}
+ if (!$pranks) {
+ $this->replyWithMessage(
+ [
+ 'text' => "$arguments doesn't have any scores."
+ ]
+ );
+ return;
+ }
+
$this->replyWithMessage(
[
'text' => "High scores for $arguments ...\n\n" . unlines($pranks)