{"id":26714988,"url":"https://github.com/tarlepp/unibot-dtc","last_synced_at":"2025-03-27T13:51:42.786Z","repository":{"id":27189656,"uuid":"30659898","full_name":"tarlepp/unibot-dtc","owner":"tarlepp","description":null,"archived":false,"fork":false,"pushed_at":"2015-02-14T15:23:55.000Z","size":152,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-09T21:52:34.332Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tarlepp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-11T17:23:08.000Z","updated_at":"2015-02-14T15:23:55.000Z","dependencies_parsed_at":"2022-08-17T17:10:59.544Z","dependency_job_id":null,"html_url":"https://github.com/tarlepp/unibot-dtc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarlepp%2Funibot-dtc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarlepp%2Funibot-dtc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarlepp%2Funibot-dtc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarlepp%2Funibot-dtc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarlepp","download_url":"https://codeload.github.com/tarlepp/unibot-dtc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245858845,"owners_count":20684057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-27T13:51:42.062Z","updated_at":"2025-03-27T13:51:42.780Z","avatar_url":"https://github.com/tarlepp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unibot-dtc\nDTC (Data Transfer Calculator) plugin for UniBot IRC bot.\n\n## Install\nTo your UniBot application. Remember to restart your bot after installation.\n\n```npm install git://github.com/tarlepp/unibot-dtc --save```\n\nAnd after that register plugin on IRC channels where you want to use it.\n\n```plugin [#channel] dtc```\n\n## Usage\nCurrently plugin supports following commands.\n\n### !dtc [megabytes to transfer] [your connection speed as megabits/s]\nThis command will calculate how long it will take to transfer specified amount of data with specified connection.\n\n## Configuration\nYou can configure this plugin adding ```dtc``` section to your UniBot ```config.js``` file. Example below with\ndefault values.\n\n```\nmodule.exports = { \n    ...\n    plugins: {\n        \"dtc\": {\n            \"moment\": {\n                \"locale\": \"\"\n            },\n            \"messages\": {\n                \"dtc\": \"${nick}: It will take about ${timeHumanize} to transfer ${size}MB over ${speed}Mbit/s connection.\",\n                \"dtcHelp\": \"Usage like !dtc [megabytes to transfer] [your connection speed as megabits/s], eg !dtc 1000 100\"\n            }\n        }\n    }\n};\n```\n\n### moment\nUsed locale setting within moment.js library, this will affect time formats.\n\n### messages.dtc\nMessage string that is shown within ```!dtc``` command. Following template variables are available with this message.\n\n```\ntimeExact\ntimeHumanize\nsize\nspeed\nnick \n```\n\n### messages.dtcHelp\nPrivate message that is said to user when he/she triggers ```!dtc``` command wit invalid parameters.\n\n## Libraries that plugin uses\n* [lodash](https://lodash.com/) - A JavaScript utility library delivering consistency, modularity, performance\n* [Moment.js](http://momentjs.com/) - Parse, validate, manipulate, and display dates in JavaScript\n* [moment-precise-range](https://github.com/mtscout6/moment-precise-range) - A moment.js plugin to display human readable date/time ranges with precision\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarlepp%2Funibot-dtc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarlepp%2Funibot-dtc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarlepp%2Funibot-dtc/lists"}