Skip to content

Commit

Permalink
Update message error emoticon
Browse files Browse the repository at this point in the history
  • Loading branch information
kholilrnm committed Oct 13, 2020
1 parent 70e2d96 commit 960a610
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,26 @@

});

$botman->hears("/cari_catatan@Aisyah_Bukan_Bot {kode_mk}", function (Botman $bot, $kode_mk) {
$user = $bot->getUser();
$firstname = $user->getFirstName();
$id_user = $user->getId();

include "command/requestChat.php";

$kode_mk = $kode_mk;

include "command/cariDataCatatan.php";

$message = cariDataCatatan($id_user, $kode_mk);
$bot->reply($message);

});

// command not found
$botman->fallback(function (BotMan $bot) {
$message = $bot->getMessage()->getText();
$bot->reply("Maaf, Perintah Ini '$message' Tidak Ada 😥");
$bot->reply("Maaf, Perintah Ini '$message' Tidak Ada 😐");
});


Expand Down

0 comments on commit 960a610

Please sign in to comment.