python-zulip-api/zulip/zulip/examples/realm-emoji
Anders Kaseorg e30b3b094b Modernize legacy Python 2 syntax with pyupgrade.
Generated by `pyupgrade --py3-plus --keep-percent-format` followed by
manual indentation fixes.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 15:04:36 -07:00

18 lines
296 B
Python
Executable file

#!/usr/bin/env python3
import argparse
import zulip
usage = """realm-emoji [options]
Example: realm-emoji
"""
parser = zulip.add_default_arguments(argparse.ArgumentParser(usage=usage))
options = parser.parse_args()
client = zulip.init_from_options(options)
print(client.get_realm_emoji())