aboutsummaryrefslogtreecommitdiff
path: root/ponystorm.py
diff options
context:
space:
mode:
authorjaseg <s@jaseg.de>2013-04-01 01:51:53 +0200
committerjaseg <s@jaseg.de>2013-04-01 01:51:53 +0200
commitb2cee466b12ac237a55c8dfbe7503249a6647968 (patch)
tree782adf35d0dcd60f3d251986c28c8f7b38945058 /ponystorm.py
parent60e6b776253cd8120cde44638043c45a51ed27ad (diff)
downloadponysay-b2cee466b12ac237a55c8dfbe7503249a6647968.tar.gz
ponysay-b2cee466b12ac237a55c8dfbe7503249a6647968.tar.bz2
ponysay-b2cee466b12ac237a55c8dfbe7503249a6647968.zip
Made it installable. Also: Fixes!
* Added a Makefile for installing/uninstalling * Made it center one-line texts within speech bubbles * Made it importable * Added a funny test script * Added proper *think support * Fixed chrysalis' quotes file * Fixed a bug wrongly cropping the output
Diffstat (limited to 'ponystorm.py')
-rwxr-xr-xponystorm.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/ponystorm.py b/ponystorm.py
new file mode 100755
index 0000000..dd93b42
--- /dev/null
+++ b/ponystorm.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env python3
+import random
+import ponysay
+
+for i in range(0, 1000):
+ pony = random.choice(ponysay.list_ponies_with_quotes())
+ print(ponysay.render_pony(pony, ponysay.random_quote(pony),
+ balloonstyle=ponysay.balloonstyles['cowsay'],
+ width=ponysay.termwidth,
+ center=True,
+ centertext=False))