A simple Twitter Bot written in Elixir
TwitterBot is free software under le license GNU v3 http://www.gnu.org/licenses/
If available in Hex, the package can be installed as:
-
Add twitterBot to your list of dependencies in
mix.exs
:def deps do [{:twitterBot, "~> 0.0.1"}] end
-
Ensure twitterBot is started before your application:
def application do [applications: [:twitterBot]] end
- Set the environment variables:
TWITTER_CONSUMER_KEY
TWITTER_CONSUMER_SECRET
TWITTER_ACCESS_TOKEN
TWITTER_ACCESS_SECRET
-
Edit config file config/config.exs
-
create the database and tables with
iex -S mix install
or
mix amnesia.create -db Database --disk
(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