{"id":20415532,"url":"https://github.com/ir-engine/ir-bot","last_synced_at":"2025-04-12T17:06:42.187Z","repository":{"id":253613871,"uuid":"843997162","full_name":"ir-engine/ir-bot","owner":"ir-engine","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-03T01:22:18.000Z","size":480,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":13,"default_branch":"dev","last_synced_at":"2025-04-12T17:06:26.842Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ir-engine.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-08-18T04:07:55.000Z","updated_at":"2025-04-02T03:08:36.000Z","dependencies_parsed_at":"2025-04-12T17:05:00.013Z","dependency_job_id":null,"html_url":"https://github.com/ir-engine/ir-bot","commit_stats":{"total_commits":182,"total_committers":13,"mean_commits":14.0,"dds":0.3296703296703297,"last_synced_commit":"bf1018090c2a9077d0103647e2129fde53e97511"},"previous_names":["ir-engine/ir-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ir-engine%2Fir-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ir-engine%2Fir-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ir-engine%2Fir-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ir-engine%2Fir-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ir-engine","download_url":"https://codeload.github.com/ir-engine/ir-bot/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248602311,"owners_count":21131615,"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-11-15T06:16:36.896Z","updated_at":"2025-04-12T17:06:42.161Z","avatar_url":"https://github.com/ir-engine.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bot API\n\n```ts\nimport { Vector3 } from 'three'\nimport { EtherealEngineBot } from '@ir-engine/ir-bot/src/bot'\nimport { BotHooks } from '@ir-engine/ir-bot/src/bot/enums/BotHooks'\n\nconst maxTimeout = 10 * 1000\nconst bot = new EtherealEngineBot({ name: 'bot-1', headless: false, verbose: false })\nconst vector3 = new Vector3()\n\nconst domain = process.env.APP_HOST\nconst locationName = 'test'\nconst sqrt2 = Math.sqrt(2)\n\ndescribe('My Bot Tests', () =\u003e {\n\n  beforeAll(async () =\u003e {\n    await bot.launchBrowser()\n    await bot.enterLocation(`https://${domain}/location/${locationName}`)\n    await bot.delay(1000)\n    await bot.runHook(BotHooks.InitializeBot)\n  }, maxTimeout)\n\n  afterAll(async () =\u003e {\n    await bot.delay(1000)\n    await bot.quit()\n  }, maxTimeout)\n\n  test('Can spawn in the world', async () =\u003e {\n    expect(\n      vector3.copy(await bot.runHook(BotHooks.GetPlayerPosition)).length()\n    ).toBeLessThan(sqrt2 * 2) // sqrt2 * 2 is the default size of our spawn area\n  })\n\n})\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fir-engine%2Fir-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fir-engine%2Fir-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fir-engine%2Fir-bot/lists"}