-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathsettings.py
63 lines (55 loc) · 2.08 KB
/
settings.py
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
60
61
62
63
# Quality criteria
MIN_NB_CONTRIBUTORS = 5
MIN_NB_RATINGS = 15
MIN_RELIABILITY_SCORE = 20
MIN_TOURNESOL_SCORE = 25
# Date range for videos to be considered
DAYS_TOO_RECENT = 7 # min 1 week old
DAYS_TOO_OLD = 210 # max 7 months old
# Number of days to wait before tweeting the same uploader again
DAYS_ALREADY_TWEETED_UPLOADER = 30
# Daily tweet text template
tweet_text_template = {
"en": (
"Today, I recommend '{title}' by {twitter_account}"
", compared {n_comparison} times on #Tournesol\U0001F33B by {n_contributor}"
" contributors, favorite criteria:\n- {crit1}\n- {crit2}"
),
"fr": (
"Aujourd'hui, je recommande '{title}' de {twitter_account}"
", comparée {n_comparison} fois sur #Tournesol\U0001F33B par {n_contributor}"
" contributeurs, critères favoris:\n- {crit1}\n- {crit2}"
),
}
# Monthly top contributor text template
graph_title_text_template = {
"en": ("Who compared the most on Tournesol in {month_name} {year}?"),
"fr": ("Qui a le plus comparé sur Tournesol en {month_name} {year}?"),
}
graph_ylabel_text_template = {
"en": ("Number of public comparisons"),
"fr": ("Nombre de comparaisons publiques"),
}
top_contrib_tweet_text_template = {
"en": (
"Thank you to all our contributors. Here are the top 10 from last month. "
"And you, how many comparisons did you make last month? \U0001F33B"
),
"fr": (
"Merci à tout·es nos contributeur·rice·s. Voici le top 10 du mois dernier. "
"Et vous, combien de comparaisons avez-vous faites le mois dernier? \U0001F33B"
),
}
top_contrib_tweet_image_alt = {
"en": (
"A bar plot showing the users who contributed the most comparisons on Tournesol "
"in the last month."
),
"fr": (
"Un graphique en barres représentant les utilisateur·rice·s ayant effectué le "
"plus de comparaisons sur Tournesol durant le mois dernier."
),
}
# Name of the Discord channel where the twitterbot will post its tweets.
# An empty value won't trigger any post.
TWITTERBOT_DISCORD_CHANNEL = "twitter"