{"id":16203079,"url":"https://github.com/michidk/simpletwitterbotapi","last_synced_at":"2025-03-19T07:30:31.638Z","repository":{"id":73861350,"uuid":"94419182","full_name":"michidk/SimpleTwitterBotAPI","owner":"michidk","description":" A very simple API/Twitter4J wrapper for Twitter bots.","archived":false,"fork":false,"pushed_at":"2024-03-26T10:53:34.000Z","size":31,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T16:11:29.160Z","etag":null,"topics":["api","bot","twitter","twitter-api","twitter-bot","twitter-client","twitter4j","twitterbot","twitterbots"],"latest_commit_sha":null,"homepage":"https://twitter.com/miichidk","language":"Java","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/michidk.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}},"created_at":"2017-06-15T08:42:24.000Z","updated_at":"2023-06-06T01:11:50.000Z","dependencies_parsed_at":"2024-10-27T20:21:16.177Z","dependency_job_id":"660c6955-8623-492d-b384-c0f89b3413b0","html_url":"https://github.com/michidk/SimpleTwitterBotAPI","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/michidk%2FSimpleTwitterBotAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michidk%2FSimpleTwitterBotAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michidk%2FSimpleTwitterBotAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michidk%2FSimpleTwitterBotAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michidk","download_url":"https://codeload.github.com/michidk/SimpleTwitterBotAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243974003,"owners_count":20377286,"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":["api","bot","twitter","twitter-api","twitter-bot","twitter-client","twitter4j","twitterbot","twitterbots"],"created_at":"2024-10-10T09:51:18.881Z","updated_at":"2025-03-19T07:30:31.632Z","avatar_url":"https://github.com/michidk.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleTwitterBotAPI\nA very simple API/Twitter4J wrapper for Twitter bots.\n\n## Example\n```java\n        TwitterBot bot = new TwitterBot();                          // create a new Twitter bot instance\n\n        Behaviour behaviour = BehaviourBuilder.create()\n            .listen(\n                new KeywordEvent(\"lookingForThisKeyword\"),          // looking for \"lookingForThisKeyword\" and \"#mySuperCoolHashtag\" on Twitter\n                new HashtagEvent(\"mySuperCoolHashtag\")              // can also be achieved by calling listen() on the builder multiple times\n            ).filter(\n                new RTFilter()                                      // exclude tweets that starts with \"RT, a lot of bots do this\n            ).react(\n                new QueuedReplyReaction(\"Test!\", \"Test 123\")\n        ).build();\n\n        bot.addBehaviour(behaviour);                                // add the behaviour to the bot instance\n\n        // or do everything in one statement\n        bot.addBehaviour(\n            BehaviourBuilder.create().listen(\n                new MentionEvent(\"miichidk\")\n            ).react(\n                new LikeReaction()\n            ).build()\n        );\n\n        // ... add as many behaviours as you want\n        \n        bot.start();\n```\n\n## Setup\nTo create a new bot/bot behaviour just orientate on the example code.\nAuthentication works via Twitter4j. Follow the instructions [here](http://twitter4j.org/en/configuration.html). To authenticate via ConfigurationBuilder, just pass the built configuration object to the constructor of TwitterBot().\n\n## Dependencies\n- Java 8\n- [Guava](https://github.com/google/guava)\n- [Twitter4j](http://twitter4j.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichidk%2Fsimpletwitterbotapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichidk%2Fsimpletwitterbotapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichidk%2Fsimpletwitterbotapi/lists"}