Discord Python

Recommended Posts

Is there a way to execute commands with a python based discord bot on a MTA Server? Thanks for any advices.

Share this post

Link to post
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:


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


Share this post

Link to post


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 by savour

Share this post

Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.