Advertisement
Guest User

STACKOVERFLOW

a guest
May 23rd, 2021
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. pkill = '.*? (\\w+):(\\w+)\\b(?!:)'
  2.  
  3. with open(PL, encoding='utf-8', mode='rt') as b:
  4.     b.seek(0,2)
  5.     while True:
  6.         k = b.readline()
  7.  
  8.         if(re.search(pkill, k)):
  9.             names = k.split(":")
  10.             player, attacker = names[0], names[1]
  11.             await kchannel.send(':crossed_swords: Игрок **' + attacker + '** убил игрока **' + player + '**')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement