Skip to content

Collect, curate, and schedule tweets for anon Twitter accounts

License

Notifications You must be signed in to change notification settings

ReformedDevs/anonbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

146 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

anonbot

Build Status GoDoc MIT License

This web application simplifies the task of managing a group of anon Twitter accounts. Here is a brief overview of the features that are provided:

  • Users can sign up and suggest tweets
  • Staff can approve tweets and schedule them
  • Tweets are automatically tweeted on schedule

Building

Assuming you have Docker and GNU Make installed, building the entire application is as simple as running:

make

The makefile uses the golang:latest container to compile the application, so there is no need to have the Go toolchain installed locally. Once compilation is complete, you can run the application with:

dist/anonbot

Usage

anonbot requires an SQL database (currently limited to PostgreSQL) which must be initialized before first use. Assuming you have PostgreSQL running locally, the command would look like this:

dist/anonbot \
    --db-driver postgres \
    --db-args 'dbname=postgres user=postgres' \
    migrate

Once the migration completes, the command to launch the web server would look like this:

dist/anonbot \
    --db-driver postgres \
    --db-args 'dbname=postgres user=postgres' \
    --secret-key abcdefg \
    --server-addr :8000 \
    --server-url 'http://example.com' \
    --twitter-consumer-key abcdefg \
    --twitter-consumer-secret abcdefg

Visit apps.twitter.com to register an application and obtain the consumer key and secret for the command above.

Using with Docker

The application can easily be run in a Docker container. To build the container, simply open a terminal and run:

docker build -t reformeddevs/anonbot .

About

Collect, curate, and schedule tweets for anon Twitter accounts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published