Skip to content

N1ghtF1re/Google-Drive-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Drive Bot

Stars Download Latest Stable Version License

About

VK Bot which can upload file to google drive

Used technologies

The bot written in Java using VK Java SDK, Goole Drive API v3

How to run

  1. Go to https://developers.google.com/drive/api/v3/quickstart/java
  2. Click "Enable the Drive API"
  3. Download crenditals
  4. Place it in src/main/resources
  5. Fill the src/main/resources/application.properties file
  6. Run gradle clean build and then java -jar builds/lib/gd-googleDriveBot-1.0.jar
  7. Follow the instructions

Note: you have to create and configure vk group as bot before (enable longpolling, create token, allow to invite to conversations)

How to use

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.