Seçkin Üye
alttaki kod normalde çalışıyordu 1 2 satır ekleme yaptım başlıktaı hatayı almaya başladım yardımcı olabilecek var mı eklediğim satır şu
"elif msg.find('07 nerenin plakasidir?'):"
"result = antalya"
from phBot import *
import phBotChat
import re
from time import sleep
def handle_chat(t, player, msg):
if len(player) == 0:
m = re.findall(r'(\d+)', msg)
if m and len(m) >= 2:
if msg.find('+') != -1 or msg.find(' x ') != -1:
result = int(m[0]) + int(m[1])
elif msg.find('07 nerenin plakasidir?'):
result = antalya
else:
result = int(m[0]) + int(m[1])
sleep(1.0)
log('Duman_Fan ***** %s' % str(result))
if msg.find('/answer') != -1:
phBotChat.All('/answer ' + str(result))
else:
phBotChat.All("!t" + str(result))
elif (player.find('HMDCRACK') != -1 or player.find('HMDCRACK') != -1) and msg.lower().find('HMDCRACK') != -1:
sleep(1.0)
phBotChat.All(player, str(get_character_data()['job_current_exp']))
elif player == 'HMDCRACK' or player == 'HMDCRACK' or player == 'HMDCRACK':
m = re.findall(r'(\d+)', msg)
if m:
if len(m) == 1:
sleep(1.0)
log('Duman_Fan ***** %s' % str(m[0]))
phBotChat.All(player, "Duman_Fan *****" + str(m[0]))
elif len(m) >= 2:
if msg.find('+') != -1 or msg.find(' x ') != -1:
result = int(m[0]) + int(m[1])
else:
result = int(m[0]) + int(m[1])
sleep(1.0)
log('Duman_Fan ***** %s' % str(result))
phBotChat.All(player, "Duman_Fan *****" + str(result))
elif msg.lower().find('kervankey') != -1:
sleep(1.0)
phBotChat.All(player, "Duman_Fan *****" + 'Kervankey')
log('[%s] Loaded' % __name__)
"elif msg.find('07 nerenin plakasidir?'):"
"result = antalya"
from phBot import *
import phBotChat
import re
from time import sleep
def handle_chat(t, player, msg):
if len(player) == 0:
m = re.findall(r'(\d+)', msg)
if m and len(m) >= 2:
if msg.find('+') != -1 or msg.find(' x ') != -1:
result = int(m[0]) + int(m[1])
elif msg.find('07 nerenin plakasidir?'):
result = antalya
else:
result = int(m[0]) + int(m[1])
sleep(1.0)
log('Duman_Fan ***** %s' % str(result))
if msg.find('/answer') != -1:
phBotChat.All('/answer ' + str(result))
else:
phBotChat.All("!t" + str(result))
elif (player.find('HMDCRACK') != -1 or player.find('HMDCRACK') != -1) and msg.lower().find('HMDCRACK') != -1:
sleep(1.0)
phBotChat.All(player, str(get_character_data()['job_current_exp']))
elif player == 'HMDCRACK' or player == 'HMDCRACK' or player == 'HMDCRACK':
m = re.findall(r'(\d+)', msg)
if m:
if len(m) == 1:
sleep(1.0)
log('Duman_Fan ***** %s' % str(m[0]))
phBotChat.All(player, "Duman_Fan *****" + str(m[0]))
elif len(m) >= 2:
if msg.find('+') != -1 or msg.find(' x ') != -1:
result = int(m[0]) + int(m[1])
else:
result = int(m[0]) + int(m[1])
sleep(1.0)
log('Duman_Fan ***** %s' % str(result))
phBotChat.All(player, "Duman_Fan *****" + str(result))
elif msg.lower().find('kervankey') != -1:
sleep(1.0)
phBotChat.All(player, "Duman_Fan *****" + 'Kervankey')
log('[%s] Loaded' % __name__)