A way for anyone to show interest in buying or selling items on MTA. Disclaimer: We're not responsible for users that act in bad-faith, so trade wisely.
-
/search <user | query>
- search for ads -
/bid <ad ID> <your_bid>
- makes a formal bid to an ad -
/buy <offer> <returns> [negotiable]
- signal that you're looking to buy something -
/sell <offer> <returns> [negotiable]
- signal that you're looking to sell something -
/remove <ad ID>
- removes a previously added ad -
/reviews <user>
- list user reviews -
/review <user> <rate> [comment]
- reviews a user's shop -
/source
- sends source file as a direct message -
/create_shop
- creates a shop
- Create better help command & clarify command structure
- Should "shops" be a thing?
-
Add autocomplete in contexts where item ids and names are possible argumentsMaybe include popular kits?
Add trust-ranking system?- Users are to be directly notified when they receive an /bid
- Limit ad count per player unless they're "very" trusted
- Automatically remove old user data within a yet-to-be-determined time frame
- Better search
- Handle disconnects
Python 3.8+
To run the database, just use docker-compose up
. To reset it, run docker-compose down
and the former command.
Follow this tutorial on how to setup a discord bot to get a discord token key with the appropriate permissions.
After you have setup the database and got the key, set it as environment variable named MTA_EXCHANGE_DISCORD_BOT_TOKEN
, then run the main script:
python main.py
Or just run the script like this:
python main.py <your_token>
Notice you have to overwrite the guild ID with your channel for it to work outside MTA Exchange Discord Server (-g
flag).