Code: Alles auswählen
if data[1] =='privmsg':
filedata = open('Befehle.txt', 'r')
actions = []
for line in filedata:
parts = line.split('===')
actions.append((parts[0].split(), parts[1]))
words = parts[0]
response = parts[1]
print words
for words, response in actions:
if all(words in text for words in words):
irc.send('PRIVMSG ' + channel + ' :' + response)
Sobald ich aber die zweite Zeile versuche passiert etwas komisches:

Das "/r" ist ein Fehler meinerseits. Das ist egal. Der Teil der mit Pong anfängt soll eigentlich den Ping des Servers beantworten. "was?? ?? ??" soll eigentlich "lala fick" beantworten. Wie man sieht klappt es nicht.
Ich denke man merkt langsam wie oberflächlich ich Python beherrsche
