-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
59 lines (41 loc) · 1.26 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
*** Keys ***
You will need to the following twitter keys to your environment:
ENV['TWITTER_CONSUMER_KEY']
ENV['TWITTER_CONSUMER_SECRET']
ENV['OAUTH_TOKEN']
ENV['OAUTH_TOKEN_SECRET']
You will need to set an application password for admin functions (to set players and flush database)
ENV['APP_PASSWORD']
If you use Foreman (see below), you can simply add them to the .env file in root dir. Format as follows:
TWITTER_CONSUMER_SECRET=1234567890
OAUTH_TOKEN_SECRET=1234567890
OAUTH_TOKEN=14060355-1234567890
TWITTER_CONSUMER_KEY=1234567890
APP_PASSWORD=1234567890
*** Start Processes ***
With Foreman
$ bundle exec foreman start
default port is 5000
Only webserver, with shotgun:
$ bundle exec shotgun web.rb
Only twitter filter:
$ bundle exec ruby twitter_filter.rb
All need a redis server running, eg.
$ redis-server /Volumes/data/dev/redis/redis.conf
See example config file here: https://github.com/antirez/redis/blob/557a74e56308325874c573e6dd2c6b228136de86/redis.conf
*** Pages ***
/
Main game
/admin
To set players
To see functional tweet formats (needs password)
/players
See IDs of current players
/power
See see public tweets
/show-errors
See twitter-filter status messages
/delete-errors
Clear twitter-filter status messages
/flush
Flush redis db (needs password)