- Visit the Google Cloud Console
- Go to the OAuth Consent tab, fill it, and save.
- Go to the Credentials tab and click Create Credentials -> OAuth Client ID
- Choose Desktop and Create.
- Use the download button to download your credentials.
- Move that file to the root of this bot, and rename it to credentials.json
- Visit Google API page
- Search for Drive and enable it if it is disabled
- Run these commands
$ pip3 install -U pip
$ pip3 install -U -r requirements.txt
$ python3 generate_drive_token.py
$ cp sample_config.py config.py
- Edit config.py with your own values
- Run
$ python3 main.py
to start the bot.
$ git clone https://github.com/thehamkercat/GdriveSearcherBot
$ cd GdriveSearcherBot
$ sudo docker build . -t GdriveSearcherBot
$ sudo docker run GdriveSearcherBot
@SVR666 For Drive module.
- Join PatheticProgrammers For Help.