1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
royalnet/bots.py
2017-10-30 13:45:38 +01:00

12 lines
No EOL
360 B
Python

import multiprocessing
import telegrambot
import discordbot
discord_users_pipe = multiprocessing.Pipe()
discord = multiprocessing.Process(target=discordbot.process, args=(discord_users_pipe[0],))
telegram = multiprocessing.Process(target=telegrambot.process, args=(discord_users_pipe[1],))
if __name__ == "__main__":
discord.start()
telegram.start()