{"id":16822607,"url":"https://github.com/strml/js-slack-bot","last_synced_at":"2025-04-11T03:13:16.597Z","repository":{"id":42669293,"uuid":"60551008","full_name":"STRML/js-slack-bot","owner":"STRML","description":"REPL in Slack.","archived":false,"fork":false,"pushed_at":"2022-12-13T23:23:49.000Z","size":444,"stargazers_count":4,"open_issues_count":11,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T03:13:11.099Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/STRML.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-06T18:27:09.000Z","updated_at":"2021-01-22T19:27:10.000Z","dependencies_parsed_at":"2023-01-28T15:48:05.391Z","dependency_job_id":null,"html_url":"https://github.com/STRML/js-slack-bot","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/STRML%2Fjs-slack-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/STRML%2Fjs-slack-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/STRML%2Fjs-slack-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/STRML%2Fjs-slack-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/STRML","download_url":"https://codeload.github.com/STRML/js-slack-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248333603,"owners_count":21086200,"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":"2024-10-13T11:04:59.982Z","updated_at":"2025-04-11T03:13:16.578Z","avatar_url":"https://github.com/STRML.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JS-Slack-Bot\n\nRuns short commands in a secure environment and translate babel code.\n\n\n### Usage\n\n* Add your [Bot Token](http://\u003corg\u003e.slack.com/services/new/bot) to `.token`\n* Deploy this somewhere, or run locally\n* `@` mention the bot to run a command.\n\n### Commands\n\nSend it any string with or without backticks to eval directly.\n\nSend it `babel:` or `babel-node6:` (colon is optional) to transpile code.\n\nThe Babel transpiler uses most common plugins. You can add your own easily.\n\n\n#### Example\n\n```\n@jsbot Array(16).join(\"wat\" - 1) + \" Batman!\"\nNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN Batman!\n```\n\n\n```\n@jsbot babel `\u003cTimeHacker timeTohack=\"tooMuchTime\" /\u003e`\nReact.createElement(TimeHacker, { timeTohack: \"tooMuchTime\" });\n```\n\n```\n@jsbot babel class Foo {}\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar Foo = function Foo() {\n  _classCallCheck(this, Foo);\n};\n```\n```\n@jsbot babel-node6 class Foo {}\nlet Foo = class Foo {};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrml%2Fjs-slack-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrml%2Fjs-slack-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrml%2Fjs-slack-bot/lists"}