mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 20:38:00 +01:00
doc
This commit is contained in:
parent
2ff4e42e19
commit
5ff733fdda
1 changed files with 15 additions and 0 deletions
15
ponysay.py
15
ponysay.py
|
@ -93,6 +93,10 @@ class ponysay():
|
|||
else: self.print_pony(args)
|
||||
|
||||
|
||||
##
|
||||
## Auxiliary methods
|
||||
##
|
||||
|
||||
'''
|
||||
Returns one .pony-file with full path, names is filter for names, also accepts filepaths
|
||||
'''
|
||||
|
@ -165,6 +169,10 @@ class ponysay():
|
|||
return rc
|
||||
|
||||
|
||||
##
|
||||
## Listing methods
|
||||
##
|
||||
|
||||
'''
|
||||
Lists the available ponies
|
||||
'''
|
||||
|
@ -296,6 +304,13 @@ class ponysay():
|
|||
print(pony)
|
||||
|
||||
|
||||
##
|
||||
## Displaying methods
|
||||
##
|
||||
|
||||
'''
|
||||
Print the pony with a speech or though bubble
|
||||
'''
|
||||
def print_pony(self, args):
|
||||
if args.message == None:
|
||||
msg = sys.stdin.read().strip()
|
||||
|
|
Loading…
Reference in a new issue