forked from mispy-archive/kaomojify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.rb.sample
44 lines (36 loc) · 1.55 KB
/
config.rb.sample
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
# coding: utf-8
module Kaomojify
module Config
# Your Twitter app auth details from https://dev.twitter.com/
CONSUMER_KEY = ""
CONSUMER_SECRET = ""
OAUTH_TOKEN = ""
OAUTH_TOKEN_SECRET = ""
USERNAME = "m1sp" # Username of account to kaomojify
NAME = "Mispy" # Name to append kaomoji to
# Mapping of emotion names to kaomoji
KAOMOJI = {
happy: ["(o^_^)o", "o(^_^o)"],
angry: ["(◣_◢)", "(*≧m≦*)", "(¬、¬)", "o(≧o≦)o"],
sad: ["o(╥﹏╥)o", "(╥﹏╥)", "(T.T;)"],
loving: ["(✿ ♥‿♥)", "✿♥‿♥✿"],
excited: ["O(≧▽≦)O", "(ノ≧∀≦)ノ"],
silly: ["(・∀・)", "(●´艸`)"],
technical: ["φ(..)", "φ(^ω^*)ノ"]
}
# Unknown kaomoji will be used if there's insufficient
# data to analyse emotional state
KAOMOJI[:unknown] = ["┗(・ω・;)┛", "(•ิ_•ิ)?"]
# If no emotion deviates more than DEVIATION_THRESHOLD
# from the average, we will use the "neutral" kaomoji
DEVIATION_THRESHOLD = 0.05
KAOMOJI[:neutral] = ["(。・・。)", "(。^^。)"]
PATH_ROOT = File.expand_path(File.dirname(__FILE__))
PATH_EMOTIONS = File.join(PATH_ROOT, "emotions.tsv")
PATH_CORPUS = File.join(PATH_ROOT, "#{USERNAME}.json")
# If set, ignore tweets that begin with MT/QT.
IGNORE_QUOTES = false
# If false, use the last 100 tweets. If true, use the tweets obtained in the most recent sync. If there are no such tweets, assume a neutral emotion.
USE_ONLY_NEW_TWEETS = false
end
end