Skip to content

matteoredaelli/twitterBot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 

TwitterBot

A simple Twitter Bot written in Elixir

License

TwitterBot is free software under le license GNU v3+ http://www.gnu.org/licenses/

Installation

If available in Hex, the package can be installed as:

  1. Add twitterBot to your list of dependencies in mix.exs:

    def deps do [{:twitterBot, "~> 0.0.1"}] end

  2. Ensure twitterBot is started before your application:

    def application do [applications: [:twitterBot]] end

setup

  1. Set the environment variables:
TWITTER_CONSUMER_KEY
TWITTER_CONSUMER_SECRET
TWITTER_ACCESS_TOKEN
TWITTER_ACCESS_SECRET
  1. Edit config file config/config.exs

  2. create the database and tables with

iex -S mix install

or

mix amnesia.create -db Database --disk

run

(old releases) mix run -e 'TwitterBot.main "opensource"' elixir --detached -S mix run -e 'TwitterBot.main "opensource"'

(latest releases) mix run --no-halt elixir --detached -S mix run --no-halt

About

A simple Twitter bot written in Elixir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages