mirror of
https://github.com/nichkara/InfinitumBotty.git
synced 2026-06-10 22:26:23 +02:00
Initalize repo
This commit is contained in:
18
AdaptHanWordsFromLegacy.py
Normal file
18
AdaptHanWordsFromLegacy.py
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/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())
|
||||
Reference in New Issue
Block a user