mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-02 07:52:54 +01:00
e877f3e724
- feat(idm): Added monitoring - feat(nexus): Refactor GRPC base client - fix(nexus): Logging fixes - feat(hub): Extend logging - feat(hub): Extend logging 2 internal commit(s) GitOrigin-RevId: 01de4153dd9c0edc2e5954563733085249a4551c
20 lines
583 B
Python
20 lines
583 B
Python
import asyncio
|
|
|
|
import uvloop
|
|
from library.logging import configure_logging
|
|
from nexus.bot.application import TelegramApplication
|
|
from nexus.bot.configs import get_config
|
|
|
|
|
|
def main(config):
|
|
configure_logging(config)
|
|
if config['metrics']['enabled']:
|
|
from library.metrics_server import MetricsServer
|
|
MetricsServer(config['metrics']).fork_process()
|
|
asyncio.set_event_loop(uvloop.new_event_loop())
|
|
asyncio.get_event_loop().run_until_complete(TelegramApplication(config=config).start_and_wait())
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main(config=get_config())
|