Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the bot to upload files to the BICS G-Drive by using a command #26

Open
PedroS235 opened this issue Jun 3, 2023 · 2 comments
Open
Assignees
Labels
feature New feature or request

Comments

@PedroS235
Copy link
Member

PedroS235 commented Jun 3, 2023

Is your feature request related to a problem? Please describe.
If a student wants to upload a file to G-Drive, it needs to first upload the file to the dedicated channel g-drive and then one of the admins needs to manually upload the same file into the G-Drive and place it in the correct location. This is a bit tedious and requires extra work that could be avoided.

Describe the solution you'd like
The idea would then to create a bot command /upload, where it would contain entries like course name, type and year. The student would need to fill in those and in addition upload the file. The bot would then retrieve the file and the information associated with it and would download the file, update the file name to a standard convention (which needs to be defined) and upload to the G-Drive using the API available. Once performed this action, it would delete the downloaded file and let the user know that it was successfully uploaded or, in worst case scenario, that a problem occurred.

Additional context
Having done some research, there is no possibility of sending a file and at the same time use a slash command. A workaround, would be to use the old style commands, where we define a command prefix such as ! and then use it this way, where we need to manually parse then different entries. The command would then look like !upload course_name type year

@PedroS235 PedroS235 added feature New feature or request priority: Medium Priority level labels Jun 3, 2023
@PedroS235 PedroS235 removed the priority: Medium Priority level label Jun 10, 2023
@JAENAI
Copy link
Contributor

JAENAI commented Oct 30, 2023

Can you assign me to this issue?

@PedroS235 PedroS235 assigned PedroS235 and JAENAI and unassigned PedroS235 Oct 30, 2023
@PedroS235
Copy link
Member Author

Sure, here you go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants