To use the bot, you need a Discord bot and a Lichess account. We recommend creating a new account specifically for this purpose. The account is only essential if you want to kick people; otherwise, you don't need a Lichess account. Python is a required dependency.
Lichess bots can be created on the Discord Developer page. For details on creating Discord bots, you can refer to the video linked at the end of this part. Inviting the bot to your server and granting necessary permissions are your responsibilities. YouTube Video about Discord Bots
If you choose to use a Lichess bot, you'll need to generate an OAuth2 token or an API token. The specific permissions required for the project are as follows:
team:write
Download the repository using the git clone command. Make sure to use the master branch.
git clone https://github.com/Donbur4156/faultybot.git
Pip should already be installed. If not, follow the instructions:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
Install the required dependencies with:
pip install -r requirements.txt
Create a file named ftpdata.py
in the subfolder client and enter your values following the syntax below. FTP data is needed to transfer cheater lists to the server.
# FTP
user = "DATA"
pwd = "DATA"
port = "DATA"
url = "DATA"
# Lichess
bot_token = "DATA"
To view all players who have violated the Terms of Service (TOS), type the following in the chat with the bot. The bot only searches for new cheaters every 4 hours after the last call. The "new" flag can be used to circumvent this.
/faulty >>TEAM-ID<<
To kick players, use the following:
/kickfaulty >>TEAM-ID<< >>TOKEN<<
Note that only one token can be assigned to a bot at a time. The bot must also be a Team Leader in the desired team to kick players.