Was kann das ganze?
Wenn man joint öffnet sich ein Fenster in dem ein Code eingegeben werden muss. Mit dem Command --create
im Discord können ausgewählte Nutzer solche Codes erstellen. Diese Codes müssen den Usern zugeschickt werden und die User können diesen Code genau 1x benutzen, danach ist der Code ungültig. Der Spieler ist danach jedoch bis zur manuellen Entfernung gewhitelisted!
--create
| Erstellt einen neuen Code--cancel [CODE]
| Löscht einen angegebenen Code--getall
| Zeigt alle Codes und ob diese aktiviert sind--remove [IDENTIFIER]
| Entfernt LICENSE Identifier von der Whitelist--invite
| Zeigt den aktuellsten Invite zum Bot
What can all this do?
When you join, a window opens in which a code must be entered. With the command --create
in Discord, selected users can create such codes. These codes must be sent to the players and they can use this code exactly 1 time, after that, the code is invalid. However, the player is then whitelisted pending manual removal!
--create
| Creates a new code--cancel [CODE]
| Deletes a specified code--getall
| Shows all codes and whether they are activated--remove [IDENTIFIER]
| Removes LICENSE identifiers from the whitelist--invite
| Shows the most recent invite to the bot
benzyYT | Rewrote complete code to make it work the way I want it. Before I rewrote it, it was a standard password script with no database queries or discord bot compatibility.
Enfer | Some bits of code.
Frazzle | Basically 100% of the code that makes the passwords work (https://gist.github.com/FrazzIe/f59813c137496cd94657e6de909775aa)
I did everything on Linux, so I don't guarantee functionality on other operating systems, but actually it should work on other operating systems as well.
- FiveM Server with oxmysql
- Python3 installed
- discord.py
- python-dotenv
- python-dotenv
- mysql-connector-python
PIP PACKAGES:
I may have forgotten a pip package or 2, but these are the most important.