diff --git a/Shitpost.py b/Shitpost.py index 4a7ad6c..886a767 100644 --- a/Shitpost.py +++ b/Shitpost.py @@ -16,10 +16,14 @@ class Shitpost(commands.Cog): def __init__(self, bot): self.bot = bot self.hdConImpatientEvents = [] - with open('black.txt') as zwart: - self.zwarte_lijst = [line.rstrip('\n') for line in zwart] - with open('white.txt') as wit: - self.witte_lijst = [line.rstrip('\n') for line in wit] + try: + with open('black.txt') as zwart: + self.zwarte_lijst = [line.rstrip('\n') for line in zwart] + with open('white.txt') as wit: + self.witte_lijst = [line.rstrip('\n') for line in wit] + except: + self.zwarte_lijst = ["___", "___, ___", "___, ___, ___"] + self.witte_lijst = ["A", "B", "C"] self.insult = ['koekenbakker','stumperd','knurft','oelewapper','klungel','stoethaspel', 'onnozelaar','beunhaas','uilskuiken','bamibal','zwakzinnige','oenemeloen', 'klaphark','rompeknonker','bal gehakt','ongewassen vlerk','droeftoeter','omgedraaid pak hagelslag',