rewrite: More restructuring.

This commit is contained in:
2022-12-23 07:19:35 +02:00
parent 1cef97cdd4
commit ee1abcacea
26 changed files with 443 additions and 39 deletions

3
scripts/makestrings.sh Executable file
View File

@@ -0,0 +1,3 @@
xgettext bot/modules/sysadmin/exec_cog.py -o locales/templates/exec.pot --keyword=_p:1c,2 --keyword=_n:1,2 --keyword=_np:1c,2,3
xgettext bot/babel/*.py -o locales/templates/babel.pot --keyword=_p:1c,2 --keyword=_n:1,2 --keyword=_np:1c,2,3
xgettext bot/modules/reminders/*.py -o locales/templates/reminders.pot --keyword=_p:1c,2 --keyword=_n:1,2 --keyword=_np:1c,2,3

14
scripts/start_analytics.py Executable file
View File

@@ -0,0 +1,14 @@
# !/bin/python3
import sys
import os
import asyncio
sys.path.insert(0, os.path.join(os.getcwd()))
sys.path.insert(0, os.path.join(os.getcwd(), "src"))
if __name__ == '__main__':
from analytics.server import AnalyticsServer
server = AnalyticsServer()
asyncio.run(server.run())

6
scripts/start_gui.py Executable file
View File

@@ -0,0 +1,6 @@
import asyncio
from src.server import main
if __name__ == '__main__':
asyncio.run(main())

12
scripts/start_leo.py Executable file
View File

@@ -0,0 +1,12 @@
# !/bin/python3
import sys
import os
sys.path.insert(0, os.path.join(os.getcwd()))
sys.path.insert(0, os.path.join(os.getcwd(), "src"))
if __name__ == '__main__':
from bot import _main
_main()

16
scripts/start_registry.py Executable file
View File

@@ -0,0 +1,16 @@
# !/bin/python3
import sys
import os
import asyncio
sys.path.insert(0, os.path.join(os.getcwd()))
sys.path.insert(0, os.path.join(os.getcwd(), "src"))
if __name__ == '__main__':
from meta.ipc.server import AppServer
from meta import conf
address = {'host': conf.appipc['server_host'], 'port': int(conf.appipc['server_port'])}
server = AppServer()
asyncio.run(server.start(address))