Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import app
- import net
- import thread
- # wiadomosc gracza, twoja odpowiedz
- ANSWER_BOT_DICT = [
- ["cześć", "witam"],
- ["siema", "elo"],
- ]
- def RUN(self, mode, name, text):
- for m in ANSWER_BOT_DICT:
- if m[0] in text: # text wiadomosc gracza
- def msg():
- app.Sleep(3000) # czekanie 3 sekund
- net.SendWhisperPacket(name, m[1]) # wysylanie wiadomosci
- thread.start_new_thread(msg, ())
- break
- return 0
Advertisement
Add Comment
Please, Sign In to add comment