[Frugalware-darcs] mxw: implemented a " yepp!" command for #fw.hu users :)

VMiklos vmiklos at frugalware.org
Wed Jun 27 03:37:56 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=mxw;a=darcs_commitdiff;h=20070627013643-e2957-75e0b7a57d823f75e1b2a147acefe2afbccd6dc1.gz;

[implemented a "yepp!" command for #fw.hu users :)
VMiklos <vmiklos at frugalware.org>**20070627013643] {
hunk ./events.py 3
-import feedparser, htmlentitydefs
+import feedparser, htmlentitydefs, random
hunk ./events.py 89
+	elif argv[0] == "yepp!":
+		sock = open("akii-fun.lines")
+		lines = sock.readlines()
+		sock.close()
+		c.privmsg(target, "Yepp! %s" % random.choice(lines))
}


More information about the Frugalware-darcs mailing list