anonbot

module
v0.0.0-...-b3ee4c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2017 License: MIT

README

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 .

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL