-
Notifications
You must be signed in to change notification settings - Fork 0
/
quotes.py
97 lines (88 loc) · 2.03 KB
/
quotes.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
def getquote():
import random, inspirobot
from googletrans import Translator
x = Translator()
#this whole thing is to prevent quotes about "keep breathing" because they're everywhere and they're boring
quote = None
for q in inspirobot.flow():
if "breath" in q.quote:
continue
quote = q.quote
break
if quote is None: quote = getquote()
quote = x.translate(quote, dest="it").text
quote = f'"_{quote}_"\n\n\t\t- ' + random.choice(BOOK_AUTHORS + QUOTE_AUTHORS)
return quote
QUOTE_AUTHORS = [
#imprenditori
"Bill Gates",
"Elon Musk",
"Steve Jobs",
#politici
"Andrea di Piero",
"Hirohito",
"Winston Churchill",
"Regina Elisabetta II",
"Cleopatra",
"Mao Zedong",
"Silvio Berlusconi",
"Josif Stalin",
"Matteo Renzi",
"Mario Draghi",
"Vladimir Lenin",
"Xi Jinping",
"Giuseppe Garibaldi",
"Barack Obama",
"Napoleone Bonaparte",
"Abramo Lincoln",
"Giulio Cesare",
"John F. Kennedy",
"Benito Mussolini",
"Matteo Salvini",
#filosofi
"Albert Einstein",
"Charles Darwin",
"Sigmund Freud",
"Marco Aurelio",
"Karl Marx",
"Immanuel Kant",
"Sun Tsu",
"Socrate",
"Aristotele",
#scrittori, poeti, cantanti
"George Orwell",
"Leo Tolstoy",
"William Shakespeare",
"Dante Alighieri",
"Virgilio",
"Giuseppe Ungaretti",
"Giacomo Leopardi",
"Micheal Jackson",
#gente varia
"Cristoforo Colombo",
"Martin Luther King",
"Madre Teresa",
"Nelson Mandela",
"Mahatma Ghandi",
#cagate
"Barbiere di Siviglia",
"Gosig Ratta",
"Leo Mesi",
"Rocktopus",
"Giovanni Giorgio",
]
BOOK_AUTHORS = [
"Sun Tsu, ne \"L'Arte della Guerra\"",
'Platone, ne "La Repubblica"',
'Leo Tolstoy, in "Guerra e Pace"',
'Marco Aurelio, in "Meditazioni"',
'George Orwell, in "1984"',
'Karl Marx, ne "Il Capitale"',
'Karl Marx, ne "Il Manifesto Comunista"',
"Charles Darwin, ne \"L'Origine delle Specie\"",
'Albert Einstein, "La Teoria della Relatività"',
"Laerte, in Amleto",
"Virgilio, nella Divina Commedia",
"Immanuel Kant, in \"Critica alla ragion pura\"",
"Giuseppe Garibaldi al suo esercito, prima di iniziare la spedizione dei mille",
]