SHARE
TWEET

Untitled

a guest Aug 12th, 2017 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             NewAdmin = trigger.group(3)
  2.             f = open("C:/Users/Juandis/Desktop/sopel-6.5.0/sopel/Data base/Alletfs.txt","r")
  3.             lineas = f.readlines()
  4.             f.close()
  5.             f = open("C:/Users/Juandis/Desktop/sopel-6.5.0/sopel/Data base/Alletfs.txt","a")
  6.             for linea in lineas:
  7.                 if linea.strip() != NewAdmin:
  8.                     f.write("%s \n" % NewAdmin)
  9.                 else:
  10.                     bot.reply('Already added in this list')
  11.             f.close()
RAW Paste Data
Top