edge Posted August 28, 2019 Share Posted August 28, 2019 Is there a way to execute commands with a python based discord bot on a MTA Server? Thanks for any advices. Link to comment
Moderators Patrick Posted August 28, 2019 Moderators Share Posted August 28, 2019 Maybe an option. https://wiki.multitheftauto.com/wiki/PHP_SDK 1 Link to comment
edge Posted August 28, 2019 Author Share Posted August 28, 2019 And how this could help me? Link to comment
Moderators IIYAMA Posted August 28, 2019 Moderators Share Posted August 28, 2019 21 minutes ago, edge said: And how this could help me? It is a php interface from MTA. It can help you to make an access point for (local) http requests. If you want to communicate with MTA, the http protocol is more or less your only option. If you think this is confusing, then please read: https://www.geeksforgeeks.org/get-post-requests-using-python/ It explains you a little bit about http and how to use that in python. Not familiar with the php language on the MTA side of things? There are multiple sockets available, just not specific python. https://wiki.multitheftauto.com/wiki/Resource_Web_Access This is what you are going to need at the end: MTA < SOCKET < (protocol http) < Python Link to comment
savour Posted August 29, 2019 Share Posted August 29, 2019 Here you go https://gitlab.com/OwlGamingCommunity/mta-python-sdk 1 Link to comment
edge Posted September 2, 2019 Author Share Posted September 2, 2019 On 30/08/2019 at 01:04, savour said: Here you go https://gitlab.com/OwlGamingCommunity/mta-python-sdk I've found that, but I'm getting some errors when I'm trying to add the file as a cog to the bot. Any advices? Link to comment
savour Posted September 5, 2019 Share Posted September 5, 2019 (edited) On 02/09/2019 at 22:40, edge said: I've found that, but I'm getting some errors when I'm trying to add the file as a cog to the bot. Any advices? Show me the error, and the area where it happens Edited September 5, 2019 by savour Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now