{"id":15375176,"url":"https://github.com/matricali/s0urce-bot","last_synced_at":"2025-04-04T19:47:04.207Z","repository":{"id":80874589,"uuid":"132368608","full_name":"matricali/s0urce-bot","owner":"matricali","description":"s0urce.io bot","archived":false,"fork":false,"pushed_at":"2018-05-07T18:56:29.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T04:41:23.718Z","etag":null,"topics":["bot","browser-bot","browser-game","s0urce"],"latest_commit_sha":null,"homepage":"https://s0urce.io","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/matricali.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-06T19:17:08.000Z","updated_at":"2023-05-20T13:35:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"e446832a-d262-4160-9bcc-f02b83f615bd","html_url":"https://github.com/matricali/s0urce-bot","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"884df7a75b4916c3a882f7c9ea555458a1d7ae5f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matricali%2Fs0urce-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matricali%2Fs0urce-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matricali%2Fs0urce-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matricali%2Fs0urce-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matricali","download_url":"https://codeload.github.com/matricali/s0urce-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247240069,"owners_count":20906764,"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":["bot","browser-bot","browser-game","s0urce"],"created_at":"2024-10-01T14:01:48.804Z","updated_at":"2025-04-04T19:47:04.187Z","avatar_url":"https://github.com/matricali.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# s0urce.io BOT\n\n### How to use\n* Go to http://source.io, pick a name and start the game.\n* In your browser, open the developer console (typically: View -\u003e Developer -\u003e JavaScript Console)\n* Paste the content of [bot.js](bot.js).\n* Type `bot.start()` to start the bot\n* Type `bot.stop()` if you need to stop it.\n\n\n### Minified version\n    var bot,dc=null,hl=null,mensaje=\"puto el que lee! 👽\",frecuencia=1e3,esperar=5e3,db=\"https://raw.githubusercontent.com/jorge-matricali/s0urce-bot/master/data/words.json\";function log(o,t){null===t\u0026\u0026(t=\"background: #ffffff; color: #666\"),console.log(\"%c[!]%c \"+o,\"background: #222; color: #bada55\",t)}function lw(o){log(o,\"background: #ffffff; color: #ffcc00\")}function le(o){log(o,\"background: #ffffff; color: #ff0000\")}$(\"#window-msg2\").remove(),$(\"#desktop-wrapper\").css(\"top\",\"0\"),bot={start:function(){$.getJSON(db,function(o){dc=o,bot.automate()})},automate:function(){!1===$(\"#player-list\").is(\":visible\")\u0026\u0026(lw(\"Target list must be open\"),$(\"#desktop-list\").children(\"img\").click());var o=$(\"#player-list\").children(\"tr\"),t=o.eq(Math.floor(Math.random()*o.length))[0];if(log(\"New target \"+t.innerText),t.click(),$(\"#window-other-button\").click(),-1===$(\"#window-other-port1\").attr(\"style\").indexOf(\"opacity: 1\"))return lw(\"Hack too expensive, waiting...\"),void setTimeout(bot.automate,esperar);$(\"#window-other-port1\").click(),hl=setInterval(bot.hl,frecuencia)},hl:function(){if(!0===$(\"#targetmessage-input\").is(\":visible\"))return $(\"#targetmessage-input\").val(mensaje),$(\"#targetmessage-button-send\").click(),void bot.restart();bot.go()},restart:function(){bot.stop(),bot.automate()},stop:function(){null!==hl||null!==defLoop?(clearInterval(hl),hl=null,log(\"Stopped loops\")):le(\"No loops to stop\")},go:function(){var o=$(\".tool-type-img\").prop(\"src\");if(\"http://s0urce.io/client/img/words/template.png\"!==o)if(\"http://www.s0urce.io/client/img/words/template.png\"!==o){if(!0===dc.hasOwnProperty(o)){var t=dc[o];return log(\"Found word: [\"+t+\"]\"),void bot.submit(t)}log(\"Found word: [\"+o+\"]\"),le(\"Not seen in the word list\")}else le(\"Can't find the word link...\"),bot.restart();else le(\"Can't find the word link...\"),bot.restart()},submit:function(o){$(\"#tool-type-word\").val(o),$(\"#tool-type-word\").submit()}};\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatricali%2Fs0urce-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatricali%2Fs0urce-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatricali%2Fs0urce-bot/lists"}