|
|
|
@ -27,6 +27,8 @@ flag value
|
|
|
|
|
-c, --channel, channel Name of the channel you would like to join or create.
|
|
|
|
|
An empty value lists the available channels.
|
|
|
|
|
-n, --new, new Check for new, unread messages.
|
|
|
|
|
-N, --new-verbose, new-verbose Check for new, unread messages, creating output
|
|
|
|
|
even when no new messages exist.
|
|
|
|
|
|
|
|
|
|
Channels names ending in ! are private. They can be joined by anyone that
|
|
|
|
|
knows they exist, but will not be listed in the channel listings. To return
|
|
|
|
@ -278,7 +280,7 @@ def new_scan(silent=True):
|
|
|
|
|
if len(unread_chans):
|
|
|
|
|
print("New gab messages in: " + ", ".join(unread_chans))
|
|
|
|
|
elif silent == False:
|
|
|
|
|
print("gab has no unread messages.")
|
|
|
|
|
print("gab: no unread messages.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def parse_command():
|
|
|
|
@ -294,6 +296,8 @@ def parse_command():
|
|
|
|
|
print("Invalid command input to 'list'")
|
|
|
|
|
elif args[0] in ["new", "--new", "-n"]:
|
|
|
|
|
new_scan()
|
|
|
|
|
elif args[0] in ["new-verbose", "--new-verbose", "-N"]:
|
|
|
|
|
new_scan(silent=False)
|
|
|
|
|
elif args[0] in ["-m", "--msg", "msg"]:
|
|
|
|
|
if len(args) < 2:
|
|
|
|
|
# code from https://stackoverflow.com/a/6309753
|
|
|
|
|