Commit dbd01074b857dcda85289e7e2fc54eb2a20d95d5

Authored by Nadya Sutjiadi
Committed by GitHub
1 parent d2f4c14d

Delete Chuckysb.py

Showing 1 changed file with 0 additions and 3221 deletions
Chuckysb.py deleted
1   -# -*- coding: utf-8 -*-
2   -#Chucky_Bot
3   -
4   -import LINETCR
5   -from LINETCR.lib.curve.ttypes import *
6   -from datetime import datetime
7   -from bs4 import BeautifulSoup
8   -from threading import Thread
9   -from googletrans import Translator
10   -from gtts import gTTS
11   -import time,random,sys,json,codecs,threading,glob,urllib,urllib2,urllib3,re,ast,os,subprocess,requests,tempfile
12   -
13   -nadya = LINETCR.LINE()
14   -#nadya.login(qr=True)
15   -nadya.login(token='TOKEN_KAMU_DISINI_BEIB')
16   -nadya.loginResult()
17   -print "Nadya-Login Success\n\n=====[Sukses Login]====="
18   -
19   -reload(sys)
20   -sys.setdefaultencoding('utf-8')
21   -
22   -
23   -selfMessage ="""
24   -╔═════════════════════════
25   -║ ☆☞ S E L F ☜☆
26   -╠═════════════════════════
27   -╠➩〘Hi〙
28   -╠➩〘Me〙
29   -╠➩〘Mymid〙
30   -╠➩〘Mid @〙
31   -╠➩〘SearchID: (ID LINE)〙
32   -╠➩〘Checkdate (DD/MM/YY)〙
33   -╠➩〘Kalender〙
34   -╠➩〘Steal contact〙
35   -╠➩〘Pp @〙
36   -╠➩〘Cover @〙
37   -╠➩〘Auto like〙
38   -╠➩〘Scbc Text〙
39   -╠➩〘Cbc Text〙
40   -╠➩〘Gbc Text〙
41   -╠➩〘Getbio @〙
42   -╠➩〘Getinfo @〙
43   -╠➩〘Getname @〙
44   -╠➩〘Getprofile @〙
45   -╠➩〘Getcontact @〙
46   -╠➩〘Getvid @〙
47   -╠➩〘Friendlist〙
48   -╠═════════════════════════
49   -║ 💠 By : Nadya 💠
50   -║ 〽️ line.me/ti/p/~nad_nad. 〽️
51   -╚═════════════════════════
52   -"""
53   -
54   -botMessage ="""
55   -╔═════════════════════════
56   -║ ☆☞ B O T ☜☆
57   -╠═════════════════════════
58   -╠➩〘Absen〙
59   -╠➩〘Respon〙
60   -╠➩〘Runtime〙
61   -╠➩〘Mycopy @〙
62   -╠➩〘Mybackup〙
63   -╠➩〘Mybio (Text)〙
64   -╠➩〘Myname (Text)〙
65   -╠➩〘@bye〙
66   -╠═════════════════════════
67   -║ 💠 By : Nadya 💠
68   -║ 〽️ line.me/ti/p/~nad_nad. 〽️
69   -╚═════════════════════════
70   -"""
71   -
72   -mediaMessage ="""
73   -╔═════════════════════════
74   -║ ☆☞ M E D I A ☜☆
75   -╠═════════════════════════
76   -╠➩〘Gift〙
77   -╠➩〘Gift1 @ s/d Gift10 @〙
78   -╠➩〘Giftbycontact〙
79   -╠➩〘Gif gore〙
80   -╠➩〘Google: (Text)〙
81   -╠➩〘Playstore NamaApp〙
82   -╠➩〘Fancytext: Text〙
83   -╠➩〘/musik Judul-Penyanyi〙
84   -╠➩〘/lirik Judul-Penyanyi〙
85   -╠➩〘/musrik Judul-Penyanyi〙
86   -╠➩〘/ig UrsnameInstagram〙
87   -╠➩〘Checkig UrsnameInstagram〙
88   -╠➩〘/apakah Text (Kerang Ajaib)〙
89   -╠➩〘/kapan Text (Kerang Ajaib)〙
90   -╠➩〘/hari Text (Kerang Ajaib)〙
91   -╠➩〘/berapa Text (Kerang Ajaib)〙
92   -╠➩〘/berapakah Text〙
93   -╠➩〘Youtubelink: Judul Video〙
94   -╠➩〘Youtubevideo: Judul Video〙
95   -╠➩〘Youtubesearch: Judul Video〙
96   -╠➩〘Image NamaGambar〙
97   -╠➩〘Say-id Text〙
98   -╠➩〘Say-en Text〙
99   -╠➩〘Say-jp Text〙
100   -╠➩〘Image NamaGambar〙
101   -╠➩〘Tr-id Text (Translate En Ke ID〙
102   -╠➩〘Tr-en Text (Translate ID Ke En〙
103   -╠➩〘Tr-th Text (Translate ID Ke Th〙
104   -╠➩〘Id@en Text (Translate ID Ke En〙
105   -╠➩〘Id@th Text (Translate ID Ke TH〙
106   -╠➩〘En@id Text (Translate En Ke ID〙
107   -╠═════════════════════════
108   -║ 💠 By : Nadya 💠
109   -║ 〽️ line.me/ti/p/~nad_nad. 〽️
110   -╚═════════════════════════
111   -"""
112   -
113   -groupMessage ="""
114   -╔═════════════════════════
115   -║ ☆☞ G R O U P ☜☆
116   -╠═════════════════════════
117   -╠➩〘Welcome〙
118   -╠➩〘Say welcome〙
119   -╠➩〘Invite creator〙
120   -╠➩〘Setview〙
121   -╠➩〘Viewseen〙
122   -╠➩〘Gn: (NamaGroup)〙
123   -╠➩〘Tag all〙
124   -╠➩〘Recover〙
125   -╠➩〘Cancel〙
126   -╠➩〘Cancelall〙
127   -╠➩〘Gcreator〙
128   -╠➩〘Ginfo〙
129   -╠➩〘Gurl〙
130   -╠➩〘List group〙
131   -╠➩〘Pict group: (NamaGroup)〙
132   -╠➩〘Spam: (Text)〙
133   -╠➩〘Add all〙
134   -╠➩〘Kick: (Mid)〙
135   -╠➩〘Invite: (Mid)〙
136   -╠➩〘Invite〙
137   -╠➩〘Memlist〙
138   -╠➩〘Getgroup image〙
139   -╠➩〘Urlgroup Image〙
140   -╠═════════════════════════
141   -║ 💠 By : Nadya 💠
142   -║ 〽️ line.me/ti/p/~nad_nad. 〽️
143   -╚═════════════════════════
144   -"""
145   -tjia="u14f64e139a3817afaabe27d237afb36b"
146   -
147   -setMessage ="""
148   -╔═════════════════════════
149   -║ ☆☞ S E T ☜☆
150   -╠═════════════════════════
151   -╠➩〘Sambutan on/off〙
152   -╠➩〘Url on/off〙
153   -╠➩〘Alwaysread on/off〙
154   -╠➩〘Sider on/off〙
155   -╠➩〘Contact on/off〙
156   -╠➩〘Simisimi on/off〙
157   -╠═════════════════════════
158   -║ 💠 By : Nadya 💠
159   -║ 〽️ line.me/ti/p/~nad_nad. 〽️
160   -╚═════════════════════════
161   -"""
162   -
163   -creatorMessage ="""
164   -╔═════════════════════════
165   -║ ☆☞ C R E A T O R ☜☆
166   -╠═════════════════════════
167   -╠➩〘Admin add @〙
168   -╠➩〘Admin remove @〙
169   -╠➩〘Crash〙
170   -╠➩〘Kickall〙
171   -╠➩〘Bc: (Text)〙
172   -╠➩〘Join group: (NamaGroup〙
173   -╠➩〘Leave group: (NamaGroup〙
174   -╠➩〘Leave all group〙
175   -╠➩〘Tag on/off〙
176   -╠➩〘Bot restart〙
177   -╠➩〘Turn off〙
178   -╠═════════════════════════
179   -║ 💠 By : Nadya 💠
180   -║ 〽️ line.me/ti/p/~nad_nad. 〽️
181   -╚═════════════════════════
182   -"""
183   -
184   -adminMessage ="""
185   -╔═════════════════════════
186   -║ ☆☞ A D M I N ☜☆
187   -╠═════════════════════════
188   -╠➩〘Admin list〙
189   -╠➩〘Allprotect on/off〙
190   -╠➩〘Ban〙
191   -╠➩〘Unban〙
192   -╠➩〘Ban @〙
193   -╠➩〘Unban @〙
194   -╠➩〘Ban list〙
195   -╠➩〘Clear ban〙
196   -╠➩〘Kill〙
197   -╠➩〘Kick @〙
198   -╠➩〘Set member: (Jumblah)〙
199   -╠➩〘Ban group: (NamaGroup〙
200   -╠➩〘Del ban: (NamaGroup〙
201   -╠➩〘List ban〙
202   -╠➩〘Kill ban〙
203   -╠➩〘Glist〙
204   -╠➩〘Glistmid〙
205   -╠➩〘Details group: (Gid)〙
206   -╠➩〘Cancel invite: (Gid)〙
207   -╠➩〘Invitemeto: (Gid)〙
208   -╠➩〘Acc invite〙
209   -╠➩〘Removechat〙
210   -╠➩〘Qr on/off〙
211   -╠➩〘Autokick on/off〙
212   -╠➩〘Ghost on/off〙
213   -╠➩〘Autocancel on/off〙
214   -╠➩〘Invitepro on/off〙
215   -╠➩〘Join on/off〙
216   -╠➩〘Joincancel on/off〙
217   -╠➩〘Respon on/off〙
218   -╠➩〘Responkick on/off〙
219   -╠═════════════════════════
220   -║ 💠 By : Nadya 💠
221   -║ 〽️ line.me/ti/p/~nad_nad. 〽️
222   -╚═════════════════════════
223   -"""
224   -
225   -helpMessage ="""
226   -╔═════════════════════════
227   -║ ☆☞ H E L P ☜☆
228   -╠═════════════════════════
229   -╠➩〘Help 1〙
230   -╠➩〘Help 2〙
231   -╠➩〘Help 3〙
232   -╠➩〘Help 4〙
233   -╠➩〘Help 5〙
234   -╠➩〘Help 6〙
235   -╠➩〘Help 7〙
236   -╠➩〘Owner〙
237   -╠➩〘Pap owner〙
238   -╠➩〘Admin〙
239   -╠➩〘Speed〙
240   -╠➩〘Speed test〙
241   -╠➩〘Status〙
242   -╠═════════════════════════
243   -║ 💠 By : Nadya 💠
244   -║ 〽️ line.me/ti/p/~nad_nad. 〽️
245   -╚═════════════════════════
246   -"""
247   -
248   -
249   -KAC=[nadya]
250   -mid = nadya.getProfile().mid
251   -Bots=[mid]
252   -Creator=["u14f64e139a3817afaabe27d237afb36b"]
253   -admin=["u14f64e139a3817afaabe27d237afb36b","u23ad5ddec0dd0523f9caffad673d693c","u8b2bb5214c1afc77d06901a535c23e30","u57a54b914085fea6f04c19f6fe589057","u94fb89525397a12a24df3642a7335fe7"]
254   -
255   -contact = nadya.getProfile()
256   -backup1 = nadya.getProfile()
257   -backup1.displayName = contact.displayName
258   -backup1.statusMessage = contact.statusMessage
259   -backup1.pictureStatus = contact.pictureStatus
260   -
261   -responsename = nadya.getProfile().displayName
262   -
263   -
264   -wait = {
265   - "LeaveRoom":True,
266   - "AutoJoin":False,
267   - "AutoJoinCancel":True,
268   - "memberscancel":30,
269   - "Members":1,
270   - "AutoCancel":False,
271   - "AutoKick":True,
272   - 'pap':{},
273   - 'invite':{},
274   - 'steal':{},
275   - 'gift':{},
276   - 'likeOn':{},
277   - 'detectMention':True,
278   - 'kickMention':False,
279   - 'timeline':True,
280   - "Timeline":True,
281   - "comment":"Bot Auto Like ©By : Nadya\nContact Me : 👉 line.me/ti/p/~nad_nad.",
282   - "commentOn":True,
283   - "commentBlack":{},
284   - "message":"Thx For Add Me (^_^)\nInvite Me To Your Group ヘ(^_^)ヘ",
285   - "blacklist":{},
286   - "wblacklist":False,
287   - "dblacklist":False,
288   - "Qr":False,
289   - "Contact":False,
290   - "Sambutan":True,
291   - "Ghost":False,
292   - "inviteprotect":False,
293   - "alwaysRead":False,
294   - "Sider":{},
295   - "Simi":{},
296   - "lang":"JP",
297   - "BlGroup":{}
298   -}
299   -
300   -settings = {
301   - "simiSimi":{}
302   - }
303   -
304   -cctv = {
305   - "cyduk":{},
306   - "point":{},
307   - "sidermem":{}
308   -}
309   -
310   -wait2 = {
311   - "readPoint":{},
312   - "readMember":{},
313   - "setTime":{},
314   - "ROM":{}
315   - }
316   -
317   -setTime = {}
318   -setTime = wait2['setTime']
319   -mulai = time.time()
320   -
321   -def download_page(url):
322   - version = (3,0)
323   - cur_version = sys.version_info
324   - if cur_version >= version:
325   - import urllib,request
326   - try:
327   - headers = {}
328   - headers['User-Agent'] = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"
329   - req = urllib,request.Request(url, headers = headers)
330   - resp = urllib,request.urlopen(req)
331   - respData = str(resp.read())
332   - return respData
333   - except Exception as e:
334   - print(str(e))
335   - else:
336   - import urllib2
337   - try:
338   - headers = {}
339   - headers['User-Agent'] = "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.27 Safari/537.17"
340   - req = urllib2.Request(url, headers = headers)
341   - response = urllib2.urlopen(req)
342   - page = response.read()
343   - return page
344   - except:
345   - return"Page Not found"
346   -
347   -
348   -def _images_get_next_item(s):
349   - start_line = s.find('rg_di')
350   - if start_line == -1:
351   - end_quote = 0
352   - link = "no_links"
353   - return link, end_quote
354   - else:
355   - start_line = s.find('"class="rg_meta"')
356   - start_content = s.find('"ou"',start_line+90)
357   - end_content = s.find(',"ow"',start_content-90)
358   - content_raw = str(s[start_content+6:end_content-1])
359   - return content_raw, end_content
360   -
361   -
362   -def _images_get_all_items(page):
363   - items = []
364   - while True:
365   - item, end_content = _images_get_next_item(page)
366   - if item == "no_links":
367   - break
368   - else:
369   - items.append(item)
370   - time.sleep(0.1)
371   - page = page[end_content:]
372   - return items
373   -
374   -def waktu(secs):
375   - mins, secs = divmod(secs,60)
376   - hours, mins = divmod(mins,60)
377   - return '%02d Jam %02d Menit %02d Detik' % (hours, mins, secs)
378   -
379   -def cms(string, commands): #/XXX, >XXX, ;XXX, ^XXX, %XXX, $XXX...
380   - tex = ["+","@","/",">",";","^","%","$","^","サテラ:","サテラ:","サテラ:","サテラ:"]
381   - for texX in tex:
382   - for command in commands:
383   - if string ==command:
384   - return True
385   - return False
386   -
387   -def upload_tempimage(client):
388   - '''
389   - Upload a picture of a kitten. We don't ship one, so get creative!
390   - '''
391   - config = {
392   - 'album': album,
393   - 'name': 'bot auto upload',
394   - 'title': 'bot auto upload',
395   - 'description': 'bot auto upload'
396   - }
397   -
398   - print("Uploading image... ")
399   - image = client.upload_from_path(image_path, config=config, anon=False)
400   - print("Done")
401   - print()
402   -
403   - return image
404   -
405   -def sendAudio(self, to_, path):
406   - M = Message()
407   - M.text = None
408   - M.to = to_
409   - M.contentMetadata = None
410   - M.contentPreview = None
411   - M.contentType = 3
412   - M_id = self._client.sendMessage(0,M).id
413   - files = {
414   - 'file': open(path, 'rb'),
415   - }
416   -
417   -def sendMessage(to, text, contentMetadata={}, contentType=0):
418   - mes = Message()
419   - mes.to, mes.from_ = to, profile.mid
420   - mes.text = text
421   - mes.contentType, mes.contentMetadata = contentType, contentMetadata
422   - if to not in messageReq:
423   - messageReq[to] = -1
424   - messageReq[to] += 1
425   -
426   -def sendImage(self, to_, path):
427   - M = Message(to=to_, text=None, contentType = 1)
428   - M.contentMetadata = None
429   - M.contentPreview = None
430   - M2 = self._client.sendMessage(0,M)
431   - M_id = M2.id
432   - files = {
433   - 'file': open(path, 'rb'),
434   - }
435   - params = {
436   - 'name': 'media',
437   - 'oid': M_id,
438   - 'size': len(open(path, 'rb').read()),
439   - 'type': 'image',
440   - 'ver': '1.0',
441   - }
442   - data = {
443   - 'params': json.dumps(params)
444   - }
445   - r = self.post_content('https://obs-sg.line-apps.com/talk/m/upload.nhn', data=data, files=files)
446   - if r.status_code != 201:
447   - raise Exception('Upload image failure.')
448   - return True
449   -
450   -
451   -def sendImageWithURL(self, to_, url):
452   - path = '%s/pythonLine-%i.data' % (tempfile.gettempdir(), randint(0, 9))
453   - r = requests.get(url, stream=True)
454   - if r.status_code == 200:
455   - with open(path, 'w') as f:
456   - shutil.copyfileobj(r.raw, f)
457   - else:
458   - raise Exception('Download image failure.')
459   - try:
460   - self.sendImage(to_, path)
461   - except:
462   - try:
463   - self.sendImage(to_, path)
464   - except Exception as e:
465   - raise e
466   -
467   -def sendAudio(self, to_, path):
468   - M = Message()
469   - M.text = None
470   - M.to = to_
471   - M.contentMetadata = None
472   - M.contentPreview = None
473   - M.contentType = 3
474   - M_id = self._client.sendMessage(0,M).id
475   - files = {
476   - 'file': open(path, 'rb'),
477   - }
478   - params = {
479   - 'name': 'media',
480   - 'oid': M_id,
481   - 'size': len(open(path, 'rb').read()),
482   - 'type': 'audio',
483   - 'ver': '1.0',
484   - }
485   - data = {
486   - 'params': json.dumps(params)
487   - }
488   - r = self.post_content('https://os.line.naver.jp/talk/m/upload.nhn', data=data, files=files)
489   - if r.status_code != 201:
490   - raise Exception('Upload audio failure.')
491   - return True
492   -
493   -def sendAudioWithURL(self, to_, url):
494   - path = self.downloadFileWithURL(url)
495   - try:
496   - self.sendAudio(to_, path)
497   - except Exception as e:
498   - raise Exception(e)
499   -
500   -def sendAudioWithUrl(self, to_, url):
501   - path = '%s/pythonLine-%1.data' % (tempfile.gettempdir(), randint(0, 9))
502   - r = requests.get(url, stream=True, verify=False)
503   - if r.status_code == 200:
504   - with open(path, 'w') as f:
505   - shutil.copyfileobj(r.raw, f)
506   - else:
507   - raise Exception('Download audio failure.')
508   - try:
509   - self.sendAudio(to_, path)
510   - except Exception as e:
511   - raise e
512   -
513   -def downloadFileWithURL(self, fileUrl):
514   - saveAs = '%s/pythonLine-%i.data' % (tempfile.gettempdir(), randint(0, 9))
515   - r = self.get_content(fileUrl)
516   - if r.status_code == 200:
517   - with open(saveAs, 'wb') as f:
518   - shutil.copyfileobj(r.raw, f)
519   - return saveAs
520   - else:
521   - raise Exception('Download file failure.')
522   -
523   -def restart_program():
524   - python = sys.executable
525   - os.execl(python, python, * sys.argv)
526   -
527   -
528   -def bot(op):
529   - try:
530   -
531   - if op.type == 0:
532   - return
533   -
534   - if op.type == 5:
535   - if wait["autoAdd"] == True:
536   - nadya.findAndAddContactsByMid(op.param1)
537   - if(wait["message"]in[""," ","\n",None]):
538   - pass
539   - else:
540   - nadya.sendText(op.param1,str(wait["message"]))
541   -
542   -
543   - if op.type == 55:
544   - try:
545   - group_id = op.param1
546   - user_id=op.param2
547   - subprocess.Popen('echo "'+ user_id+'|'+str(op.createdTime)+'" >> dataSeen/%s.txt' % group_id, shell=True, stdout=subprocess.PIPE, )
548   - except Exception as e:
549   - print e
550   -
551   - if op.type == 55:
552   - try:
553   - if cctv['cyduk'][op.param1]==True:
554   - if op.param1 in cctv['point']:
555   - Name = nadya.getContact(op.param2).displayName
556   - if Name in cctv['sidermem'][op.param1]:
557   - pass
558   - else:
559   - cctv['sidermem'][op.param1] += "\n• " + Name
560   - if " " in Name:
561   - nick = Name.split(' ')
562   - if len(nick) == 2:
563   - nadya.sendText(op.param1, "Haii " + "☞ " + nick[0] + " ☜" + "\nNgintip Aja Niih. . .\nChat Kek Idiih (-__-) ")
564   - else:
565   - nadya.sendText(op.param1, "Haii " + "☞ " + nick[1] + " ☜" + "\nBetah Banget Jadi Penonton. . .\nChat Napa (-__-) ")
566   - else:
567   - nadya.sendText(op.param1, "Haii " + "☞ " + Name + " ☜" + "\nNgapain Kak Ngintip Aja???\nSini Gabung Chat... ")
568   - else:
569   - pass
570   - else:
571   - pass
572   - except:
573   - pass
574   -
575   - else:
576   - pass
577   -
578   -
579   - if op.type == 22:
580   - nadya.leaveRoom(op.param1)
581   -
582   - if op.type == 21:
583   - nadya.leaveRoom(op.param1)
584   -
585   -
586   - if op.type == 13:
587   - print op.param3
588   - if op.param3 in mid:
589   - if op.param2 in Creator:
590   - nadya.acceptGroupInvitation(op.param1)
591   -
592   -
593   - if mid in op.param3:
594   - if wait["AutoJoinCancel"] == True:
595   - G = nadya.getGroup(op.param1)
596   - if len(G.members) <= wait["memberscancel"]:
597   - nadya.acceptGroupInvitation(op.param1)
598   - nadya.sendText(op.param1,"Maaf " + nadya.getContact(op.param2).displayName + "\nMember Kurang Dari 30 Orang\nUntuk Info, Silahkan Chat Owner Kami!")
599   - nadya.leaveGroup(op.param1)
600   - else:
601   - nadya.acceptGroupInvitation(op.param1)
602   - nadya.sendText(op.param1,"☆Ketik ☞Help☜ Untuk Bantuan☆\n☆Harap Gunakan Dengan Bijak ^_^ ☆")
603   -
604   -
605   - if mid in op.param3:
606   - if wait["AutoJoin"] == True:
607   - G = nadya.getGroup(op.param1)
608   - if len(G.members) <= wait["Members"]:
609   - nadya.rejectGroupInvitation(op.param1)
610   - else:
611   - nadya.acceptGroupInvitation(op.param1)
612   - nadya.sendText(op.param1,"☆Ketik ☞Help☜ Untuk Bantuan☆\n☆Harap Gunakan Dengan Bijak ^_^ ☆")
613   - else:
614   - if wait["AutoCancel"] == True:
615   - if op.param3 in Bots:
616   - pass
617   - else:
618   - nadya.cancelGroupInvitation(op.param1, [op.param3])
619   - else:
620   - if op.param3 in wait["blacklist"]:
621   - nadya.cancelGroupInvitation(op.param1, [op.param3])
622   - nadya.sendText(op.param1, "Blacklist Detected")
623   - else:
624   - pass
625   -
626   - if op.type == 13:
627   - if op.param2 not in Creator:
628   - if op.param2 not in admin:
629   - if op.param2 not in Bots:
630   - if op.param2 in Creator:
631   - if op.param2 in admin:
632   - if op.param2 in Bots:
633   - pass
634   - elif wait["inviteprotect"] == True:
635   - wait ["blacklist"][op.param2] = True
636   - nadya.cancelGroupInvitation(op.param1,[op.param3])
637   - nadya.kickoutFromGroup(op.param1,[op.param2])
638   - if op.param2 not in Creator:
639   - if op.param2 not in admin:
640   - if op.param2 not in Bots:
641   - if op.param2 in Creator:
642   - if op.param2 in admin:
643   - if op.param2 in Bots:
644   - pass
645   -
646   - if op.type == 19:
647   - if wait["AutoKick"] == True:
648   - try:
649   - if op.param3 in Creator:
650   - if op.param3 in admin:
651   - if op.param3 in Bots:
652   - pass
653   - if op.param2 in Creator:
654   - if op.param2 in admin:
655   - if op.param2 in Bots:
656   - pass
657   - else:
658   - nadya.kickoutFromGroup(op.param1,[op.param2])
659   - if op.param2 in wait["blacklist"]:
660   - pass
661   - else:
662   - nadya.inviteIntoGroup(op.param1,[op.param3])
663   - except:
664   - try:
665   - if op.param2 not in Creator:
666   - if op.param2 not in admin:
667   - if op.param2 not in Bots:
668   - nadya.kickoutFromGroup(op.param1,[op.param2])
669   - if op.param2 in wait["blacklist"]:
670   - pass
671   - else:
672   - nadya.inviteIntoGroup(op.param1,[op.param3])
673   - except:
674   - print ("client Kick regulation or Because it does not exist in the group\ngid=["+op.param1+"]\nmid=["+op.param2+"]")
675   - if op.param2 in wait["blacklist"]:
676   - pass
677   - else:
678   - if op.param2 in Creator:
679   - if op.param2 in admin:
680   - if op.param2 in Bots:
681   - pass
682   - else:
683   - wait["blacklist"][op.param2] = True
684   - if op.param2 in wait["blacklist"]:
685   - pass
686   - else:
687   - if op.param2 in Creator:
688   - if op.param2 in admin:
689   - if op.param2 in Bots:
690   - pass
691   - else:
692   - wait["blacklist"][op.param2] = True
693   - else:
694   - pass
695   -
696   -
697   - if mid in op.param3:
698   - if op.param2 in Creator:
699   - if op.param2 in Bots:
700   - pass
701   - try:
702   - nadya.kickoutFromGroup(op.param1,[op.param2])
703   - nadya.kickoutFromGroup(op.param1,[op.param2])
704   - except:
705   - try:
706   - nadya.kickoutFromGroup(op.param1,[op.param2])
707   - except:
708   - print ("client Kick regulation or Because it does not exist in the group\ngid=["+op.param1+"]\nmid=["+op.param2+"]")
709   - if op.param2 in wait["blacklist"]:
710   - pass
711   - else:
712   - if op.param2 in Bots:
713   - pass
714   - if op.param2 in wait["blacklist"]:
715   - pass
716   - else:
717   - if op.param2 in Bots:
718   - pass
719   - else:
720   - wait["blacklist"][op.param2] = True
721   -
722   -
723   - if Creator in op.param3:
724   - if admin in op.param3:
725   - if op.param2 in Bots:
726   - pass
727   - try:
728   - nadya.kickoutFromGroup(op.param1,[op.param2])
729   - nadya.kickoutFromGroup(op.param1,[op.param2])
730   - except:
731   - try:
732   - if op.param2 not in Bots:
733   - nadya.kickoutFromGroup(op.param1,[op.param2])
734   - if op.param2 in wait["blacklist"]:
735   - pass
736   - else:
737   - nadya.inviteIntoGroup(op.param1,[op.param3])
738   - except:
739   - print ("client Kick regulation or Because it does not exist in the group\ngid=["+op.param1+"]\nmid=["+op.param2+"]")
740   - if op.param2 in wait["blacklist"]:
741   - pass
742   - if op.param2 in wait["whitelist"]:
743   - pass
744   - else:
745   - wait["blacklist"][op.param2] = True
746   - nadya.inviteIntoGroup(op.param1,[op.param3])
747   - if op.param2 in wait["blacklist"]:
748   - pass
749   - if op.param2 in wait["whitelist"]:
750   - pass
751   - else:
752   - wait["blacklist"][op.param2] = True
753   -
754   -
755   - if op.type == 11:
756   - if wait["Qr"] == True:
757   - if op.param2 in Creator:
758   - if op.param2 in admin:
759   - if op.param2 in Bots:
760   - pass
761   - else:
762   - nadya.kickoutFromGroup(op.param1,[op.param2])
763   - else:
764   - pass
765   -
766   -
767   - if op.type == 17:
768   - if wait["Sambutan"] == True:
769   - if op.param2 in Creator:
770   - return
771   - ginfo = nadya.getGroup(op.param1)
772   - contact = nadya.getContact(op.param2)
773   - image = "http://dl.profile.line-cdn.net/" + contact.pictureStatus
774   - nadya.sendText(op.param1,"Hallo " + nadya.getContact(op.param2).displayName + "\nWelcome To ☞ " + str(ginfo.name) + " ☜" + "\nBudayakan Cek Note\nDan Semoga Betah Disini ^_^")
775   - nadya.sendImageWithURL(op.param1,image)
776   - print "MEMBER JOIN TO GROUP"
777   -
778   - if op.type == 15:
779   - if wait["Sambutan"] == True:
780   - if op.param2 in Creator:
781   - return
782   - nadya.sendText(op.param1,"Good Bye " + nadya.getContact(op.param2).displayName + "\nSee You Next Time . . . (p′︵‵。) 🤗")
783   - nadya.inviteIntoGroup(op.param1,[op.param2])
784   - print "MEMBER HAS LEFT THE GROUP"
785   -
786   - if op.type == 26:
787   - msg = op.message
788   - if msg.to in settings["simiSimi"]:
789   - if settings["simiSimi"][msg.to] == True:
790   - if msg.text is not None:
791   - text = msg.text
792   - r = requests.get("http://api.ntcorp.us/chatbot/v1/?text=" + text.replace(" ","+") + "&key=beta1.nt")
793   - data = r.text
794   - data = json.loads(data)
795   - if data['status'] == 200:
796   - if data['result']['result'] == 100:
797   - nadya.sendText(msg.to,data['result']['response'].encode('utf-8'))
798   -
799   - if 'MENTION' in msg.contentMetadata.keys() != None:
800   - if wait["kickMention"] == True:
801   - contact = nadya.getContact(msg.from_)
802   - cName = contact.displayName
803   - balas = ["Aku Bilang Jangan Ngetag Lagi " + cName + "\nAku Kick Kamu! Sorry, Byee!!!"]
804   - ret_ = random.choice(balas)
805   - name = re.findall(r'@(\w+)', msg.text)
806   - mention = ast.literal_eval(msg.contentMetadata['MENTION'])
807   - mentionees = mention['MENTIONEES']
808   - for mention in mentionees:
809   - if mention['M'] in Bots:
810   - nadya.sendText(msg.to,ret_)
811   - nadya.kickoutFromGroup(msg.to,[msg.from_])
812   - break
813   -
814   - if 'MENTION' in msg.contentMetadata.keys() != None:
815   - if wait["detectMention"] == True:
816   - contact = nadya.getContact(msg.from_)
817   - cName = contact.displayName
818   - balas = ["Dont Tag!! Lagi Sibuk",cName + " Ngapain Ngetag?",cName + " Nggak Usah Tag-Tag! Kalo Penting Langsung Pc Aja","-_-","Dia Lagi Off", cName + " Kenapa Tag Saya?","Dia Lagi Tidur\nJangan Di Tag " + cName, "Jangan Suka Tag Gua " + cName, "Kamu Siapa " + cName + "?", "Ada Perlu Apa " + cName + "?","Woii " + cName + " Jangan Ngetag, Riibut!"]
819   - ret_ = random.choice(balas)
820   - name = re.findall(r'@(\w+)', msg.text)
821   - mention = ast.literal_eval(msg.contentMetadata['MENTION'])
822   - mentionees = mention['MENTIONEES']
823   - for mention in mentionees:
824   - if mention['M'] in Bots:
825   - nadya.sendText(msg.to,ret_)
826   - break
827   -
828   -
829   - if op.type == 25:
830   - msg = op.message
831   -
832   -
833   - if wait["alwaysRead"] == True:
834   - if msg.toType == 0:
835   - nadya.sendChatChecked(msg.from_,msg.id)
836   - else:
837   - nadya.sendChatChecked(msg.to,msg.id)
838   -
839   - if msg.contentType == 16:
840   - if wait['likeOn'] == True:
841   - url = msg.contentMetadata["postEndUrl"]
842   - nadya.like(url[25:58], url[66:], likeType=1005)
843   - nadya.comment(url[25:58], url[66:], wait["comment"])
844   - nadya.sendText(msg.to,"Like Success")
845   - wait['likeOn'] = False
846   -
847   -
848   - if msg.contentType == 13:
849   - if wait["wblacklist"] == True:
850   - if msg.contentMetadata["mid"] not in admin:
851   - if msg.contentMetadata["mid"] in wait["blacklist"]:
852   - nadya.sendText(msg.to,"Sudah")
853   - wait["wblacklist"] = False
854   - else:
855   - wait["blacklist"][msg.contentMetadata["mid"]] = True
856   - wait["wblacklist"] = False
857   - nadya.sendText(msg.to,"Ditambahkan")
858   - else:
859   - nadya.sendText(msg.to,"Admin Detected~")
860   -
861   -
862   - elif wait["dblacklist"] == True:
863   - if msg.contentMetadata["mid"] in wait["blacklist"]:
864   - del wait["blacklist"][msg.contentMetadata["mid"]]
865   - nadya.sendText(msg.to,"Terhapus")
866   - wait["dblacklist"] = False
867   -
868   - else:
869   - wait["dblacklist"] = False
870   - nadya.sendText(msg.to,"Tidak Ada Black List")
871   -
872   -
873   -
874   - elif wait["Contact"] == True:
875   - msg.contentType = 0
876   - nadya.sendText(msg.to,msg.contentMetadata["mid"])
877   - if 'displayName' in msg.contentMetadata:
878   - contact = nadya.getContact(msg.contentMetadata["mid"])
879   - try:
880   - cu = nadya.channel.getCover(msg.contentMetadata["mid"])
881   - except:
882   - cu = ""
883   - nadya.sendText(msg.to,"Nama:\n" + msg.contentMetadata["displayName"] + "\n\nMid:\n" + msg.contentMetadata["mid"] + "\n\nStatus:\n" + contact.statusMessage + "\n\nPhoto Profile:\nhttp://dl.profile.line-cdn.net/" + contact.pictureStatus + "\n\nPhoto Cover:\n" + str(cu))
884   - else:
885   - contact = nadya.getContact(msg.contentMetadata["mid"])
886   - try:
887   - cu = nadya.channel.getCover(msg.contentMetadata["mid"])
888   - except:
889   - cu = ""
890   - nadya.sendText(msg.to,"Nama:\n" + msg.contentMetadata["displayName"] + "\n\nMid:\n" + msg.contentMetadata["mid"] + "\n\nStatus:\n" + contact.statusMessage + "\n\nPhoto Profile:\nhttp://dl.profile.line-cdn.net/" + contact.pictureStatus + "\n\nPhoto Cover:\n" + str(cu))
891   -
892   -
893   -
894   - elif msg.text == "Ginfo":
895   - if msg.toType == 2:
896   - ginfo = nadya.getGroup(msg.to)
897   - try:
898   - gCreator = ginfo.creator.displayName
899   - except:
900   - gCreator = "Error"
901   - if wait["lang"] == "JP":
902   - if ginfo.invitee is None:
903   - sinvitee = "0"
904   - else:
905   - sinvitee = str(len(ginfo.invitee))
906   - if ginfo.preventJoinByTicket == True:
907   - u = "close"
908   - else:
909   - u = "open"
910   - nadya.sendText(msg.to,"[Group name]\n" + str(ginfo.name) + "\n\n[Gid]\n" + msg.to + "\n\n[Group creator]\n" + gCreator + "\n\n[Profile status]\nhttp://dl.profile.line.naver.jp/" + ginfo.pictureStatus + "\n\nMembers:" + str(len(ginfo.members)) + "members\nPending:" + sinvitee + "people\nURL:" + u + "it is inside")
911   - else:
912   - nadya.sendText(msg.to,"[group name]\n" + str(ginfo.name) + "\n[gid]\n" + msg.to + "\n[group creator]\n" + gCreator + "\n[profile status]\nhttp://dl.profile.line.naver.jp/" + ginfo.pictureStatus)
913   - else:
914   - if wait["lang"] == "JP":
915   - nadya.sendText(msg.to,"Can not be used outside the group")
916   - else:
917   - nadya.sendText(msg.to,"Not for use less than group")
918   -
919   -
920   -
921   - elif msg.text is None:
922   - return
923   -
924   - elif msg.text in ["Creator","Owner"]:
925   - msg.contentType = 13
926   - msg.contentMetadata = {'mid': tjia}
927   - nadya.sendMessage(msg)
928   - nadya.sendText(msg.to,"Itu Majikan Kami (^_^)")
929   -
930   - elif msg.text in ["Admin","admin"]:
931   - msg.contentType = 13
932   - admin1 = "u23ad5ddec0dd0523f9caffad673d693c"
933   - admin2 = "u8b2bb5214c1afc77d06901a535c23e30"
934   - admin3 = "u57a54b914085fea6f04c19f6fe589057"
935   - msg.contentMetadata = {'mid': tjia}
936   - nadya.sendMessage(msg)
937   - msg.contentMetadata = {'mid': admin1}
938   - nadya.sendMessage(msg)
939   - msg.contentMetadata = {'mid': admin2}
940   - nadya.sendMessage(msg)
941   - msg.contentMetadata = {'mid': admin3}
942   - nadya.sendMessage(msg)
943   - nadya.sendText(msg.to,"Itu Admin Kami (^_^)")
944   -
945   -
946   -
947   - elif "Admin add @" in msg.text:
948   - if msg.from_ in Creator:
949   - print "[Command]Admin add executing"
950   - _name = msg.text.replace("Admin add @","")
951   - _nametarget = _name.rstrip(' ')
952   - gs = nadya.getGroup(msg.to)
953   - targets = []
954   - for g in gs.members:
955   - if _nametarget == g.displayName:
956   - targets.append(g.mid)
957   - if targets == []:
958   - nadya.sendText(msg.to,"Contact Tidak Di Temukan")
959   - else:
960   - for target in targets:
961   - try:
962   - admin.append(target)
963   - nadya.sendText(msg.to,"Admin Chucky Ditambahkan")
964   - except:
965   - pass
966   - print "[Command]Admin add executed"
967   - else:
968   - nadya.sendText(msg.to,"Command Denied.")
969   - nadya.sendText(msg.to,"Creator Permission Required.")
970   -
971   - elif "Admin remove @" in msg.text:
972   - if msg.from_ in Creator:
973   - print "[Command]Admin Remove Executing"
974   - _name = msg.text.replace("Admin remove @","")
975   - _nametarget = _name.rstrip(' ')
976   - gs = nadya.getGroup(msg.to)
977   - targets = []
978   - for g in gs.members:
979   - if _nametarget == g.displayName:
980   - targets.append(g.mid)
981   - if targets == []:
982   - nadya.sendText(msg.to,"Contact Tidak Di Temukan")
983   - else:
984   - for target in targets:
985   - try:
986   - admin.remove(target)
987   - nadya.sendText(msg.to,"Admin Chucky Dihapus")
988   - except:
989   - pass
990   - print "[Command]Admin remove executed"
991   - else:
992   - nadya.sendText(msg.to,"Command Denied.")
993   - nadya.sendText(msg.to,"Creator Permission Required.")
994   -
995   - elif msg.text in ["Admin list","admin list","List admin"]:
996   - if admin == []:
997   - nadya.sendText(msg.to,"The Admin List Is Empty")
998   - else:
999   - nadya.sendText(msg.to,"Tunggu...")
1000   - mc = "╔═════════════════════════\n║ ☆☞ ADMIN CHUCKY ☜☆\n╠═════════════════════════\n"
1001   - for mi_d in admin:
1002   - mc += "╠••> " +nadya.getContact(mi_d).displayName + "\n"
1003   - nadya.sendText(msg.to,mc + "╚═════════════════════════")
1004   - print "[Command]Admin List executed"
1005   -
1006   -
1007   -
1008   -
1009   - elif msg.text in ["Group creator","Gcreator","gcreator"]:
1010   - ginfo = nadya.getGroup(msg.to)
1011   - gCreator = ginfo.creator.mid
1012   - msg.contentType = 13
1013   - msg.contentMetadata = {'mid': gCreator}
1014   - nadya.sendMessage(msg)
1015   - nadya.sendText(msg.to,"Itu Yang Buat Grup Ini")
1016   -
1017   -
1018   -
1019   - elif msg.contentType == 16:
1020   - if wait["Timeline"] == True:
1021   - msg.contentType = 0
1022   - msg.text = "post URL\n" + msg.contentMetadata["postEndUrl"]
1023   - nadya.sendText(msg.to,msg.text)
1024   -
1025   -
1026   - if msg.contentType == 13:
1027   - if wait["steal"] == True:
1028   - _name = msg.contentMetadata["displayName"]
1029   - copy = msg.contentMetadata["mid"]
1030   - groups = nadya.getGroup(msg.to)
1031   - pending = groups.invitee
1032   - targets = []
1033   - for s in groups.members:
1034   - if _name in s.displayName:
1035   - print "[Target] Stealed"
1036   - break
1037   - else:
1038   - targets.append(copy)
1039   - if targets == []:
1040   - pass
1041   - else:
1042   - for target in targets:
1043   - try:
1044   - nadya.findAndAddContactsByMid(target)
1045   - contact = nadya.getContact(target)
1046   - cu = nadya.channel.getCover(target)
1047   - path = str(cu)
1048   - image = "http://dl.profile.line-cdn.net/" + contact.pictureStatus
1049   - nadya.sendText(msg.to,"Nama :\n" + contact.displayName + "\n\nMid :\n" + msg.contentMetadata["mid"] + "\n\nBio :\n" + contact.statusMessage)
1050   - nadya.sendText(msg.to,"Profile Picture " + contact.displayName)
1051   - nadya.sendImageWithURL(msg.to,image)
1052   - nadya.sendText(msg.to,"Cover " + contact.displayName)
1053   - nadya.sendImageWithURL(msg.to,path)
1054   - wait["steal"] = False
1055   - break
1056   - except:
1057   - pass
1058   -
1059   -
1060   - if msg.contentType == 13:
1061   - if wait["gift"] == True:
1062   - _name = msg.contentMetadata["displayName"]
1063   - copy = msg.contentMetadata["mid"]
1064   - groups = nadya.getGroup(msg.to)
1065   - pending = groups.invitee
1066   - targets = []
1067   - for s in groups.members:
1068   - if _name in s.displayName:
1069   - print "[Target] Gift"
1070   - break
1071   - else:
1072   - targets.append(copy)
1073   - if targets == []:
1074   - pass
1075   - else:
1076   - for target in targets:
1077   - try:
1078   - nadya.sendText(msg.to,"Gift Sudah Terkirim!")
1079   - msg.contentType = 9
1080   - msg.contentMetadata= {'PRDTYPE': 'STICKER',
1081   - 'STKVER': '1',
1082   - 'MSGTPL': '1',
1083   - 'STKPKGID': '1296261'}
1084   - msg.to = target
1085   - msg.text = None
1086   - nadya.sendMessage(msg)
1087   - wait['gift'] = False
1088   - break
1089   - except:
1090   - msg.contentMetadata = {'mid': target}
1091   - wait["gift"] = False
1092   - break
1093   -
1094   -
1095   - if msg.contentType == 13:
1096   - if wait['invite'] == True:
1097   - _name = msg.contentMetadata["displayName"]
1098   - invite = msg.contentMetadata["mid"]
1099   - groups = nadya.getGroup(msg.to)
1100   - pending = groups.invitee
1101   - targets = []
1102   - for s in groups.members:
1103   - if _name in s.displayName:
1104   - nadya.sendText(msg.to, _name + " Berada DiGrup Ini")
1105   - else:
1106   - targets.append(invite)
1107   - if targets == []:
1108   - pass
1109   - else:
1110   - for target in targets:
1111   - try:
1112   - nadya.findAndAddContactsByMid(target)
1113   - nadya.inviteIntoGroup(msg.to,[target])
1114   - nadya.sendText(msg.to,"Invite " + _name)
1115   - wait['invite'] = False
1116   - break
1117   - except:
1118   - nadya.sendText(msg.to,"Limit Invite")
1119   - wait['invite'] = False
1120   - break
1121   -
1122   -
1123   - elif msg.text in ["Key 1","help 1","Help 1"]:
1124   - nadya.sendText(msg.to,creatorMessage)
1125   -
1126   - elif msg.text in ["Key 2","help 2","Help 2"]:
1127   - nadya.sendText(msg.to,groupMessage)
1128   -
1129   - elif msg.text in ["Key","help","Help"]:
1130   - nadya.sendText(msg.to,helpMessage)
1131   -
1132   - elif msg.text in ["Key 3","help 3","Help 3"]:
1133   - nadya.sendText(msg.to,selfMessage)
1134   -
1135   - elif msg.text in ["Key 4","help 4","Help 4"]:
1136   - nadya.sendText(msg.to,botMessage)
1137   -
1138   - elif msg.text in ["Key 5","help 5","Help 5"]:
1139   - nadya.sendText(msg.to,setMessage)
1140   -
1141   - elif msg.text in ["Key 6","help 6","Help 6"]:
1142   - nadya.sendText(msg.to,mediaMessage)
1143   -
1144   - elif msg.text in ["Key 7","help 7","Help 7"]:
1145   - nadya.sendText(msg.to,adminMessage)
1146   -
1147   -
1148   -
1149   - elif msg.text in ["List group"]:
1150   - gid = nadya.getGroupIdsJoined()
1151   - h = ""
1152   - jml = 0
1153   - for i in gid:
1154   - gn = nadya.getGroup(i).name
1155   - h += "♦【%s】\n" % (gn)
1156   - jml += 1
1157   - nadya.sendText(msg.to,"=======[List Group]=======\n"+ h +"\nTotal Group: "+str(jml))
1158   -
1159   - elif "Ban group: " in msg.text:
1160   - grp = msg.text.replace("Ban group: ","")
1161   - gid = nadya.getGroupIdsJoined()
1162   - if msg.from_ in admin:
1163   - for i in gid:
1164   - h = nadya.getGroup(i).name
1165   - if h == grp:
1166   - wait["BlGroup"][i]=True
1167   - nadya.sendText(msg.to, "Success Ban Group : "+grp)
1168   - else:
1169   - pass
1170   - else:
1171   - nadya.sendText(msg.to, "Khusus Nadya")
1172   -
1173   - elif msg.text in ["List ban","List ban group"]:
1174   - if msg.from_ in admin:
1175   - if wait["BlGroup"] == {}:
1176   - nadya.sendText(msg.to,"Tidak Ada")
1177   - else:
1178   - mc = ""
1179   - for gid in wait["BlGroup"]:
1180   - mc += "-> " +nadya.getGroup(gid).name + "\n"
1181   - nadya.sendText(msg.to,"===[Ban Group]===\n"+mc)
1182   - else:
1183   - nadya.sendText(msg.to, "Khusus Admin")
1184   -
1185   - elif msg.text in ["Del ban: "]:
1186   - if msg.from_ in admin:
1187   - ng = msg.text.replace("Del ban: ","")
1188   - for gid in wait["BlGroup"]:
1189   - if nadya.getGroup(gid).name == ng:
1190   - del wait["BlGroup"][gid]
1191   - nadya.sendText(msg.to, "Success del ban "+ng)
1192   - else:
1193   - pass
1194   - else:
1195   - nadya.sendText(msg.to, "Khusus Nadya")
1196   -
1197   - elif "Join group: " in msg.text:
1198   - ng = msg.text.replace("Join group: ","")
1199   - gid = nadya.getGroupIdsJoined()
1200   - try:
1201   - if msg.from_ in Creator:
1202   - for i in gid:
1203   - h = nadya.getGroup(i).name
1204   - if h == ng:
1205   - nadya.inviteIntoGroup(i,[Creator])
1206   - nadya.sendText(msg.to,"Success Join To ["+ h +"] Group")
1207   - else:
1208   - pass
1209   - else:
1210   - nadya.sendText(msg.to,"Khusus Nadya")
1211   - except Exception as e:
1212   - nadya.sendText(msg.to, str(e))
1213   -
1214   - elif "Leave group: " in msg.text:
1215   - ng = msg.text.replace("Leave group: ","")
1216   - gid = nadya.getGroupIdsJoined()
1217   - if msg.from_ in Creator:
1218   - for i in gid:
1219   - h = nadya.getGroup(i).name
1220   - if h == ng:
1221   - nadya.sendText(i,"Bot Di Paksa Keluar Oleh Owner!")
1222   - nadya.leaveGroup(i)
1223   - nadya.sendText(msg.to,"Success Left ["+ h +"] group")
1224   - else:
1225   - pass
1226   - else:
1227   - nadya.sendText(msg.to,"Khusus Nadya")
1228   -
1229   - elif "Leave all group" == msg.text:
1230   - gid = nadya.getGroupIdsJoined()
1231   - if msg.from_ in Creator:
1232   - for i in gid:
1233   - nadya.sendText(i,"Bot Di Paksa Keluar Oleh Owner!")
1234   - nadya.leaveGroup(i)
1235   - nadya.sendText(msg.to,"Success Leave All Group")
1236   - else:
1237   - nadya.sendText(msg.to,"Khusus Nadya")
1238   -
1239   -
1240   - elif "Pict group: " in msg.text:
1241   - saya = msg.text.replace('Pict group: ','')
1242   - gid = nadya.getGroupIdsJoined()
1243   - for i in gid:
1244   - h = nadya.getGroup(i).name
1245   - gna = nadya.getGroup(i)
1246   - if h == saya:
1247   - nadya.sendImageWithURL(msg.to,"http://dl.profile.line.naver.jp/"+ gna.pictureStatus)
1248   -
1249   -
1250   - elif msg.text in ["cancelall","Cancelall"]:
1251   - if msg.toType == 2:
1252   - X = nadya.getGroup(msg.to)
1253   - if X.invitee is not None:
1254   - gInviMids = [contact.mid for contact in X.invitee]
1255   - nadya.cancelGroupInvitation(msg.to, gInviMids)
1256   - else:
1257   - nadya.sendText(msg.to,"Tidak Ada Yang Pending")
1258   - else:
1259   - nadya.sendText(msg.to,"Tidak Bisa Digunakan Diluar Group")
1260   -
1261   - elif msg.text in ["Ourl","Url on"]:
1262   - if msg.toType == 2:
1263   - X = nadya.getGroup(msg.to)
1264   - X.preventJoinByTicket = False
1265   - nadya.updateGroup(X)
1266   - nadya.sendText(msg.to,"Url Sudah Aktif")
1267   - else:
1268   - nadya.sendText(msg.to,"Can not be used outside the group")
1269   -
1270   - elif msg.text in ["Curl","Url off"]:
1271   - if msg.toType == 2:
1272   - X = nadya.getGroup(msg.to)
1273   - X.preventJoinByTicket = True
1274   - nadya.updateGroup(X)
1275   - nadya.sendText(msg.to,"Url Sudah Di Nonaktifkan")
1276   -
1277   - else:
1278   - nadya.sendText(msg.to,"Can not be used outside the group")
1279   -
1280   - elif msg.text in ["Join on","Autojoin on"]:
1281   - if msg.from_ in admin:
1282   - wait["AutoJoin"] = True
1283   - wait["AutoJoinCancel"] = False
1284   - nadya.sendText(msg.to,"Auto Join Sudah Aktif")
1285   - else:
1286   - nadya.sendText(msg.to,"Khusus Nadya")
1287   -
1288   - elif msg.text in ["Join off","Autojoin off"]:
1289   - if msg.from_ in admin:
1290   - wait["AutoJoin"] = False
1291   - nadya.sendText(msg.to,"Auto Join Sudah Di Nonaktifkan")
1292   - else:
1293   - nadya.sendText(msg.to,"Khusus Nadya")
1294   -
1295   -
1296   - elif msg.text in ["Joincancel on","Autojoincancel on"]:
1297   - if msg.from_ in admin:
1298   - wait["AutoJoinCancel"] = True
1299   - wait["AutoJoin"] = False
1300   - nadya.sendText(msg.to,"Auto Join Cancel Sudah Aktif")
1301   - else:
1302   - nadya.sendText(msg.to,"Khusus Nadya")
1303   -
1304   - elif msg.text in ["Joincancel off","Autojoincancel off"]:
1305   - if msg.from_ in admin:
1306   - wait["AutoJoinCancel"] = False
1307   - nadya.sendText(msg.to,"Auto Join Cancel Sudah Di Nonaktifkan")
1308   - else:
1309   - nadya.sendText(msg.to,"Khusus Nadya")
1310   -
1311   -
1312   - elif msg.text in ["Respon on"]:
1313   - if msg.from_ in admin:
1314   - wait["detectMention"] = True
1315   - wait["kickMention"] = False
1316   - nadya.sendText(msg.to,"Auto Respon Sudah Aktif")
1317   - else:
1318   - nadya.sendText(msg.to,"Khusus Nadya")
1319   -
1320   - elif msg.text in ["Respon off"]:
1321   - if msg.from_ in admin:
1322   - wait["detectMention"] = False
1323   - nadya.sendText(msg.to,"Auto Respon Sudah Off")
1324   - else:
1325   - nadya.sendText(msg.to,"Khusus Nadya")
1326   -
1327   -
1328   -
1329   - elif msg.text in ["Responkick on"]:
1330   - if msg.from_ in admin:
1331   - wait["kickMention"] = True
1332   - wait["detectMention"] = False
1333   - nadya.sendText(msg.to,"Auto Respon Kick Sudah Aktif")
1334   - else:
1335   - nadya.sendText(msg.to,"Khusus Nadya")
1336   -
1337   - elif msg.text in ["Responkick off"]:
1338   - if msg.from_ in admin:
1339   - wait["kickMention"] = False
1340   - nadya.sendText(msg.to,"Auto Respon Kick Sudah Off")
1341   - else:
1342   - nadya.sendText(msg.to,"Khusus Nadya")
1343   -
1344   -
1345   - elif msg.text in ["Autocancel on"]:
1346   - if msg.from_ in admin:
1347   - wait["AutoCancel"] = True
1348   - nadya.sendText(msg.to,"Auto Cancel Sudah Aktif")
1349   - print wait["AutoCancel"]
1350   - else:
1351   - nadya.sendText(msg.to,"Khusus Nadya")
1352   -
1353   - elif msg.text in ["Autocancel off"]:
1354   - if msg.from_ in admin:
1355   - wait["AutoCancel"] = False
1356   - nadya.sendText(msg.to,"Auto Cancel Sudah Di Nonaktifkan")
1357   - print wait["AutoCancel"]
1358   - else:
1359   - nadya.sendText(msg.to,"Khusus Nadya")
1360   -
1361   -
1362   - elif msg.text in ["Invitepro on"]:
1363   - if msg.from_ in admin:
1364   - wait["inviteprotect"] = True
1365   - nadya.sendText(msg.to,"Invite Protect Sudah Aktif")
1366   - print wait["inviteprotect"]
1367   - else:
1368   - nadya.sendText(msg.to,"Khusus Nadya")
1369   -
1370   - elif msg.text in ["Invitepro off"]:
1371   - if msg.from_ in admin:
1372   - wait["inviteprotect"] = False
1373   - nadya.sendText(msg.to,"Invite Protect Sudah Di Nonaktifkan")
1374   - print wait["inviteprotect"]
1375   - else:
1376   - nadya.sendText(msg.to,"Khusus Nadya")
1377   -
1378   - elif "Qr on" in msg.text:
1379   - if msg.from_ in admin:
1380   - wait["Qr"] = True
1381   - nadya.sendText(msg.to,"QR Protect Sudah Aktif")
1382   - else:
1383   - nadya.sendText(msg.to,"Khusus Nadya")
1384   -
1385   - elif "Qr off" in msg.text:
1386   - if msg.from_ in admin:
1387   - wait["Qr"] = False
1388   - nadya.sendText(msg.to,"Qr Protect Sudah Di Nonaktifkan")
1389   - else:
1390   - nadya.sendText(msg.to,"Khusus Nadya")
1391   -
1392   -
1393   -
1394   - elif "Autokick on" in msg.text:
1395   - if msg.from_ in admin:
1396   - wait["AutoKick"] = True
1397   - nadya.sendText(msg.to,"Auto Kick Sudah Aktif")
1398   - else:
1399   - nadya.sendText(msg.to,"Khusus Nadya")
1400   -
1401   - elif "Autokick off" in msg.text:
1402   - if msg.from_ in admin:
1403   - wait["AutoKick"] = False
1404   - nadya.sendText(msg.to,"Auto Kick Sudah Di Nonaktifkan")
1405   - else:
1406   - nadya.sendText(msg.to,"Khusus Nadya")
1407   -
1408   - elif "Ghost on" in msg.text:
1409   - if msg.from_ in admin:
1410   - wait["Ghost"] = True
1411   - nadya.sendText(msg.to,"Ghost Sudah Aktif")
1412   - else:
1413   - nadya.sendText(msg.to,"Khusus Nadya")
1414   -
1415   - elif "Ghost off" in msg.text:
1416   - if msg.from_ in admin:
1417   - wait["Ghost"] = False
1418   - nadya.sendText(msg.to,"Ghost Sudah Di Nonaktifkan")
1419   - else:
1420   - nadya.sendText(msg.to,"Khusus Nadya")
1421   -
1422   - elif msg.text in ["Allprotect on"]:
1423   - if msg.from_ in admin:
1424   - wait["AutoCancel"] = True
1425   - wait["inviteprotect"] = True
1426   - wait["AutoKick"] = True
1427   - wait["Qr"] = True
1428   - wait["Ghost"] = True
1429   - nadya.sendText(msg.to,"All Protect Sudah Aktif Semua")
1430   - else:
1431   - nadya.sendText(msg.to,"Khusus Nadya")
1432   -
1433   - elif msg.text in ["Allprotect off"]:
1434   - if msg.from_ in admin:
1435   - wait["AutoCancel"] = False
1436   - wait["inviteprotect"] = False
1437   - wait["AutoKick"] = False
1438   - wait["Qr"] = False
1439   - wait["Ghost"] = False
1440   - nadya.sendText(msg.to,"All Protect Sudah Di Nonaktifkan Semua")
1441   - else:
1442   - nadya.sendText(msg.to,"Khusus Nadya")
1443   -
1444   -
1445   - elif msg.text in ["K on","Contact on"]:
1446   - wait["Contact"] = True
1447   - nadya.sendText(msg.to,"Contact Sudah Aktif")
1448   -
1449   - elif msg.text in ["K off","Contact off"]:
1450   - wait["Contact"] = False
1451   - nadya.sendText(msg.to,"Contact Sudah Di Nonaktifkan")
1452   -
1453   -
1454   - elif msg.text in ["Alwaysread on"]:
1455   - wait["alwaysRead"] = True
1456   - nadya.sendText(msg.to,"Always Read Sudah Aktif")
1457   -
1458   - elif msg.text in ["Alwaysread off"]:
1459   - wait["alwaysRead"] = False
1460   - nadya.sendText(msg.to,"Always Read Sudah Di Nonaktifkan")
1461   -
1462   -
1463   - elif msg.text in ["Sambutan on"]:
1464   - if wait["Sambutan"] == True:
1465   - if wait["lang"] == "JP":
1466   - nadya.sendText(msg.to,"Sambutan Di Aktifkanヾ(*´∀`*)ノ")
1467   - else:
1468   - wait["Sambutan"] = True
1469   - if wait["lang"] == "JP":
1470   - nadya.sendText(msg.to,"Sudah Onヽ(´▽`)/")
1471   -
1472   - elif msg.text in ["Sambutan off"]:
1473   - if wait["Sambutan"] == False:
1474   - if wait["lang"] == "JP":
1475   - nadya.sendText(msg.to,"Sambutan Di Nonaktifkan( ^∇^)")
1476   - else:
1477   - wait["Sambutan"] = False
1478   - if wait["lang"] == "JP":
1479   - nadya.sendText(msg.to,"Sudah Off(p′︵‵。)")
1480   -
1481   -
1482   - elif "Sider on" in msg.text:
1483   - try:
1484   - del cctv['point'][msg.to]
1485   - del cctv['sidermem'][msg.to]
1486   - del cctv['cyduk'][msg.to]
1487   - except:
1488   - pass
1489   - cctv['point'][msg.to] = msg.id
1490   - cctv['sidermem'][msg.to] = ""
1491   - cctv['cyduk'][msg.to]=True
1492   - wait["Sider"] = True
1493   - nadya.sendText(msg.to,"Siap On Cek Sider")
1494   -
1495   - elif "Sider off" in msg.text:
1496   - if msg.to in cctv['point']:
1497   - cctv['cyduk'][msg.to]=False
1498   - wait["Sider"] = False
1499   - nadya.sendText(msg.to, "Cek Sider Off")
1500   - else:
1501   - nadya.sendText(msg.to, "Heh Belom Di Set")
1502   -
1503   -
1504   - elif msg.text in ["Status"]:
1505   - md = ""
1506   - if wait["Sambutan"] == True: md+="╠➩✔️ Sambutan : On\n"
1507   - else:md+="╠➩❌ Sambutan : Off\n"
1508   - if wait["AutoJoin"] == True: md+="╠➩✔️ Auto Join : On\n"
1509   - else: md +="╠➩❌ Auto Join : Off\n"
1510   - if wait["AutoJoinCancel"] == True: md+="╠➩✔️ Auto Join Cancel : On\n"
1511   - else: md +="╠➩❌ Auto Join Cancel : Off\n"
1512   - if wait["Contact"] == True: md+="╠➩✔️ Info Contact : On\n"
1513   - else: md+="╠➩❌ Info Contact : Off\n"
1514   - if wait["AutoCancel"] == True:md+="╠➩✔️ Auto Cancel : On\n"
1515   - else: md+= "╠➩❌ Auto Cancel : Off\n"
1516   - if wait["inviteprotect"] == True:md+="╠➩✔️ Invite Protect : On\n"
1517   - else: md+= "╠➩❌ Invite Protect : Off\n"
1518   - if wait["Qr"] == True: md+="╠➩✔️ Qr Protect : On\n"
1519   - else:md+="╠➩❌ Qr Protect : Off\n"
1520   - if wait["AutoKick"] == True: md+="╠➩✔️ Auto Kick : On\n"
1521   - else:md+="╠➩❌ Auto Kick : Off\n"
1522   - if wait["Ghost"] == True: md+="╠➩✔️ Ghost : On\n"
1523   - else:md+="╠➩❌ Ghost : Off\n"
1524   - if wait["alwaysRead"] == True: md+="╠➩✔️ Always Read : On\n"
1525   - else:md+="╠➩❌ Always Read: Off\n"
1526   - if wait["detectMention"] == True: md+="╠➩✔️ Auto Respon : On\n"
1527   - else:md+="╠➩❌ Auto Respon : Off\n"
1528   - if wait["kickMention"] == True: md+="╠➩✔️ Auto Respon Kick : On\n"
1529   - else:md+="╠➩❌ Auto Respon Kick : Off\n"
1530   - if wait["Sider"] == True: md+="╠➩✔️ Auto Sider : On\n"
1531   - else:md+="╠➩❌ Auto Sider: Off\n"
1532   - if wait["Simi"] == True: md+="╠➩✔️ Simisimi : On\n"
1533   - else:md+="╠➩❌ Simisimi: Off\n"
1534   - nadya.sendText(msg.to,"╔═════════════════════════\n""║ ☆☞ S T A T U S ☜☆\n""╠═════════════════════════\n"+md+"╚═════════════════════════")
1535   -
1536   -
1537   - elif msg.text in ["Gift","gift"]:
1538   - msg.contentType = 9
1539   - msg.contentMetadata={'PRDID': 'a0768339-c2d3-4189-9653-2909e9bb6f58',
1540   - 'PRDTYPE': 'THEME',
1541   - 'MSGTPL': '5'}
1542   - msg.text = None
1543   - nadya.sendMessage(msg)
1544   -
1545   -
1546   - elif "Gift1 " in msg.text:
1547   - msg.contentType = 13
1548   - nk0 = msg.text.replace("Gift1 ","")
1549   - nk1 = nk0.lstrip()
1550   - nk2 = nk1.replace("@","")
1551   - nk3 = nk2.rstrip()
1552   - _name = nk3
1553   - gs = nadya.getGroup(msg.to)
1554   - targets = []
1555   - for s in gs.members:
1556   - if _name in s.displayName:
1557   - targets.append(s.mid)
1558   - if targets == []:
1559   - sendMessage(msg.to,"user does not exist")
1560   - pass
1561   - else:
1562   - for target in targets:
1563   - try:
1564   - nadya.sendText(msg.to,_name + " Check Your Gift")
1565   - msg.contentType = 9
1566   - msg.contentMetadata= {'PRDTYPE': 'STICKER',
1567   - 'STKVER': '1',
1568   - 'MSGTPL': '1',
1569   - 'STKPKGID': '1380280'}
1570   - msg.to = target
1571   - msg.text = None
1572   - nadya.sendMessage(msg)
1573   - except:
1574   - msg.contentMetadata = {'mid': target}
1575   -
1576   - elif "Gift2 " in msg.text:
1577   - msg.contentType = 13
1578   - nk0 = msg.text.replace("Gift2 ","")
1579   - nk1 = nk0.lstrip()
1580   - nk2 = nk1.replace("@","")
1581   - nk3 = nk2.rstrip()
1582   - _name = nk3
1583   - gs = nadya.getGroup(msg.to)
1584   - targets = []
1585   - for s in gs.members:
1586   - if _name in s.displayName:
1587   - targets.append(s.mid)
1588   - if targets == []:
1589   - sendMessage(msg.to,"user does not exist")
1590   - pass
1591   - else:
1592   - for target in targets:
1593   - try:
1594   - nadya.sendText(msg.to,_name + " Check Your Gift")
1595   - msg.contentType = 9
1596   - msg.contentMetadata= {'PRDTYPE': 'STICKER',
1597   - 'STKVER': '1',
1598   - 'MSGTPL': '2',
1599   - 'STKPKGID': '1360738'}
1600   - msg.to = target
1601   - msg.text = None
1602   - nadya.sendMessage(msg)
1603   - except:
1604   - msg.contentMetadata = {'mid': target}
1605   -
1606   - elif "Gift3 " in msg.text:
1607   - msg.contentType = 13
1608   - nk0 = msg.text.replace("Gift3 ","")
1609   - nk1 = nk0.lstrip()
1610   - nk2 = nk1.replace("@","")
1611   - nk3 = nk2.rstrip()
1612   - _name = nk3
1613   - gs = nadya.getGroup(msg.to)
1614   - targets = []
1615   - for s in gs.members:
1616   - if _name in s.displayName:
1617   - targets.append(s.mid)
1618   - if targets == []:
1619   - sendMessage(msg.to,"user does not exist")
1620   - pass
1621   - else:
1622   - for target in targets:
1623   - try:
1624   - nadya.sendText(msg.to,_name + " Check Your Gift")
1625   - msg.contentType = 9
1626   - msg.contentMetadata= {'PRDTYPE': 'STICKER',
1627   - 'STKVER': '1',
1628   - 'MSGTPL': '3',
1629   - 'STKPKGID': '1395389'}
1630   - msg.to = target
1631   - msg.text = None
1632   - nadya.sendMessage(msg)
1633   - except:
1634   - msg.contentMetadata = {'mid': target}
1635   -
1636   - elif "Gift4 " in msg.text:
1637   - msg.contentType = 13
1638   - nk0 = msg.text.replace("Gift4 ","")
1639   - nk1 = nk0.lstrip()
1640   - nk2 = nk1.replace("@","")
1641   - nk3 = nk2.rstrip()
1642   - _name = nk3
1643   - gs = nadya.getGroup(msg.to)
1644   - targets = []
1645   - for s in gs.members:
1646   - if _name in s.displayName:
1647   - targets.append(s.mid)
1648   - if targets == []:
1649   - sendMessage(msg.to,"user does not exist")
1650   - pass
1651   - else:
1652   - for target in targets:
1653   - try:
1654   - nadya.sendText(msg.to,_name + " Check Your Gift")
1655   - msg.contentType = 9
1656   - msg.contentMetadata= {'PRDTYPE': 'STICKER',
1657   - 'STKVER': '1',
1658   - 'MSGTPL': '4',
1659   - 'STKPKGID': '1329191'}
1660   - msg.to = target
1661   - msg.text = None
1662   - nadya.sendMessage(msg)
1663   - except:
1664   - msg.contentMetadata = {'mid': target}
1665   -
1666   - elif "Gift5 " in msg.text:
1667   - msg.contentType = 13
1668   - nk0 = msg.text.replace("Gift5 ","")
1669   - nk1 = nk0.lstrip()
1670   - nk2 = nk1.replace("@","")
1671   - nk3 = nk2.rstrip()
1672   - _name = nk3
1673   - gs = nadya.getGroup(msg.to)
1674   - targets = []
1675   - for s in gs.members:
1676   - if _name in s.displayName:
1677   - targets.append(s.mid)
1678   - if targets == []:
1679   - sendMessage(msg.to,"user does not exist")
1680   - pass
1681   - else:
1682   - for target in targets:
1683   - try:
1684   - nadya.sendText(msg.to,_name + " Check Your Gift")
1685   - msg.contentType = 9
1686   - msg.contentMetadata= {'PRDTYPE': 'STICKER',
1687   - 'STKVER': '1',
1688   - 'MSGTPL': '1',
1689   - 'STKPKGID': '9057'}
1690   - msg.to = target
1691   - msg.text = None
1692   - nadya.sendMessage(msg)
1693   - except:
1694   - msg.contentMetadata = {'mid': target}
1695   -
1696   - elif "Gift6 " in msg.text:
1697   - msg.contentType = 13
1698   - nk0 = msg.text.replace("Gift6 ","")
1699   - nk1 = nk0.lstrip()
1700   - nk2 = nk1.replace("@","")
1701   - nk3 = nk2.rstrip()
1702   - _name = nk3
1703   - gs = nadya.getGroup(msg.to)
1704   - targets = []
1705   - for s in gs.members:
1706   - if _name in s.displayName:
1707   - targets.append(s.mid)
1708   - if targets == []:
1709   - sendMessage(msg.to,"user does not exist")
1710   - pass
1711   - else:
1712   - for target in targets:
1713   - try:
1714   - nadya.sendText(msg.to,_name + " Check Your Gift")
1715   - msg.contentType = 9
1716   - msg.contentMetadata= {'PRDTYPE': 'STICKER',
1717   - 'STKVER': '1',
1718   - 'MSGTPL': '2',
1719   - 'STKPKGID': '9167'}
1720   - msg.to = target
1721   - msg.text = None
1722   -