VK Bot which can upload file to google drive
The bot written in Java using VK Java SDK, Goole Drive API v3
- Go to https://developers.google.com/drive/api/v3/quickstart/java
- Click "Enable the Drive API"
- Download crenditals
- Place it in
src/main/resources
- Fill the
src/main/resources/application.properties
file - Run
gradle clean build
and thenjava -jar builds/lib/gd-googleDriveBot-1.0.jar
- Follow the instructions
Note: you have to create and configure vk group as bot before (enable longpolling, create token, allow to invite to conversations)
Bot will upload files if you attach it and place hash tag.
Also, bot can upload text. For example, after message
#test
Some test message for test
The bot will create text file in folder TEST and place message "Some test message for test" there
It's also possible to define filename. For example, after message
#test_filename
Some test message for test
The bot will create text file "filename" in folder TEST and place message "Some test message for test" there
Note: the bot will add creation time in filename automaticaly.