{"id":23968661,"url":"https://github.com/vutran/lctv-bot","last_synced_at":"2026-05-18T00:32:41.527Z","repository":{"id":149399745,"uuid":"48227763","full_name":"vutran/lctv-bot","owner":"vutran","description":null,"archived":false,"fork":false,"pushed_at":"2016-01-03T20:38:51.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-10T17:19:58.180Z","etag":null,"topics":["bot","lctv","livecoding","xmpp"],"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/vutran.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-12-18T09:56:07.000Z","updated_at":"2017-09-21T21:23:30.000Z","dependencies_parsed_at":"2023-04-17T13:05:01.099Z","dependency_job_id":null,"html_url":"https://github.com/vutran/lctv-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vutran/lctv-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Flctv-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Flctv-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Flctv-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Flctv-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vutran","download_url":"https://codeload.github.com/vutran/lctv-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Flctv-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33160477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bot","lctv","livecoding","xmpp"],"created_at":"2025-01-07T00:15:41.328Z","updated_at":"2026-05-18T00:32:41.495Z","avatar_url":"https://github.com/vutran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create a new Client\n\n```javascript\nconst client = new Client({\n  username: 'this is your LCTV username',\n  password: 'this is your LCTV password'\n})\n```\n\n# API\n\n## Client\n\n### Methods\n\n`Client.connect()`\n\n`Client.send(stanza, debug)`\n\n`Client.join(channel)`\n\n`Client.ping()`\n\n`Client.say(message)`\n\n\n### Events\n\n`online`\n\n`connect`\n\n`disconnect`\n\n`reconnect`\n\n`error`\n\n`stanza`\n\n`lctv:cmd`\n\n`lctv:cmd:admin`\n\n`lctv:presence`\n\n`lctv:message`\n\n`lctv:iq`\n\n`lctv:channel:join`\n\nWhen a user joins the channel.\n\n`lctv:mentions:all`\n\nWhen any user is mentioned.\n\n`lctv:mentions:self`\n\nWhen someone mentions your username.\n\n`lctv:follower:error`\n\n`lctv:follower:new`\n\n`lctv:follower:run`\n\n`lctv:timer:tick`\n\n\n## Bot\n\n```javascript\nconst bot = new Bot({\n  client: client,\n  channel: 'the name of the channel you wish to join',\n  mentions: 'the username you wish to listen to for mentions',\n  admins: 'the username that can execute admin commands',\n  plugins: [] // a list of plugins to load\n})\n\n\n```\n\n### Methods\n\n`getName()`\n\nRetrieves the name of the bot (used for desktop notifications).\n\n`start()`\n\nStarts the bot.\n\n`join()`\n\nJoins the channel.\n\n`on(event, handler)`\n\nListen to an event, and runs the handler when emitted.\n\n`createStore(name)`\n\nCreates a new storage device\n\n`retrieveUser(username, options, callback)`\n\nRetrieve a new User instance (loads from the user store if already exists)\n\n`retrieveUserFromStanza(stanza, callback)`\n\nRetrieve a User instance from a stanza.\n\n`saveUser(user)`\n\nSaves the user to the user store.\n\n`setContent(key, value)`\n\nSets the value for the given key.\n\n`getMentionsFromValue(value)`\n\nRetrieves a list of mentions.\n\n`getUsers()`\n\nRetrieves a list of online users.\n\n**Content Keys**\n\n|Key|Description|\n|---|---|\n|`botName`|The name of the bot. (Default: LCTV Bot)|\n\n`getContent(key)`\n\nRetrieves the value of the given key.\n\n`createCommand(cmd, description, handler)`\n\nCreates a new command.\n\n`getCommands()`\n\nRetrieve existing commands.\n\n`speak(message)`\n\nSpeaks the message to the room (voice).\n\n`say(mesasge)`\n\nPrints the message to the room (text).\n\n`notify(message)`\n\nDisplays a desktop notification.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvutran%2Flctv-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvutran%2Flctv-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvutran%2Flctv-bot/lists"}