Check in initial version w/o Twitter
This commit is contained in:
commit
3cca692dfe
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
**/__pycache__
|
||||
**/*.swp
|
20
bot.py
Executable file
20
bot.py
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import random
|
||||
|
||||
def runner():
|
||||
print(forge)
|
||||
|
||||
def percentage():
|
||||
return random.randint(0, 100)
|
||||
|
||||
def readfiles(file1 = "part1.txt", file2 = "part2.txt", file3 = "part3.txt"):
|
||||
for f in (file1, file2, file3):
|
||||
with open(f) as o:
|
||||
yield o.readlines()
|
||||
|
||||
def forge():
|
||||
pa, pb, pc = (random.choice(i).strip() for i in readfiles())
|
||||
return "%i%% %s %s %s" % (percentage(), pa, pb, pc)
|
||||
|
||||
|
4
part1.txt
Normal file
4
part1.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
der Befragten
|
||||
der Österreicher
|
||||
der niederösterreichischen Bananenbauern
|
5
part2.txt
Normal file
5
part2.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
sind dafür, dass
|
||||
sind dagegen, dass
|
||||
befürchten, dass
|
||||
freuen sich darauf, dass
|
||||
hoffen, dass
|
Loading…
Reference in a new issue