Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.99 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.99 KB

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 .