From The Compiler, 6 Years ago, written in Python.
Embed
  1.  
  2. if q1.upper() == "PYTHON": #Because we all love python!
  3.         global f
  4.         try:
  5.         f = open("%s.py" % q2, "w")
  6.     except IOError:
  7.         pass
  8.     else:
  9.                 f.write("#This plugin is automatic generated.\n")
  10.                 f.write("#Plugin by: %s\n\n" % q3)
  11.                 f.write("import xchat\n\n")
  12.                 f.write('__module_name__ = "%s"\n' % q2)
  13.                 f.write('__module_version__ = "1.0"\n')
  14.                 f.write('__module_description__ = "%s"\n' % q4)
  15.                 print("")
  16.                 print("Plugin created: %s.py" % q2)
  17.     finally:
  18.                 f.close

Replies to plugin generator rss

Title Name Language When
Re: plugin generator The Compiler python 6 Years ago.