If you run this will work (a web server and discord but running as expected independently) but have certain flaws such as the process cannot communicate with each other, in other words, you cannot use functions or variables of the bot from the server. Make sure youre logged on to the Discord website. documents that’s shaken Washington and exposed new details of its intelligence gathering may have started in a chatroom on a social media platform popular with gamers. Server_thread = multiprocessing.Process(name="server_thread", target=start_server)Īssume that app is just your average Flask app and bot your regular instance of commands.Bot. In order to work with the library and the Discord API in general, we must first create a Discord Bot. I have a proposal but is implemented in python from server import appĮnv_path = os.path.dirname(_file_) + "/.env"īot_thread = multiprocessing.Process(name="bot_thread", target=start_bot) You can head to its website and use it as an in-browser app, or download it for your desktop or mobile device and use it as a stand-alone app. A Server Web Page is a web page that a Discord server owner can set up to attract, educate, and engage new community members.
0 Comments
Leave a Reply. |