159
176
serv.notice(nick, "Please enter a the name of a language, like french, german or spanish, or \"off\".")
162
elif "!voice " in message.lower() and nick in ["agent00tai", "kalikiana", "aroman", "lallenlowe", "Marin_M"]:
163
180
open("../voice", "a").write(message.split("!voice")[1].strip().lower() + "\n")
164
181
serv.mode("#elementary-dev", "+v " + message.split("!voice")[1].strip())
167
elif "!unvoice " in message.lower() and nick in ["agent00tai", "kalikiana", "aroman", "lallenlowe", "Marin_M"]:
168
185
content = open("../voice", "r").read()
169
186
open("../voice", "w").write(content.replace(message.split("!unvoice")[1].strip().lower() + "\n", ""))
170
187
serv.mode("#elementary-dev", "-v " + message.split("!unvoice")[1].strip())