Skip to content

Telegram bot application that converts and crops specified videos and sends the related telegram timeline. youtube or vimeo links can be used.

License

Notifications You must be signed in to change notification settings

nerezo/giftubebot

Repository files navigation

Introduction

Telegram bot application that converts and crops specified videos and sends the related telegram timeline. youtube or vimeo links can be used.

Installation

You can use npm package to get all dependent modules installed.

npm install

Running the application

node giftubebot.js

Running tests

npm install -g mocha
mocha unittests --recursive

Usage

Proper call signatures:

Crops from start time till the seconds value:

/gift <video_url> <start_time> <seconds>

Crops from start time till the default seconds (5) value:

/gift <video_url> <start_time>

Crops from beginning of the video till the seconds value:

/gift <video_url> <seconds>

Examples:

/gift https://www.youtube.com/watch?v=QPFuwEqBgDQ 00:00:30 5
/gift https://www.youtube.com/watch?v=QPFuwEqBgDQ 00:00:30 5.234
/gift https://www.youtube.com/watch?v=QPFuwEqBgDQ 00:00:20.34
/gift https://www.youtube.com/watch?v=QPFuwEqBgDQ 3
/gift https://www.youtube.com/watch?v=QPFuwEqBgDQ 5.54

If the second grather than 60 then crops only 60 seconds of the video. Sample start times: 8, 1:23, 01:23, 1:23:45, 01:23:45. Start time can be used with milliseconds for example 8.123 or 01:23.456. Show Information: The video informations can be seen with "show-info" parameter with all other parameters as below.

/gift https://www.youtube.com/watch?v=QPFuwEqBgDQ 00:00:04 5 show-info

License

The MIT License (MIT)

Copyright (c) 2016 nerezo

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Telegram bot application that converts and crops specified videos and sends the related telegram timeline. youtube or vimeo links can be used.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published