mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
[V3 RPC] Add basic RPC functionality (#1017)
* Add basic RPC functionality * Add load/unload/reload rpc commands * Reorganize without rpc_ready event * Remove rpc ready event * Removed bot reference from rpc module * Close RPC server cleanly * refactor bot * Refactor a bit and make RPC server initialization based on a cli flag * Fix version resolver * standardize version getters * Pick a new port number
This commit is contained in:
@@ -102,6 +102,10 @@ def parse_cli_flags(args):
|
||||
parser.add_argument("--dev",
|
||||
action="store_true",
|
||||
help="Enables developer mode")
|
||||
parser.add_argument("--rpc",
|
||||
action="store_true",
|
||||
help="Enables the built-in RPC server. Please read the docs"
|
||||
"prior to enabling this!")
|
||||
parser.add_argument("instance_name",
|
||||
help="Name of the bot instance created during `redbot-setup`.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user