How to use send_message method in wpt

Best JavaScript code snippet using wpt

pushNotification.js

Source:pushNotification.js Github

copy

Full Screen

1module.exports = function (io) {2 var path = require('path');3 var db = require('../model/mongodb.js');4 var apn = require('apn');5 var gcm = require('node-gcm');6 return {7 sendPushnotification: function (regIds, message, action, type, urlval, app, callback) {8 var send_message = {};9 var data = {};10 send_message['message'] = message || '';11 send_message['action'] = action;12 if (urlval instanceof Array) {13 for (var i = 0; i < urlval.length; i++) {14 send_message['key' + i] = urlval[i];15 data['key' + i] = urlval[i];16 }17 } else {18 Object.keys(urlval).forEach(function (key, i) {19 send_message['key' + i] = urlval[key];20 data['key' + i] = urlval[key];21 });22 }23 var collection = '';24 if (app == 'PROVIDER') {25 collection = 'tasker';26 type = 'tasker';27 } else if (app == 'USER') {28 collection = 'users';29 type = 'user';30 }31 db.GetDocument('settings', { alias: 'mobile' }, {}, {}, function (err, docdata) {32 if (docdata) {33 if (docdata[0].settings.apns.mode == 1) {34 docdata[0].settings.apns.mode = true;35 } else {36 docdata[0].settings.apns.mode = false;37 }38 db.GetDocument(collection, { '_id': regIds }, {}, {}, function (pushErr, pushRespo) {39 if (!pushErr && pushRespo[0]) {40 var notification = {};41 if (type == 'user') {42 notification.user = regIds;43 } else if (type == 'tasker') {44 notification.tasker = regIds;45 }46 notification.type = type;47 notification.message = send_message.message;48 notification.raw_data = send_message;49 db.InsertDocument('notifications', notification, function (err, upNotify) {50 if (!err) {51 var username = pushRespo[0]._id;52 if (pushRespo[0].device_info) {53 if (pushRespo[0].device_info.device_token) {54 if (pushRespo[0].device_info.ios_notification_mode == 'apns') {55 var options = {};56 var topic = '';57 if (collection == 'users') {58 options = { cert: docdata[0].settings.apns.user_pem, key: docdata[0].settings.apns.user_pem, production: docdata[0].settings.apns.mode };59 topic = docdata[0].settings.apns.user_bundle_id;60 } else if (collection == 'tasker') {61 options = { cert: docdata[0].settings.apns.tasker_pem, key: docdata[0].settings.apns.tasker_pem, production: docdata[0].settings.apns.mode };62 topic = docdata[0].settings.apns.tasker_bundle_id;63 }64 var apnProvider = new apn.Provider(options);65 var deviceToken = pushRespo[0].device_info.device_token;66 var note = new apn.Notification();67 note.expiry = Math.floor(Date.now() / 1000) + 3600;68 note.sound = 'ping.aiff';69 note.alert = send_message.message;70 note.payload = send_message;71 note.topic = topic;72 note.threadId = docdata._id;73 apnProvider.send(note, deviceToken).then((result) => { });74 } else {75 io.of('/notify').in(regIds).emit('notification', { username: username, message: send_message });76 }77 }78 if (pushRespo[0].device_info.gcm) {79 // if (pushRespo[0].device_info.android_notification_mode == 'gcm') {80 var gcmid = {};81 if (collection == 'users') {82 gcmid = docdata[0].settings.gcm.user;83 } else if (collection == 'tasker') {84 gcmid = docdata[0].settings.gcm.tasker;85 }86 data.title = send_message.message;87 data.action = send_message.action;88 data.unique_id = upNotify._id;89 var message = new gcm.Message({ priority: 'high', data: { data: data } });90 var sender = new gcm.Sender(gcmid);91 var regTokens = [pushRespo[0].device_info.gcm];92 93 sender.send(message, { registrationTokens: regTokens }, function (err, response) {94 });95 // } 96 // else {97 send_message.unique_id = upNotify._id;98 io.of('/notify').in(regIds).emit('notification', { username: username, message: send_message });99 // }100 }101 // send_message.unique_id = upNotify._id;102 io.of('/notify').in(regIds).emit('web notification', { username: username, message: send_message });103 }104 callback("err", "httpResponse", send_message);105 }106 });107 }108 });109 }110 });111 } ,112 sendUniquenotification: function (regIds, message, action, type, urlval, app, callback) {113 var send_message = {};114 var data = {};115 var uniqueid = Math.floor(100000 + Math.random() * 900000);116 send_message['message'] = message || '';117 send_message['action'] = action;118 send_message['unique_id'] = uniqueid;119 if (urlval instanceof Array) {120 for (var i = 0; i < urlval.length; i++) {121 send_message['key' + i] = urlval[i];122 data['key' + i] = urlval[i];123 }124 } else {125 Object.keys(urlval).forEach(function (key, i) {126 send_message['key' + i] = urlval[key];127 data['key' + i] = urlval[key];128 });129 }130 var collection = '';131 if (app == 'PROVIDER') {132 collection = 'tasker';133 type = 'tasker';134 } else if (app == 'USER') {135 collection = 'users';136 type = 'user';137 }138 db.GetDocument('settings', { alias: 'mobile' }, {}, {}, function (err, docdata) {139 if (docdata) {140 if (docdata[0].settings.apns.mode == 1) {141 docdata[0].settings.apns.mode = true;142 } else {143 docdata[0].settings.apns.mode = false;144 }145 db.GetDocument(collection, { '_id': regIds }, {}, {}, function (pushErr, pushRespo) {146 if (!pushErr && pushRespo[0]) {147 var notification = {};148 if (type == 'user') {149 notification.user = regIds;150 } else if (type == 'tasker') {151 notification.tasker = regIds;152 }153 notification.type = type;154 notification.message = send_message.message;155 notification.raw_data = send_message;156 var username = pushRespo[0]._id;157 if (pushRespo[0].device_info) {158 if (pushRespo[0].device_info.device_token) {159 if (pushRespo[0].device_info.ios_notification_mode == 'apns') {160 var options = {};161 var topic = '';162 if (collection == 'users') {163 options = { cert: docdata[0].settings.apns.user_pem, key: docdata[0].settings.apns.user_pem, production: docdata[0].settings.apns.mode };164 topic = docdata[0].settings.apns.user_bundle_id;165 } else if (collection == 'tasker') {166 options = { cert: docdata[0].settings.apns.tasker_pem, key: docdata[0].settings.apns.tasker_pem, production: docdata[0].settings.apns.mode };167 topic = docdata[0].settings.apns.tasker_bundle_id;168 }169 var apnProvider = new apn.Provider(options);170 var deviceToken = pushRespo[0].device_info.device_token;171 var note = new apn.Notification();172 note.expiry = Math.floor(Date.now() / 1000) + 3600;173 note.sound = 'ping.aiff';174 note.alert = send_message.message;175 note.payload = send_message;176 note.topic = topic;177 note.threadId = docdata._id;178 apnProvider.send(note, deviceToken).then((result) => { });179 } else {180 io.of('/notify').in(regIds).emit('notification', { username: username, message: send_message });181 }182 }183 if (pushRespo[0].device_info.gcm) {184 // if (pushRespo[0].device_info.android_notification_mode == 'gcm') {185 var gcmid = {};186 if (collection == 'users') {187 gcmid = docdata[0].settings.gcm.user;188 } else if (collection == 'tasker') {189 gcmid = docdata[0].settings.gcm.tasker;190 }191 data.title = send_message.message;192 data.action = send_message.action;193 data.unique_id = uniqueid;194 var message = new gcm.Message({ priority: 'high', data: { data: data } });195 var sender = new gcm.Sender(gcmid);196 var regTokens = [pushRespo[0].device_info.gcm];197 198 sender.send(message, { registrationTokens: regTokens }, function (err, response) {199 });200 // } 201 // else {202 io.of('/notify').in(regIds).emit('notification', { username: username, message: send_message });203 // }204 }205 send_message.unique_id = uniqueid;206 io.of('/notify').in(regIds).emit('web notification', { username: username, message: send_message });207 }208 callback("err", "httpResponse", send_message);209 }210 });211 }212 });213 }214 };...

Full Screen

Full Screen

biggalispam.py

Source:biggalispam.py Github

copy

Full Screen

...5async def _(event):6 while x != False:7 await event.delete()8 kek = event.chat_id9 await mewbot.send_message(kek, "SHURU")10 await mewbot.send_message(kek, "KARU")11 await mewbot.send_message(kek, "TERI XHUDAI")12 await mewbot.send_message(kek, "TERIII")13 await mewbot.send_message(kek, "MA")14 await mewbot.send_message(kek, "KI")15 await mewbot.send_message(kek, "XHUT")16 await mewbot.send_message(kek, "XHODD")17 await mewbot.send_message(kek, "TERII MAA")18 await mewbot.send_message(kek, "KA LUND")19 await mewbot.send_message(kek, "XHAKKE")20 await mewbot.send_message(kek, "TERIIIIII")21 await mewbot.send_message(kek, "MAA ")22 await mewbot.send_message(kek, "KA")23 await mewbot.send_message(kek, "BHOSDA")24 await mewbot.send_message(kek, "KI")25 await mewbot.send_message(kek, "MA")26 await mewbot.send_message(kek, "XHOD")27 await mewbot.send_message(kek, "DIYA")28 await mewbot.send_message(kek, "KI")29 await mewbot.send_message(kek, "MA")30 await mewbot.send_message(kek, "RANDI")31 await mewbot.send_message(kek, "HIJDE")32 await mewbot.send_message(kek, "KA")33 await mewbot.send_message(kek, "BACCHA")34 await mewbot.send_message(kek, "TERI")35 await mewbot.send_message(kek, "MA")36 await mewbot.send_message(kek, "KI")37 await mewbot.send_message(kek, "CHUDAI")38 await mewbot.send_message(kek, "KI")39 await mewbot.send_message(kek, "STORY")40 await mewbot.send_message(kek, "PADEGA")41 await mewbot.send_message(kek, "BOL")42 await mewbot.send_message(kek, "RAMDI KE BACCHE")43 await mewbot.send_message(kek, "TRRI")44 await mewbot.send_message(kek, "MA")45 await mewbot.send_message(kek, "KA")46 await mewbot.send_message(kek, "AASIQ")47 await mewbot.send_message(kek, "HOON")48 await mewbot.send_message(kek, "ME")49 await mewbot.send_message(kek, "TERI")50 await mewbot.send_message(kek, "MA")51 await mewbot.send_message(kek, "KA")52 await mewbot.send_message(kek, "GANG")53 await mewbot.send_message(kek, "BANG")54 await mewbot.send_message(kek, "KARDU")55 await mewbot.send_message(kek, "TERI")56 await mewbot.send_message(kek, "MA")57 await mewbot.send_message(kek, "KO")58 await mewbot.send_message(kek, "PREGNANT")59 await mewbot.send_message(kek, "KARDU")60 await mewbot.send_message(kek, "TERI")61 await mewbot.send_message(kek, "BEHAN")62 await mewbot.send_message(kek, "KA")63 await mewbot.send_message(kek, "AASIQ")64 await mewbot.send_message(kek, "HOON")65 await mewbot.send_message(kek, "ME")66 await mewbot.send_message(kek, "TERI")67 await mewbot.send_message(kek, "MA")68 await mewbot.send_message(kek, "KI")69 await mewbot.send_message(kek, "PRICE")70 await mewbot.send_message(kek, "BOL")71 await mewbot.send_message(kek, "69$")72 await mewbot.send_message(kek, "DUNGA")73 await mewbot.send_message(kek, "ME")74 await mewbot.send_message(kek, "TU")75 await mewbot.send_message(kek, "BATA")76 await mewbot.send_message(kek, "KITNE")77 await mewbot.send_message(kek, "ME")78 await mewbot.send_message(kek, "DEGA")79 await mewbot.send_message(kek, "TERI")80 await mewbot.send_message(kek, " BEHAN KI")81 await mewbot.send_message(kek, "XHUT")82 await mewbot.send_message(kek, "TERI")83 await mewbot.send_message(kek, "MA")84 await mewbot.send_message(kek, "KA")85 await mewbot.send_message(kek, "BHOSDA")86 await mewbot.send_message(kek, "FAT")87 await mewbot.send_message(kek, "GYA")88 await mewbot.send_message(kek, "JAAKE DEKH")89 await mewbot.send_message(kek, "TERI")90 await mewbot.send_message(kek, "CHACHI")91 await mewbot.send_message(kek, "KO")92 await mewbot.send_message(kek, "BAGHA")93 await mewbot.send_message(kek, "LE")94 await mewbot.send_message(kek, "JAAU")95 await mewbot.send_message(kek, "BATA")96 await mewbot.send_message(kek, "LAWDE ")97 await mewbot.send_message(kek, "TERI")98 await mewbot.send_message(kek, "BEHAN")99 await mewbot.send_message(kek, "KO")100 await mewbot.send_message(kek, "OYO")101 await mewbot.send_message(kek, "ME")102 await mewbot.send_message(kek, "CHODU")103 await mewbot.send_message(kek, "RANDI")104 await mewbot.send_message(kek, "KE")105 await mewbot.send_message(kek, "BACCHE")106 await mewbot.send_message(kek, "DEMON")107 await mewbot.send_message(kek, "OR")108 await mewbot.send_message(kek, "TERI")109 await mewbot.send_message(kek, "MA")110 await mewbot.send_message(kek, "KA")111 await mewbot.send_message(kek, "BHOSDA")112 await mewbot.send_message(kek, "CHODU")113 await mewbot.send_message(kek, "GAY")114 await mewbot.send_message(kek, "KA")115 await mewbot.send_message(kek, "BACCHA")116 await mewbot.send_message(kek, "TERI")117 await mewbot.send_message(kek, "maa")118 await mewbot.send_message(kek, "KI")119 await mewbot.send_message(kek, "XHUT")120 await mewbot.send_message(kek, "me")121 await mewbot.send_message(kek, "SAANP")122 await mewbot.send_message(kek, "GUSED")123 await mewbot.send_message(kek, "DU")124 await mewbot.send_message(kek, "TERI")125 await mewbot.send_message(kek, "MA")126 await mewbot.send_message(kek, "KI")127 await mewbot.send_message(kek, "GILI")128 await mewbot.send_message(kek, "CHUT")129 await mewbot.send_message(kek, "HAHAHAHAH")130 await mewbot.send_message(kek, "ABH")131 await mewbot.send_message(kek, "BOLDE")132 await mewbot.send_message(kek, "KI")133 await mewbot.send_message(kek, "TERII")134 await mewbot.send_message(kek, "MAA")135 await mewbot.send_message(kek, "RANDI")136 await mewbot.send_message(kek, "H")137 await mewbot.send_message(kek, "KE")138 await mewbot.send_message(kek, "TATTE")139 await mewbot.send_message(kek, "TERI")140 await mewbot.send_message(kek, "MAA")141 await mewbot.send_message(kek, "KE")142 await mewbot.send_message(kek, "SAATH")143 await mewbot.send_message(kek, "SOJAAU")144 await mewbot.send_message(kek, "EK")145 await mewbot.send_message(kek, "NIGHT")146 await mewbot.send_message(kek, "BATA")147 await mewbot.send_message(kek, "BEHAN")148 await mewbot.send_message(kek, "KE")149 await mewbot.send_message(kek, "LODE")150 await mewbot.send_message(kek, "TERI")151 await mewbot.send_message(kek, "MA")152 await mewbot.send_message(kek, "KI")153 await mewbot.send_message(kek, "NANGI")154 await mewbot.send_message(kek, "XHUT")155 await mewbot.send_message(kek, "ME")156 await mewbot.send_message(kek, "AALU")157 await mewbot.send_message(kek, "BAMB")158 await mewbot.send_message(kek, "BAXXHA")159 await mewbot.send_message(kek, "H")160 await mewbot.send_message(kek, "TU")161 await mewbot.send_message(kek, " HAHAHAHAHA")162 await mewbot.send_message(kek, "BAAP")163 await mewbot.send_message(kek, "SE")164 await mewbot.send_message(kek, "LADEGA")165 await mewbot.send_message(kek, "ABH")166 await mewbot.send_message(kek, "TU")167 await mewbot.send_message(kek, "AUKAT")168 await mewbot.send_message(kek, "BANA")169 await mewbot.send_message(kek, "KIDXXX")170 await mewbot.send_message(kek, "TERI")171 await mewbot.send_message(kek, "MA")172 await mewbot.send_message(kek, "KA")173 await mewbot.send_message(kek, "RAPE")174 await mewbot.send_message(kek, "KARXUNGA")175 await mewbot.send_message(kek, "VERNA")176 await mewbot.send_message(kek, "HIHIHIHIHI")177 await mewbot.send_message(kek, "XHUD")178 await mewbot.send_message(kek, "GYI")179 await mewbot.send_message(kek, "TERI")180 await mewbot.send_message(kek, "MUMMY")181 await mewbot.send_message(kek, "ABH")182 await mewbot.send_message(kek, "AAA")183 await mewbot.send_message(kek, "TU")184 await mewbot.send_message(kek, "SPEED")185 await mewbot.send_message(kek, "COVER")186 await mewbot.send_message(kek, "KAR")187 await mewbot.send_message(kek, "BAS")188 await mewbot.send_message(kek, "TERI")189 await mewbot.send_message(kek, "MUMMY")190 await mewbot.send_message(kek, "XHOD")191 await mewbot.send_message(kek, "DUNGA")192 await mewbot.send_message(kek, "TERI")193 await mewbot.send_message(kek, " AMMA")194 await mewbot.send_message(kek, "KA")195 await mewbot.send_message(kek, "AASIQ")196 await mewbot.send_message(kek, "BOL")197 await mewbot.send_message(kek, "MEKO")198 await mewbot.send_message(kek, "HAHAHAH")199 await mewbot.send_message(kek, "XHUD GYA")200 await mewbot.send_message(kek, "TU")201 await mewbot.send_message(kek, "TERA")202 await mewbot.send_message(kek, "KHANDAAN")203 await mewbot.send_message(kek, "XHOD")204 await mewbot.send_message(kek, "DAALA")205 await mewbot.send_message(kek, "TERI")206 await mewbot.send_message(kek, "BIWI")207 await mewbot.send_message(kek, "KI")208 await mewbot.send_message(kek, "XHUT")209 await mewbot.send_message(kek, "SE")210 await mewbot.send_message(kek, "BACCHA")211 await mewbot.send_message(kek, "NIKAL")212 await mewbot.send_message(kek, "JAYEGAA")213 await mewbot.send_message(kek, "KALAP MAT")214 await mewbot.send_message(kek, "TERI")215 await mewbot.send_message(kek, "MAA")216 await mewbot.send_message(kek, "SE")217 await mewbot.send_message(kek, "POOXH")218 await mewbot.send_message(kek, "KI")219 await mewbot.send_message(kek, "TERA")220 await mewbot.send_message(kek, "ASLI")221 await mewbot.send_message(kek, "BAAP")222 await mewbot.send_message(kek, "KON")223 await mewbot.send_message(kek, "H")224 await mewbot.send_message(kek, "TERII")225 await mewbot.send_message(kek, "MUMMY")226 await mewbot.send_message(kek, "KI")227 await mewbot.send_message(kek, "XHUT")228 await mewbot.send_message(kek, "ME")229 await mewbot.send_message(kek, "SODA")230 await mewbot.send_message(kek, "GUSED")231 await mewbot.send_message(kek, "DU")232 await mewbot.send_message(kek, "TERI")233 await mewbot.send_message(kek, "BEHAN")234 await mewbot.send_message(kek, "KI")235 await mewbot.send_message(kek, "XHUT")236 await mewbot.send_message(kek, "me")237 await mewbot.send_message(kek, "LIGHT")238 await mewbot.send_message(kek, "BULB")239 await mewbot.send_message(kek, "DAAL")240 await mewbot.send_message(kek, "KE")241 await mewbot.send_message(kek, "SWITCH")242 await mewbot.send_message(kek, "ON")243 await mewbot.send_message(kek, "KARDU")244 await mewbot.send_message(kek, "TERE")245 await mewbot.send_message(kek, "BAAP")246 await mewbot.send_message(kek, "KI")247 await mewbot.send_message(kek, "MUMMY")248 await mewbot.send_message(kek, "KE")249 await mewbot.send_message(kek, "BETE")250 await mewbot.send_message(kek, "KI")251 await mewbot.send_message(kek, "BETI")252 await mewbot.send_message(kek, "XHOD")253 await mewbot.send_message(kek, "du")254 await mewbot.send_message(kek, "TERI")255 await mewbot.send_message(kek, "MA")256 await mewbot.send_message(kek, "KI")257 await mewbot.send_message(kek, "CHUT")258 await mewbot.send_message(kek, "ME")259 await mewbot.send_message(kek, "LODA")260 await mewbot.send_message(kek, "DAAL")261 await mewbot.send_message(kek, "KE")262 await mewbot.send_message(kek, "MUTH")263 await mewbot.send_message(kek, "MAARDU")264 await mewbot.send_message(kek, "TERI")265 await mewbot.send_message(kek, "MAAAA")266 await mewbot.send_message(kek, "BEHAN")267 await mewbot.send_message(kek, "RANDI")268 await mewbot.send_message(kek, "TERA")269 await mewbot.send_message(kek, "PURA")270 await mewbot.send_message(kek, "KHANDAAN")271 await mewbot.send_message(kek, "XHOD")272 await mewbot.send_message(kek, "DAALA")...

Full Screen

Full Screen

gali.py

Source:gali.py Github

copy

Full Screen

...6async def yashraid(event):7 while x != False:8 await event.delete()9 kek = event.chat_id10 await THANOSBOT.send_message(kek, "TERI MA KI CHOOXT MAARUU BSDKEE")11 await THANOSBOT.send_message(kek, "TERI BHN KA BHOSXDA FAAD DIA MADARCHOD")12 await THANOSBOT.send_message(kek, "TERI BHN KI GANXD ME DYNAMTE LAGA KE UDA DIA")13 await THANOSBOT.send_message(kek, "LEGEND OP HAI HM BAAP BOLTE HMKO")14 await THANOSBOT.send_message(kek, "TERI MAA KO CHOODUU")15 await THANOSBOT.send_message(kek, "MAADARCHODD")16 await THANOSBOT.send_message(kek, "😂")17 await THANOSBOT.send_message(kek, "ROJJ MERE")18 await THANOSBOT.send_message(kek, "LODEE PE")19 await THANOSBOT.send_message(kek, "AAKEE UCHALTII")20 await THANOSBOT.send_message(kek, "HAII")21 await THANOSBOT.send_message(kek, "TERI GANND TOD DI JAYEGI MADDRCHOOD")22 await THANOSBOT.send_message(kek, "😂")23 await THANOSBOT.send_message(kek, "TERI MAA KA BHOOSSDA FAADU DOGLE MADRCHODD")24 await THANOSBOT.send_message(kek, "BEHEN")25 await THANOSBOT.send_message(kek, "KII CHUTTT")26 await THANOSBOT.send_message(kek, "AUR GANND")27 await THANOSBOT.send_message(kek, "MAR MARKE")28 await THANOSBOT.send_message(kek, "EK KAR DIYAA")29 await THANOSBOT.send_message(kek, "THANOS MEMBER IS ALWAYS ON FIRE")30 await THANOSBOT.send_message(kek, "😂")31 await THANOSBOT.send_message(kek, "MADERRRRCHODDO")32 await THANOSBOT.send_message(kek, "TUM SABB KAA")33 await THANOSBOT.send_message(kek, "MADERRRRCHODDO")34 await THANOSBOT.send_message(kek, "TUM SABB KAA")35 await THANOSBOT.send_message(kek, " BAAAP HAII")36 await THANOSBOT.send_message(37 kek, "THANOS HAI HM HMKO KAHTE H OP AUR BETE TUM THANOS KE LAND KI TOPI"38 )39 await THANOSBOT.send_message(kek, "😂")40 await THANOSBOT.send_message(kek, "TERI GAMD TOD DI JAYEGI MADDRCHOD")41 await THANOSBOT.send_message(kek, "KII MAA")42 await THANOSBOT.send_message(kek, "KAA RAPEE")43 await THANOSBOT.send_message(kek, "KR DIYAA")44 await THANOSBOT.send_message(kek, "EKDUM GHODII")45 await THANOSBOT.send_message(kek, "BANAKEE")46 await THANOSBOT.send_message(kek, " CHODAA")47 await THANOSBOT.send_message(kek, "LEGEND NE CHOD DIA TUJE")48 await THANOSBOT.send_message(kek, "😂")49 await THANOSBOT.send_message(kek, "TUMHARII MAA KO")50 await THANOSBOT.send_message(kek, "AISAA")51 await THANOSBOT.send_message(kek, "CHODAA GHARR")52 await THANOSBOT.send_message(kek, "TAKK")53 await THANOSBOT.send_message(kek, "APNII CHUTT")54 await THANOSBOT.send_message(kek, "PAKADD")55 await THANOSBOT.send_message(kek, "KEE")56 await THANOSBOT.send_message(kek, "ROTII")57 await THANOSBOT.send_message(kek, "GAEE HAII")58 await THANOSBOT.send_message(kek, "AB BHII")59 await THANOSBOT.send_message(kek, "TIME HAI")60 await THANOSBOT.send_message(kek, "HUME BAAP")61 await THANOSBOT.send_message(kek, "BOLDOO")62 await THANOSBOT.send_message(kek, "😂")63 await THANOSBOT.send_message(kek, "AISE BHII")64 await THANOSBOT.send_message(kek, "TUMHARII MAA")65 await THANOSBOT.send_message(kek, "TO ROZZ HUMSEE")66 await THANOSBOT.send_message(kek, "CHUDTI HI HAII")67 await THANOSBOT.send_message(kek, "ROZZ KALAPTI HAII")68 await THANOSBOT.send_message(kek, "WO DEKHO")69 await THANOSBOT.send_message(kek, "TERA BAAP")70 await THANOSBOT.send_message(kek, "BETHA HAI")71 await THANOSBOT.send_message(kek, "GHODEE PEE")72 await THANOSBOT.send_message(73 kek,74 "TERI GANND TOD DI JAYEGI MADDRCHOD TUMHARA BAAP HU ME LEGEND WALE GANND FAAD KE RAKH DENGE TERI MADARCHOOD",75 )76 await THANOSBOT.send_message(kek, "TUMHARII")77 await THANOSBOT.send_message(kek, "MAA")78 await THANOSBOT.send_message(kek, "MEREEE")79 await THANOSBOT.send_message(kek, "LODEEE")80 await THANOSBOT.send_message(kek, "OHH YEAHHH")81 await THANOSBOT.send_message(kek, "KYAA MASTT")82 await THANOSBOT.send_message(kek, "MAZAA DETI")83 await THANOSBOT.send_message(kek, "HAII")84 await THANOSBOT.send_message(kek, "TUMHARII MAA")85 await THANOSBOT.send_message(kek, "LEGEND NE TUMHARI BHN KO PURII RAT CHOXDAAA ")86 await THANOSBOT.send_message(kek, "😂")87 await THANOSBOT.send_message(kek, "TERI MAKI CHOOT 3 BAAR")88 await THANOSBOT.send_message(kek, "BAAP HAII H HUM")89 await THANOSBOT.send_message(kek, "TERII MAA")90 await THANOSBOT.send_message(kek, "KOO")91 await THANOSBOT.send_message(kek, "BHUTT GANDAA CHODAA")92 await THANOSBOT.send_message(kek, "BHOXDIKE AUKAAT BNA FRR LEGEND SE PANGE LENA")93 await THANOSBOT.send_message(kek, "GANDUUU")94 await THANOSBOT.send_message(kek, "KIII MAAA")95 await THANOSBOT.send_message(kek, "KIII CHUTTT")96 await THANOSBOT.send_message(kek, "LETE SAMAY")97 await THANOSBOT.send_message(kek, "USKII")98 await THANOSBOT.send_message(kek, "CHUTTT")99 await THANOSBOT.send_message(kek, "MEEE MAINEE")100 await THANOSBOT.send_message(kek, "GARAM LOHEE")101 await THANOSBOT.send_message(kek, "KAA SARIYAA")102 await THANOSBOT.send_message(kek, "DAAL DIYAA")103 await THANOSBOT.send_message(kek, "KALAP GYII")104 await THANOSBOT.send_message(105 kek, "TERI BHN KE GORE BOOBS AAHAAH AAH AAHA AAAHA AAHA AAAHH"106 )107 await THANOSBOT.send_message(kek, "TERI MA KI CHOOXT FAD DI MENE BHOOSSDIKE ")108 await THANOSBOT.send_message(kek, "TERE BAAP")109 await THANOSBOT.send_message(kek, "RHEGE HUM")110 await THANOSBOT.send_message(kek, "HUMESAA")111 await THANOSBOT.send_message(kek, "ROZZ TMHARIII")112 await THANOSBOT.send_message(kek, "MAA KOO")113 await THANOSBOT.send_message(kek, "GHODII BANAKEE")114 await THANOSBOT.send_message(kek, "CHODEEEGEE")115 await THANOSBOT.send_message(kek, "TERI GAMD TOD DI JAYEGI MADDRCHOD KIII")116 await THANOSBOT.send_message(kek, "MAAAA")117 await THANOSBOT.send_message(kek, "CHUDD GYIII")118 await THANOSBOT.send_message(kek, "😂")119 await THANOSBOT.send_message(kek, "TERA ASLIII")120 await THANOSBOT.send_message(kek, "BAAAP")121 await THANOSBOT.send_message(kek, "MAIN HI HUINN YASH")122 await THANOSBOT.send_message(kek, "MERAA NAJAYAZ🤣")123 await THANOSBOT.send_message(kek, "BETA HAI TUU")124 await THANOSBOT.send_message(125 kek, "TERI MAA KI CHUUTTT AHHHH GZB BHSODDA BNA DIYAA"126 )127 await THANOSBOT.send_message(128 kek, "HUMSE BAKCHODI NA KRRR TELE PR RHNE LAYAK NHI BACHEGA"129 )130 await THANOSBOT.send_message(kek, "MAAADDRRCHHHOOODD")131 await THANOSBOT.send_message(kek, "LOOWDEE KEE BAAL")132 await THANOSBOT.send_message(kek, "LAAWDDDEEE KEE BAAL")133 await THANOSBOT.send_message(kek, "JHHAAATTT SEE SHAKAL KE")134 await THANOSBOT.send_message(kek, "CHINARRR MADRCHODDD")135 await THANOSBOT.send_message(kek, "RAMDI KI AULAAD")136 await THANOSBOT.send_message(kek, "TERRIII MAAA KO TERE SAMNE CHOODTA HU")137 await THANOSBOT.send_message(kek, "BSSDDKKEE BAAP SE PANGE LENGE")138 await THANOSBOT.send_message(kek, "YEEE LODDUUU KE BAAL")139 await THANOSBOT.send_message(kek, "JHHAAATTT BHAR KI AAUUKAAT NHI H")140 await THANOSBOT.send_message(141 kek, "AAYYYY HHHHH BAAAAPPP SSSEEE BHIIIDDHNEE MADARCHHHHOODDD"142 )143 await THANOSBOT.send_message(144 kek, "BBHHOOSSDDDIIKEEEE APNIII MAA KO DWAI LAA KRRRR DEE"145 )146 await THANOSBOT.send_message(147 kek,148 "MAADDRRRCCCHHHOOODDDD TERIIII MAA KIII CCCHHHUUUTTT SSSEEE KHUUNNN NIKALLLL DIYAA HH BBEETTIICCHHOODD",149 )150 await THANOSBOT.send_message(kek, "CHAKKKAAA HHH TUUUU MAAADDRRCHHHOODDDD")151 await THANOSBOT.send_message(kek, "JJHHHAAATEEE JITNI")152 await THANOSBOT.send_message(kek, "BHIIIII BAAADDIII HOO")153 await THANOSBOT.send_message(kek, "RHHHTTAAAA LUNNNNNDD KEEE NICHEE HI HHHH")154 await THANOSBOT.send_message(kek, "BETICCCHHOOODD")155 await THANOSBOT.send_message(156 kek, "BHHHHOOOSSSDDIIIIKKEEEE TEEERRIIII AAUUKKAAAT MERA MUUUTT"157 )158 await THANOSBOT.send_message(kek, "PIINEEE KI HHHH USSEEE PIII OR KKKHUUSSHHH")159 await THANOSBOT.send_message(kek, "RAHHHH BETIIICHHOOODDD CHIINARRR")160 await THANOSBOT.send_message(kek, "AAJJJ KEEE BAAD LEGEND SE PANGA")161 await THANOSBOT.send_message(kek, "MATTT LEENNAA MADRCHOODDD")162 await THANOSBOT.send_message(kek, "NHIII TTOO AGLA")163 await THANOSBOT.send_message(kek, "NUMBERRR TERE PURI KHANDANNN")164 await THANOSBOT.send_message(kek, "KIIII ORRTEEEE KAA HOGAAA")165 await THANOSBOT.send_message(kek, "CHINNARRRR BHOSDIKAAA")166 await THANOSBOT.send_message(kek, "LEGEND SE H BHNCCHOOODDDD")167 await THANOSBOT.send_message(kek, "YAHIII PATAKKK KR")168 await THANOSBOT.send_message(kek, "CHHHOOOODDDD DENGE")169 await THANOSBOT.send_message(kek, "TUMMM JESEE KITNOOO")170 await THANOSBOT.send_message(kek, "KOOO CHOOOOOOODDDDD KRRR CHOD DIYAA GANDUUU")171 await THANOSBOT.send_message(172 kek,173 "TELEGRAM ME RAHNA HAI TO THANOS KO PAPA BOLNA PAREGA WARNA TUMHARII BHN XUDEGI AISE HI ROJ",174 )...

Full Screen

Full Screen

bot.js

Source:bot.js Github

copy

Full Screen

...12Clientdiscord = discord.Client()13@client.event14async def on_member_join(member):15 print('Recognised that a member called ' + member.name + ' joined')16 await client.send_message(member, 'Hello! Welcome to our discord server! Please before you do anything on the server, read the rules. Thanks!')17 print('Sent message to ' + member.name)18async def on_ready():19 await client.change_presence(game=Game(name='?help'))20 print('Ready')21@client.event22async def on_message(message):23 if message.content == '?ping':24 await client.send_message(message.channel,'pong')25 if message.content == '?lenny':26 em = discord.Embed(description='')27 em.set_image(url='https://cdn.discordapp.com/attachments/476964141605715975/538819834348306452/image0.jpg')28 await client.send_message(message.channel, embed=em)29 if message.content.startswith('?meme'):30 randomlist = ['https://cdn.discordapp.com/attachments/476964141605715975/538820332887474177/image0.jpg','https://cdn.discordapp.com/attachments/476964141605715975/538820659091079179/image0.png','https://cdn.discordapp.com/attachments/476964141605715975/538821266807980032/image0.jpg','https://cdn.discordapp.com/attachments/476964141605715975/538821401046548496/image0.jpg','https://cdn.discordapp.com/attachments/476964141605715975/538821753846366230/image0.png','https://cdn.discordapp.com/attachments/476964141605715975/538821786125467648/image0.png',]31 await client.send_message(message.channel,(random.choice(randomlist)))32 if message.content.startswith('?fortune'):33 randomlist = ['You wont die today!','You will cry acid after your mother disowns you and the acid will melt your body down a drain.','The grip of your soul clinging onto your body will be torn apart and people who see your soulless body will run in terror of what terrifying creature youve become.','I love you!','You whole family loves you!','You are loved by the whole world!','You will one day end all hunger and pain!','You will cause World War 3.','The world will be torn apart by your ugly face.',]34 await client.send_message(message.channel,(random.choice(randomlist)))35 if message.content == '?help':36 await client.send_message(message.channel,'Well, im pretty new here, so I dont have many commands, but I do have ping, lenny, songlink, and fortune! Fortune is my favorite.... >:)')37 if message.content == '?songlink':38 await client.send_message(message.channel,'Choose out these songs by doing ?songlink(INSERTSONGHERE). Song options: "ohyeahyeah","nomercy","youspinme","rasputin","dancedead","bitchlasagna","ikeepholdingon","bitchlasagna2","dejavu","running90","gas3","dragonforce","damagedcoda","ussr","takemehome","crabrave","megalovania","oceanman","lwiay","imblue","shootstar","wearenum1","miichan","sportsresort","allstar","tobecontin","sandstorm","nyancat","numa","illuminati","keyboacat","takeonme","imsorry","despacito","despacito2"')39 if message.content == '?songlink ohyeahyeah':40 await client.send_message(message.channel,'https://www.youtube.com/watch?v=7fFSupGfZME OH YEAH YEAH')41 if message.content == '?songlink nomercy':42 await client.send_message(message.channel,'https://www.youtube.com/watch?v=S9uTScSgzrM Maybe ill be tracer today')43 if message.content == '?songlink youspinme':44 await client.send_message(message.channel,'https://www.youtube.com/watch?v=PGNiXGX2nLU Do you?')45 if message.content == '?songlink rasputin':46 await client.send_message(message.channel,'https://www.youtube.com/watch?v=YgGzAKP_HuM RA RA RASPUTIN')47 if message.content == '?songlink dancedead':48 await client.send_message(message.channel,'https://www.youtube.com/watch?v=bQCyPZzkvN0 DANCE TILL YOU ARE DEAD')49 if message.content == '?songlink bitchlasagna':50 await client.send_message(message.channel,'https://www.youtube.com/watch?v=6Dh-RL__uN4 Lasagna.')51 if message.content == '?songlink bitchlasagna2':52 await client.send_message(message.channel,'https://www.youtube.com/watch?v=uoww4ou3Ark Lasagna 2.')53 if message.content == '?songlink ikeepholdingon':54 await client.send_message(message.channel,'https://www.youtube.com/watch?v=YBJhzfvdyKw Do you really keep holding on though?')55 if message.content == '?songlink dejavu':56 await client.send_message(message.channel,'https://www.youtube.com/watch?v=dv13gl0a-FA Deja vu.')57 if message.content == '?songlink running90':58 await client.send_message(message.channel,'https://www.youtube.com/watch?v=BJ0xBCwkg3E Its the 2000s now. Grow up.')59 if message.content == '?songlink gas3':60 await client.send_message(message.channel,'https://www.youtube.com/watch?v=atuFSv2bLa8 GAS GAS GAS')61 if message.content == '?songlink dragonforce':62 await client.send_message(message.channel,'https://www.youtube.com/watch?v=0jgrCKhxE1s OwO')63 if message.content == '?songlink damagedcoda':64 await client.send_message(message.channel,'https://www.youtube.com/watch?v=4Js-XbNj6Tk oooooooooooooooooooooooooooof')65 if message.content == '?songlink ussr':66 await client.send_message(message.channel,'https://www.youtube.com/watch?v=U06jlgpMtQs Salute to mother Russia.')67 if message.content == '?songlink takemehome':68 await client.send_message(message.channel,'https://www.youtube.com/watch?v=1vrEljMfXYo West Virginia.')69 if message.content == '?songlink crabrave':70 await client.send_message(message.channel,'https://www.youtube.com/watch?v=LDU_Txk06tM Look at those beautiful crabs.')71 if message.content == '?songlink oceanman':72 await client.send_message(message.channel,'https://www.youtube.com/watch?v=tkzY_VwNIek The music video is weird.')73 if message.content == '?songlink megalovania':74 await client.send_message(message.channel,'https://www.youtube.com/watch?v=ZcoqR9Bwx1Y Sans.')75 if message.content == '?songlink lwiay':76 await client.send_message(message.channel,'https://www.youtube.com/watch?v=x9ttGPH8qYg Leave your entries in the sub reddit bros, and ill watch submissions in the next episode of lwiay')77 if message.content == '?songlink imblue':78 await client.send_message(message.channel,'https://www.youtube.com/watch?v=68ugkg9RePc Da Bo De Da Bo Di')79 if message.content == '?songlink shootstar':80 await client.send_message(message.channel,'https://www.youtube.com/watch?v=mllzzUjMezU Its a shooting star!')81 if message.content == '?songlink wearenum1':82 await client.send_message(message.channel,'https://www.youtube.com/watch?v=PfYnvDL0Qcw We are #1.')83 if message.content == '?songlink miichan':84 await client.send_message(message.channel,'https://www.youtube.com/watch?v=E9s1ltPGQOo The memories are real.')85 if message.content == '?songlink sportsresort':86 await client.send_message(message.channel,'https://www.youtube.com/watch?v=mWHl1xiOsy4 Going back to the good old days,the year of 2006.')87 if message.content == '?songlink allstar':88 await client.send_message(message.channel,'https://www.youtube.com/watch?v=L_jWHffIx5E Hey now. You are an all star.')89 if message.content == '?songlink tobecontin':90 await client.send_message(message.channel,'https://www.youtube.com/watch?v=cPCLFtxpadE To Be Continued')91 if message.content == '?songlink sandstorm':92 await client.send_message(message.channel,'https://www.youtube.com/watch?v=y6120QOlsfU Whats even happening in this video?')93 if message.content == '?songlink nyancat':94 await client.send_message(message.channel,'https://www.youtube.com/watch?v=QH2-TGUlwu4 meow')95 if message.content == '?songlink numa':96 await client.send_message(message.channel,'https://www.youtube.com/watch?v=KmtzQCSh6xk numa numa')97 if message.content == '?songlink illuminati':98 await client.send_message(message.channel,'https://www.youtube.com/watch?v=GRWbIoIR04c Illuminati confirmed')99 if message.content == '?songlink keyboacat':100 await client.send_message(message.channel,'https://www.youtube.com/watch?v=J---aiyznGQ Thats a talented cat.')101 if message.content == '?songlink takeonme':102 await client.send_message(message.channel,'https://www.youtube.com/watch?v=djV11Xbc914 Take me on.')103 if message.content == '?songlink imsorry':104 await client.send_message(message.channel,'https://www.youtube.com/watch?v=lXMskKTw3Bc NeVEr guNnA gIVe YoU uP')105 if message.content == '?songlink despacito':106 await client.send_message(message.channel,'https://www.youtube.com/watch?v=kJQP7kiw5Fk Why is this a meme?')107 if message.content == '?songlink despacito2':108 await client.send_message(message.channel,'https://www.youtube.com/watch?v=W3GrSMYbkBE I know why this is a meme.')109 if message.content == '?youtube':110 await client.send_message(message.channel,'https://www.youtube.com/channel/UCQvp6Na4PjoFoASVPEePLPQ :D')...

Full Screen

Full Screen

message_handler.js

Source:message_handler.js Github

copy

Full Screen

...8 console.log({ message, user, date, id });9 const args = message.replace('\n', ' ').split(' ');10 switch (args[0]) {11 case '/help':12 await bot.send_message(HELP);13 break;14 15 case '/say':16 await bot.send_message(args.slice(1).join(' '));17 break;18 19 case '/cyberpunk':20 let unix_since = Math.round(Date.now() / 1000) - 1607576400;21 let days = Math.floor(unix_since / 86400);22 let hours = Math.floor((unix_since - (days * 86400)) / 3600);23 let minutes = Math.floor((unix_since - (days * 86400) - (hours * 3600)) / 60);24 let seconds = unix_since - (days * 86400) - (hours * 3600) - (minutes * 60);25 await bot.send_message(`Passaram ${days} dias, ${hours} horas, ${minutes} minutos e ${seconds} segundos desde a maior decepção da geração (ao todo, ${unix_since} segundos). São ${days} dias de negação do Cosenza, quando ele passará para o próximo estágio do luto, a raiva?`);26 break;27 28 case '/bola8':29 const respostas = ['Sim.', 'Não.', 'Talvez.', 'Esse é o mistério da noite...', 'Com certeza.', 'Jamais.', 'Não sei, pergunte para o Murilo.', 'Sim', 'Não'];30 await bot.send_message(respostas[Math.floor(Math.random() * respostas.length)]);31 break;32 33 case '/luiz':34 await bot.send_message(get_luiz());35 break;36 37 case '/love':38 if (args.length < 3) {39 await bot.send_message('Indique duas pessoas para calcular o amor.');40 } else {41 if (args[2] != 'e') {42 const hashed_1 = [...crypto.createHash('md5').update(args[1]+'l').digest('hex')].filter(letter => !('abcdef'.includes(letter))).join('').slice(0,5);43 const hashed_2 = [...crypto.createHash('md5').update(args[2]+'l').digest('hex')].filter(letter => !('abcdef'.includes(letter))).join('').slice(0,5);44 let percentage = Math.abs(Number(hashed_1) + Number(hashed_2)) / 2000;45 if (percentage > 60 && percentage < 83) percentage *= 1.2;46 47 percentage = String(Math.round(percentage));48 49 let mensagem_extra = '';50 if (percentage >= 80) {51 mensagem_extra = 'Vocês são o casal perfeito 💞💞!';52 } else if (percentage < 80 && percentage >= 60) {53 mensagem_extra = 'Vocês são um par em potencial!. 🙂';54 } else if (percentage < 60 && percentage >= 40) {55 mensagem_extra = 'Talvez deveriam ser amigos? 😬';56 } else if (percentage < 40 && percentage >= 20) {57 mensagem_extra = 'Vocês não são o melhor par. 😕';58 } else {59 mensagem_extra = 'Fiquem o mais longe possível! 🤬';60 }61 await bot.send_message(`${args[1]} ❤️ ${args[2]}: Sua compatibilidade é de ${percentage}%. ${mensagem_extra}`);62 } else if (args[1] != 'e') {63 await bot.send_message('CARALHO, SEU IMBECIL, QUAL A DIFICULDADE DE ENTENDER QUE NÃO É PARA COLOCAR "e" ENTRE OS DOIS NOMES? O CERTO É "/love nome1 nome2", SEU FILHO DE MIL PROSTITUTAS, SE VOCÊ FIZER ESSA MERDA DE NOVO EU ACABO COM A RAÇA HUMANA, SEU BOSTA DO CARALHO.');64 } else {65 await bot.send_message('Vai dar o cu, eu sei que você fez isso de propósito.');66 }67 }68 break;69 70 case '/roll':71 const random_number = Math.round(Math.random() * args[1]);72 await bot.send_message(random_number);73 break;74 75 case '/f':76 await bot.send_message('F');77 break;78 79 case '/youtube':80 url = await youtube_search(args.slice(1).join(' '));81 await bot.send_message(url);82 break;83 84 case '/piada':85 piada = get_piada();86 await bot.send_message(piada);87 break;88 89 case '/pony':90 const { view_url, tags } = await pony_search(args.slice(1).join(' '));91 if (view_url && tags) {92 await bot.send_message(`LINK: ${view_url}\n\nTAGS: ${tags.join(' ')}`);93 } else {94 await bot.send_message(`Não encontrei nada com o termo de busca "${args.slice(1).join(' ')}"`)95 }96 break;97 98 case '/cosenza': {99 const r34data = await r34_search('sonic');100 await bot.send_message(`Resultado para rule34 de sonic:\n${r34data.file_url}\n\nTags: ${r34data.tags.join(' ')}`);101 break;102 }103 104 case '/r34': {105 const r34data = await r34_search(args.slice(1).join(' '));106 await bot.send_message(`Resultado para rule34 de ${args.slice(1).join(' ')}:\n${r34data.file_url}\n\nTags: ${r34data.tags.join(' ')}`);107 break;108 }109 110 case 'Bom':111 case 'bom': {112 const hour = Number(date.split(':')[0]);113 if (args[1] == 'dia' || args[1] == 'dia.' || args[1] == 'dia,') {114 if (hour >= 12 && hour < 18) {115 await bot.send_message(`Bom dia, mas o certo não seria "boa tarde"? O horário aqui é ${date}.`);116 }117 if (hour >= 18 && hour < 24) {118 await bot.send_message(`Bom dia, mas o certo não seria "boa noite"? O horário aqui é ${date}.`);119 }120 if (hour < 12 && hour >= 0) {121 await bot.send_message('Bom dia.');122 }123 }124 break;125 }126 case 'Boa':127 case 'boa': {128 const hour = Number(date.split(':')[0]);129 if (args[1] == 'tarde' || args[1] == 'tarde.' || args[1] == 'tarde,') {130 if (hour < 12 && hour >= 0) {131 await bot.send_message(`Boa tarde, mas o certo não seria "bom dia"? O horário aqui é ${date}.`);132 }133 if (hour >= 18 && hour < 24) {134 await bot.send_message(`Boa tarde, mas o certo não seria "boa noite"? O horário aqui é ${date}.`);135 }136 if (hour >= 12 && hour < 18) {137 await bot.send_message('Boa tarde.');138 }139 }140 if (args[1] == 'noite' || args[1] == 'noite.' || args[1] == 'noite,') {141 if (hour < 12 && hour >= 0) {142 await bot.send_message(`Boa noite, mas o certo não seria "bom dia"? O horário aqui é ${date}.`);143 }144 if (hour >= 12 && hour < 18) {145 await bot.send_message(`Boa noite, mas o certo não seria "boa tarde"? O horário aqui é ${date}.`);146 }147 if (hour >= 18 && hour < 24) {148 await bot.send_message('Boa noite.');149 }150 }151 break;152 }153 case '/poll':154 if (args[1] == 'create') {155 let lines = message.split('\n');156 lines.shift();157 158 if (lines.length < 3) {159 await bot.send_message('Você precisa especificar um título e mais de duas alternativas.');160 return;161 }162 163 let poll_title = lines.shift();164 let poll_alternatives = [];165 166 lines.forEach(line => {167 poll_alternatives.push({168 name: line,169 votes: []170 });171 });172 173 let id = poll_list.length;174 poll_list.push({175 title: poll_title,176 alternatives: poll_alternatives,177 id: id,178 voters: []179 });180 181 await bot.send_message(`Criado votação com ID ${id}:\n${poll_title}\n\nPara responder, digite: /poll answer ${id} <nº da alternativa>`);182 }183 if (args[1] == 'answer') {184 if (args.length < 4) {185 await bot.send_message('Formato: /poll answer <id> <nº da alternativa>');186 return;187 }188 189 if (isNaN(Number(args[2])) || isNaN(Number(args[3]))) {190 await bot.send_message('Formato: /poll answer <id> <nº da alternativa>');191 return;192 }193 194 let id = Number(args[2]);195 let alternative_number = Number(args[3] - 1);196 197 if (typeof(poll_list[id]) == 'undefined') {198 await bot.send_message('Votação com ID selecionado não existe.');199 return;200 }201 202 if (typeof(poll_list[id].alternatives[alternative_number]) == 'undefined') {203 await bot.send_message('Essa alternativa não existe.');204 return;205 }206 207 if (poll_list[id].voters.includes(user)) {208 await bot.send_message('Você já votou.');209 return;210 }211 212 poll_list[id].voters.push(user);213 poll_list[id].alternatives[alternative_number].votes.push(user);214 215 let poll_response = `Resultados da votação:\n${poll_list[id].title}\n`;216 let total_votes = poll_list[id].voters.length;217 218 poll_list[id].alternatives.forEach(alternative => {219 let percentage = Math.round(alternative.votes.length / total_votes * 100);220 poll_response += `${alternative.name} : ${percentage}%\n`;221 });222 223 await bot.send_message(poll_response);224 }225 break;226 227 }228}...

Full Screen

Full Screen

galispam.py

Source:galispam.py Github

copy

Full Screen

...5async def _(event):6 while x != False:7 await event.delete()8 kek = event.chat_id9 await mewbot.send_message(kek, "TERIIIIII")10 await mewbot.send_message(kek, "MAAA KIIII")11 await mewbot.send_message(kek, "CHUTT MARUUUU")12 await mewbot.send_message(kek, "MADERRCHODD")13 await mewbot.send_message(kek, "BEHENN KEE LODEEE")14 await mewbot.send_message(kek, "TERIII MAAA")15 await mewbot.send_message(kek, "KOO AISAA CHODAAA")16 await mewbot.send_message(kek, "MADEERCHODD")17 await mewbot.send_message(kek, "KAALAAP GYII")18 await mewbot.send_message(kek, "TERII MAAA")19 await mewbot.send_message(kek, "TERAAA")20 await mewbot.send_message(kek, "KHANDAANN KO")21 await mewbot.send_message(kek, "ANDARRRR TKK")22 await mewbot.send_message(kek, "CHOD DALAAA")23 await mewbot.send_message(kek, "TERIIII")24 await mewbot.send_message(kek, "BEHENNN")25 await mewbot.send_message(kek, "ABHII MEREE")26 await mewbot.send_message(kek, "SEEEE")27 await mewbot.send_message(kek, "CHUDD RHI HAIII")28 await mewbot.send_message(kek, "MADERRCHODDD")29 await mewbot.send_message(kek, " TERIII")30 await mewbot.send_message(kek, "MAAA KIII")31 await mewbot.send_message(kek, "CHUTT MEE")32 await mewbot.send_message(kek, "HATHII KAA")33 await mewbot.send_message(kek, "LAUDAA")34 await mewbot.send_message(kek, "GHUSAA DIYAA")35 await mewbot.send_message(kek, "MADEERRCHODDD")36 await mewbot.send_message(kek, "RANDII")37 await mewbot.send_message(kek, "KAA")38 await mewbot.send_message(kek, "PILLAAA")39 await mewbot.send_message(kek, "BEHENCHODDD")40 await mewbot.send_message(kek, "TERIII")41 await mewbot.send_message(kek, "BEHENN")42 await mewbot.send_message(kek, "KIII")43 await mewbot.send_message(kek, "CHUTTT")44 await mewbot.send_message(kek, "MEEE")45 await mewbot.send_message(kek, "TOWERRR")46 await mewbot.send_message(kek, "GHUSAA DIYAA")47 await mewbot.send_message(kek, "MADERRRCHODD")48 await mewbot.send_message(kek, "TERAAA")49 await mewbot.send_message(kek, "BAAAP")50 await mewbot.send_message(kek, "HUINN")51 await mewbot.send_message(kek, "BSDKKKK")52 await mewbot.send_message(kek, "GANDD")53 await mewbot.send_message(kek, "MARR")54 await mewbot.send_message(kek, "MARRR")55 await mewbot.send_message(kek, "KEEE")56 await mewbot.send_message(kek, "ZINDAGIIII")57 await mewbot.send_message(kek, "ANDHERIII")58 await mewbot.send_message(kek, "KARRRR")59 await mewbot.send_message(kek, "DUGAAA")60 await mewbot.send_message(kek, "MADERRRCHODDD")61 await mewbot.send_message(kek, "BEHENNN")62 await mewbot.send_message(kek, "KEEE")63 await mewbot.send_message(kek, "LODEEE")64 await mewbot.send_message(kek, "AISAAA")65 await mewbot.send_message(kek, "CHODUGAAA")66 await mewbot.send_message(kek, "BSDKKK")67 await mewbot.send_message(kek, "PHIRRR")68 await mewbot.send_message(kek, "SEEE")69 await mewbot.send_message(kek, "KISIII")70 await mewbot.send_message(kek, "SEEE GANDD")71 await mewbot.send_message(kek, " MARANEE")72 await mewbot.send_message(kek, "KEE")73 await mewbot.send_message(kek, "LAYAKKK")74 await mewbot.send_message(kek, "NAHII BACHEGAAA")75 await mewbot.send_message(kek, "BAAAP")76 await mewbot.send_message(kek, "SEEE")77 await mewbot.send_message(kek, "PANGAA")78 await mewbot.send_message(kek, "LIYA HAIII")79 await mewbot.send_message(kek, "BSDKK TUUU")80 await mewbot.send_message(kek, "ANDARRR TAK")81 await mewbot.send_message(kek, "CHUDEGGAAA")82 await mewbot.send_message(kek, "TERIII")83 await mewbot.send_message(kek, "MAAAA")84 await mewbot.send_message(kek, "KAAA RAPEE")85 await mewbot.send_message(kek, "KARR DIYAA")86 await mewbot.send_message(kek, "MADERRCHODDD")87 await mewbot.send_message(kek, "BEHENCHODD")88 await mewbot.send_message(kek, "TERAAA")89 await mewbot.send_message(kek, "ASLIII")90 await mewbot.send_message(kek, "BAAAP MAINN")91 await mewbot.send_message(kek, "HI HUINNN")92 await mewbot.send_message(kek, "BSDKK")93 await mewbot.send_message(kek, "TERI MAA")94 await mewbot.send_message(kek, "KOO KOTHEE")95 await mewbot.send_message(kek, "PE CHODAA")96 await mewbot.send_message(kek, "THAA GHODII BANAKEE")97 await mewbot.send_message(kek, "JAKEEE")98 await mewbot.send_message(kek, "PUCHHH APNI")99 await mewbot.send_message(kek, "APNI")100 await mewbot.send_message(kek, "SAMJHAA LAWDE")101 await mewbot.send_message(kek, "MAAA SEE��")102 await mewbot.send_message(kek, "TERI ASLII")103 await mewbot.send_message(kek, "BAAAP")104 await mewbot.send_message(kek, "MAIN HI HUINN")105 await mewbot.send_message(kek, "MERAA NAJAYAZ�不")...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1const wptelegram = require('wptelegram');2wptelegram.send_message('Hello World!');3const wptelegram = require('wptelegram');4wptelegram.send_message('Hello World!', {5});6### wptelegram.send_message(message, options)

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptoolkit = require('wptoolkit');2wp.send_message('username', 'message', function (err, res) {3 if (err) {4 console.log(err);5 } else {6 console.log(res);7 }8});9### wp.get_messages([options,] callback)10var wptoolkit = require('wptoolkit');11wp.get_messages(function (err, res) {12 if (err) {13 console.log(err);14 } else {15 console.log(res);16 }17});18### wp.get_message_threads([options,] callback)19var wptoolkit = require('wpt

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptelegram = require('wptelegram');2wptelegram.send_message('your message here');3var wptelegram = require('wptelegram');4wptelegram.send_message('your message here', {5});6var wptelegram = require('wptelegram');7wptelegram.send_message('your message here', function (err, result) {8 if (err) {9 console.log(err);10 } else {11 console.log(result);12 }13});14var wptelegram = require('wptelegram');15wptelegram.send_message('your message here', {16}, function (err, result) {17 if (err) {18 console.log(err);19 } else {20 console.log(result);21 }22});23* [send_message](#using-the-send_message-method)24* [send_photo](#using-the-send_photo-method)25* [send_audio](#using-the-send_audio-method)26* [send_document](#using-the-send_document-method)27* [send_sticker](#using-the-send_sticker-method)28* [send_video](#using-the-send_video-method)29* [send_voice](#using-the-send_voice-method)30* [send_location](#using-the-send_location-method)31* [send_venue](#using-the-send_venue-method)32* [send_contact](#using-the-send_contact-method)33* [send_chat_action](#using-the-send_chat_action-method)34* [get_user_profile_photos](#using-the-get_user_profile_photos-method)

Full Screen

Using AI Code Generation

copy

Full Screen

1send_message(message, chat_id);2send_message(message, chat_id, true);3send_photo(photo_url, chat_id);4send_photo(photo_url, chat_id, true);5send_document(document_url, chat_id);6send_document(document_url, chat_id, true);7send_video(video_url, chat_id);8send_video(video_url, chat_id, true);

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run wpt automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful