{"id":19234581,"url":"https://github.com/smitelli/twanslationparty","last_synced_at":"2025-04-21T05:31:10.421Z","repository":{"id":5509667,"uuid":"6709981","full_name":"smitelli/twanslationparty","owner":"smitelli","description":"Takes tweets stored in a twitstash database and reposts them in hilariously corrupted English.","archived":true,"fork":false,"pushed_at":"2022-05-03T21:37:53.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T13:09:12.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"aspnetboilerplate/aspnetboilerplate","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smitelli.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":"2012-11-15T19:12:40.000Z","updated_at":"2024-02-17T00:13:50.000Z","dependencies_parsed_at":"2022-07-09T11:30:46.820Z","dependency_job_id":null,"html_url":"https://github.com/smitelli/twanslationparty","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/smitelli%2Ftwanslationparty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smitelli%2Ftwanslationparty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smitelli%2Ftwanslationparty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smitelli%2Ftwanslationparty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smitelli","download_url":"https://codeload.github.com/smitelli/twanslationparty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250002184,"owners_count":21359064,"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-09T16:14:20.020Z","updated_at":"2025-04-21T05:31:10.173Z","avatar_url":"https://github.com/smitelli.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"twanslationparty\n================\n\nTakes tweets stored in a twitstash database and reposts them in hilariously\ncorrupted English.\n\nby [Scott Smitelli](mailto:scott@smitelli.com)\n\nInstallation and Requirements\n-----------------------------\n\ntwanslationparty requires a PHP 5.3 installation with the following extensions\ninstalled:\n\n*   `curl` - Required by the `twitteroauth` library for making HTTP requests\n*   `mbstring` - I believe `twitter-text-php` requires this for Unicode\n*   `pdo` - Provides a database interface\n*   `pdo-mysql` - PDO driver for MySQL\n\nAdditionally, a live [twitstash](https://github.com/smitelli/twitstash) database\nneeds to exist on your server. twanslationparty will add an additional table to\nthat database to store state.\n\n### To install:\n\n1.  Set up [twitstash](https://github.com/smitelli/twitstash) and run it at\n    least once to \"prime\" the database.\n\n2.  `git clone --recursive https://github.com/smitelli/twanslationparty.git \u0026\u0026\n    cd twanslationparty`\n\n3.  Run the following query on your `twitstash` database to add a table:\n\n        CREATE TABLE IF NOT EXISTS `twanslationparty` (\n          `original_id` bigint(20) unsigned NOT NULL,\n          `translated_id` bigint(20) unsigned DEFAULT NULL,\n          PRIMARY KEY (`original_id`),\n          KEY `translated_id` (`translated_id`)\n        ) ENGINE=MyISAM DEFAULT CHARSET=utf8;\n\n    Change `twanslationparty` to something more meaningful, especially if you\n    plan to run multiple instances.\n\n4.  `cp config.ini-sample config.ini`\n\n5.  Edit `config.ini` to suit your fancy. You'll have to put your own Twitter\n    and MySQL authentication in there. Remember to set the table name to match\n    the query from step 3.\n\n6.  `./twanslationparty.sh`\n\nAny **new** tweets that are present in the twitstash database will be mangled by\nthe translation API, then reposted to the configured Twitter account. Each tweet\nwill be stored in twanslationparty's table as it is successfully sent. Retweets\nwill never be sent. Location info will be sent if it is present and the target\nTwitter account has this support enabled. Any tweets that become \"deleted\" in\nthe twitstash database will be deleted from the target Twitter account.\n\nIf twitstash has a huge number of unsent tweets, it's entirely likely that the\ntarget account will saturate its daily tweet limit and stop updating. To prevent\nthis from happening, you can run a query to bulk-mark all existing tweets as\nhaving been sent, even if that is not actually the case. Starting point query:\n\n    INSERT INTO `twanslationparty` (`original_id`) (\n      SELECT `id` FROM `tweets` WHERE `deleted` IS NULL AND `rt_id` = 0\n    );\n\nAny tweets added after this query runs should post in a timely manner.\n\nThe shell script is designed to never output anything, so you can add it in a\ncron job without worrying about spamming root's inbox with junk. A file called\n`debug.log` will be created (and appended) by the shell script. There's\ngenerally nothing useful in that file.\n\nAcknowledgements\n----------------\n\nThis package includes Abraham Williams' `twitteroauth` library.\n\u003chttps://github.com/abraham/twitteroauth\u003e\n\nThis package also includes Matt Sanford's `twitter-text-php` library.\n\u003chttps://github.com/mzsanford/twitter-text-php\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmitelli%2Ftwanslationparty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmitelli%2Ftwanslationparty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmitelli%2Ftwanslationparty/lists"}