Giter Club home page Giter Club logo

storyteller's Introduction

Storyteller

A twitter bot to provide interactive microfiction!

This python3 program uses tweepy and nltk to create procedural quest dialogue and post it to twitter for all who tweet at it.

Build Docker Image to Test

  1. Run the command in the bash shell from the project directory:

    docker build . -t storyteller-bot

  2. Test your build from powershell with

    docker run -it -e CONSUMER_KEY=$StorytellerConsumer -e CONSUMER_SECRET=$StorytellerConsumerSecret -e ACCESS_TOKEN=$StorytellerAccess -e ACCESS_TOKEN_SECRET=$StorytellerAccessSecret storyteller-bot

Build and Deploy Docker Image

Note: Everything is in the bash shell for this part! This is also for digital ocean droplets, and twitter-bot-drop is the name of my digital ocean droplet that I'm making and storyteller-bot is the docker image name.

  1. If you don't have anything registered as a docker-machine (which controls multiple instances of docker images) then you make one.

    docker-machine create --driver digitalocean --digitalocean-access-token YOUR-ACCESS-TOKEN-HERE twitter-bot-drop

  2. Then this command sets your current shell environment to be your docker-machine shell environment

    eval $(docker-machine env twitter-bot-drop)

  3. Then in your new shell you build your docker image

    docker build . -t storyteller-bot

  4. And then deploy it! The only difference here is the -id instead of -it which just tells it you want it to be detached from your shell.

    docker run -id -e CONSUMER_KEY=$StorytellerConsumer -e CONSUMER_SECRET=$StorytellerConsumerSecret -e ACCESS_TOKEN=$StorytellerAccess -e ACCESS_TOKEN_SECRET=$StorytellerAccessSecret storyteller-bot

Et voila! Functioning docker image running on your droplet (which is called a docker-machine)

References

storyteller's People

Contributors

reakain avatar blinkthethings avatar

Watchers

James Cloos avatar  avatar

Forkers

blinkthethings

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.