mirror of
https://github.com/nichkara/InfinitumBotty.git
synced 2026-06-10 22:26:23 +02:00
19 lines
542 B
Python
19 lines
542 B
Python
#!/usr/bin/env python
|
|
# -*- coding: UTF-8 -*-
|
|
|
|
from FaustBot.Model.HanDatabaseProvider import HanDatabaseProvider
|
|
import csv
|
|
HanDBProvider = HanDatabaseProvider()
|
|
wordList = open("HangmanLog")
|
|
wordListWords = csv.reader(wordList, delimiter=';', quotechar='|')
|
|
randomChoicePool = []
|
|
for word in wordListWords:
|
|
print(word)
|
|
print(word[1].strip())
|
|
no = False
|
|
for char in ['ä','ü','ö','ß']:
|
|
if char.upper() in word[1].strip().upper():
|
|
no = True
|
|
if not no:
|
|
HanDBProvider.addWord(word[1].strip())
|