R 1
Roksam
Test5410 1
Test5410
berkmenoo 1
berkmenoo
farkmt2official 1
farkmt2official
emirhanHCL 1
emirhanHCL
Hikaye Ekle

(Python) Anti Spam

  • Konuyu başlatan Konuyu başlatan Vectors
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 34
  • Görüntüleme Görüntüleme 6K
rJmTBp5.png

Sadece normal konuşma için geçerlidir.​

Root uichat.py aratılır;
Kod:
def __SendChatPacket(self, text, type):

Kod:
    def __SendChatPacket(self, text, type):
        import AntiSpam
        Spam = AntiSpam.VectorsAntiSpam()
        Spam.SendChatPacket(text, type)

Antispam.py root içine atılır;
Kod:
import app
import chat
import net
import localeInfo as locale
class VectorsAntiSpam:
    Sure = {"VECTORS":0}
    def SendChatPacket(self, text, type):
        if text == "(xVectors_Basari)":
            #chat.AppendChat("Vectors")
            return
        if text == "(xVectors_Basarisiz)":
            #chat.AppendChat("Vectors")
            return
        if net.IsChatInsultIn(text):
            chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.CHAT_INSULT_STRING)
        else:
            if app.GetGlobalTimeStamp()>=self.Sure["VECTORS"]:
                net.SendChatPacket(text, type)
                #Kac saniyede bir yazilsin
                self.Sure["VECTORS"] = app.GetGlobalTimeStamp()+1
            else:
                chat.AppendChat(chat.CHAT_TYPE_INFO,"Anti Spam Aktif Edildi.")


#    def __SendChatPacket(self, text, type):
#        import AntiSpam
#        Spam = AntiSpam.VectorsAntiSpam()
#        Spam.SendChatPacket(text, type)

Download butonuna tıklarsanız antispam.py olarak inecektir.
 
rJmTBp5.png

Sadece normal konuşma için geçerlidir.​

Root uichat.py aratılır;
Kod:
def __SendChatPacket(self, text, type):

Kod:
    def __SendChatPacket(self, text, type):
        import AntiSpam
        Spam = AntiSpam.VectorsAntiSpam()
        Spam.SendChatPacket(text, type)

Antispam.py root içine atılır;
Kod:
import app
import chat
import net
import localeInfo as locale
class VectorsAntiSpam:
    Sure = {"VECTORS":0}
    def SendChatPacket(self, text, type):
        if text == "(xVectors_Basari)":
            #chat.AppendChat("Vectors")
            return
        if text == "(xVectors_Basarisiz)":
            #chat.AppendChat("Vectors")
            return
        if net.IsChatInsultIn(text):
            chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.CHAT_INSULT_STRING)
        else:
            if app.GetGlobalTimeStamp()>=self.Sure["VECTORS"]:
                net.SendChatPacket(text, type)
                #Kac saniyede bir yazilsin
                self.Sure["VECTORS"] = app.GetGlobalTimeStamp()+1
            else:
                chat.AppendChat(chat.CHAT_TYPE_INFO,"Anti Spam Aktif Edildi.")


#    def __SendChatPacket(self, text, type):
#        import AntiSpam
#        Spam = AntiSpam.VectorsAntiSpam()
#        Spam.SendChatPacket(text, type)

Download butonuna tıklarsanız antispam.py olarak inecektir.

ard arda yazi yazma engeli icin dgl mi
 
Çok teşşekürler phytonun anasını ağlatıyosun :D Birde şu ping ölçeri bizimlede paylaşsan çok iyi olr :D
import re, os


kalite = ""
pingg = None


pingg = int(re.findall("[0-9][0-9]", str(os.popen("%WINDIR%/system32/ping -n 1 google.com").readlines()[-1]))[0])


while kalite != kalite:
if pingg > 30: kalite = "Mukemmel"
if pingg > 70: kalite = "Orta"
if pingg > 110: kalite = "Kotu"
else: kalite = "Berbat"
if kalite == "": kalite = "None"

while pingg - pingg > 10 or pingg - pingg < 10:
pingg = pingg
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst