mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
* 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
12 lines
282 B
Python
12 lines
282 B
Python
import pkg_resources
|
|
|
|
from .config import Config
|
|
from .context import RedContext
|
|
|
|
__all__ = ["Config", "RedContext", "__version__"]
|
|
|
|
try:
|
|
__version__ = pkg_resources.get_distribution("Red-DiscordBot").version
|
|
except pkg_resources.DistributionNotFound:
|
|
__version__ = "3.0.0"
|