Skip to content

benzyYT/WhitelistCodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Discord Bot und FiveM Script für WhitelistCodes

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!

Commands und deren Funktion

  • --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

Der Bot ist weiterhin in Bearbeitung




Discord Bot and FiveM Script for WhitelistCodes

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!

Commands and their function

  • --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

The bot is still in progress


Credits

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)






REQUIREMENTS

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

  • PIP PACKAGES:

  • discord.py
  • python-dotenv
  • python-dotenv
  • mysql-connector-python

I may have forgotten a pip package or 2, but these are the most important.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published