1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Update requirements

This commit is contained in:
Steffo 2019-05-06 19:02:12 +02:00
parent 2723157796
commit 9b6fd823db
4 changed files with 8 additions and 2 deletions

View file

@ -11,3 +11,4 @@ youtube_dl>=2019.4.24
ffmpeg-python>=0.1.17 ffmpeg-python>=0.1.17
Sphinx>=2.0.1 Sphinx>=2.0.1
sphinx_rtd_theme>=0.4.3 sphinx_rtd_theme>=0.4.3
PyNaCl>=1.3.0

View file

@ -1,5 +1,5 @@
from . import audio, bots, commands, database, network, utils, error from . import audio, bots, commands, database, network, utils, error
version = "5.0a4" version = "5.0a5"
__all__ = ["audio", "bots", "commands", "database", "network", "utils", "error"] __all__ = ["audio", "bots", "commands", "database", "network", "utils", "error"]

View file

@ -24,9 +24,11 @@ commands = [PingCommand, ShipCommand, SmecdsCommand, ColorCommand, CiaoruoziComm
address, port = "127.0.0.1", 1234 address, port = "127.0.0.1", 1234
print("Starting master...")
master = RoyalnetServer(address, port, "sas") master = RoyalnetServer(address, port, "sas")
loop.run_until_complete(master.start()) loop.run_until_complete(master.start())
print("Starting bots...")
ds_bot = DiscordBot(discord_config=DiscordConfig(os.environ["DS_AK"]), ds_bot = DiscordBot(discord_config=DiscordConfig(os.environ["DS_AK"]),
royalnet_config=RoyalnetConfig(f"ws://{address}:{port}", "sas"), royalnet_config=RoyalnetConfig(f"ws://{address}:{port}", "sas"),
database_config=DatabaseConfig(os.environ["DB_PATH"], Royal, Discord, "discord_id"), database_config=DatabaseConfig(os.environ["DB_PATH"], Royal, Discord, "discord_id"),
@ -41,4 +43,6 @@ tg_bot = TelegramBot(telegram_config=TelegramConfig(os.environ["TG_AK"]),
missing_command=MissingCommand) missing_command=MissingCommand)
loop.create_task(tg_bot.run()) loop.create_task(tg_bot.run())
loop.create_task(ds_bot.run()) loop.create_task(ds_bot.run())
print("Running loop...")
loop.run_forever() loop.run_forever()

View file

@ -23,7 +23,8 @@ setuptools.setup(
"dateparser>=0.7.1", "dateparser>=0.7.1",
"discord.py>=1.0.1", "discord.py>=1.0.1",
"youtube_dl>=2019.4.24", "youtube_dl>=2019.4.24",
"ffmpeg-python>=0.1.17"], "ffmpeg-python>=0.1.17",
"PyNaCl>=1.3.0"],
python_requires=">=3.7", python_requires=">=3.7",
classifiers=[ classifiers=[
"Development Status :: 3 - Alpha", "Development Status :: 3 - Alpha",