disco.cli
The CLI module is a small utility that can be used as an easy entry point for creating and running bots/clients.
Constants
parser = ArgumentParser()
{'type': 'assign', 'targets': ['CONFIG_OVERRIDE_MAPPING'], 'value': {'keys': ['token', 'shard_id', 'shard_count', 'max_reconnects', 'log_level', 'manhole', 'manhole_bind', 'encoder'], 'values': ['token', 'shard_id', 'shard_count', 'max_reconnects', 'log_level', 'manhole_enable', 'manhole_bind', 'encoder'], 'type': 'dict'}}
Functions
disco_main(run
)
Creates an argument parser and parses a standard set of command line arguments,
creating a new :class:Client
.
Returns
A new Client from the provided command line arguments