Page 1 of 2
nogerman.py
Posted: Mon Apr 08, 2013 7:57 pm
by matthew0901
Stop the users from speaking in German.
Adapted from Influx`s ktonolak.py
Code: Select all"""
"""
Stops the users that talk in german by telling them to talk in english.
Adapted from Influx`s ktonolak.py
By: Matthew0901
v1.2
"""
import string
def apply_script(protocol, connection, config):
class nogermanConnection(connection):
global germandict
germandict = {
'hallo',
'alter',
'welches',
'ihr',
'angebracht',
'beim',
'seufzer',
'null',
'ich',
'ein',
'auf',
'wiedersehen',
'dadurch',
'konnen',
'wer',
'kann',
'von',
'euch',
'deutsch',
'ist',
}
def on_chat(self, value, global_message):
message = string.lower(value)
for punc in string.punctuation:
message = message.replace(punc,"")
if any(german in message for german in germandict):
self.send_chat('Dies ist ein Englischer Server. Bitte schreibe in Englisch!')
return False
return connection.on_chat(self, value, global_message)
return protocol, nogermanConnection
Or you can download it
here.
Re: nogerman.py
Posted: Mon Apr 08, 2013 10:30 pm
by Buffet_of_Lies
Stops the people that talk in german to talk in english.
Sounds like you could use a lesson or two in English yourself.
Re: nogerman.py
Posted: Tue Apr 09, 2013 1:47 am
by matthew0901
Buffet_of_Lies wrote:Stops the people that talk in german to talk in english.
Sounds like you could use a lesson or two in English yourself.
Fixed that thanks lol :P
Re: nogerman.py
Posted: Tue Apr 09, 2013 2:20 am
by Buffet_of_Lies
Finally, someone who appreciates my rapier wit!
Re: nogerman.py
Posted: Tue Apr 09, 2013 6:40 am
by TB_
Might want to remove "Hallo". It's a very generic word that isn't special only for German.
Re: nogerman.py
Posted: Tue Apr 09, 2013 10:08 am
by LinktersHD
Hey,
You didn't make that script. You copied it from here:
http://forumarchive2.spadille.net/viewt ... cacd85d13a
Don't say you made it your self because it's identical to his....
Re: nogerman.py
Posted: Tue Apr 09, 2013 11:18 am
by matthew0901
I did make it?
Re: nogerman.py
Posted: Tue Apr 09, 2013 8:36 pm
by Influx
matthew0901 wrote:I did make it?
If that's true, it bears a striking similarity (and by that I mean it's pretty much identical) to the
noswear script that Oshawott made (
here's yours as a comparison), using my
KtoNOlak script as a base.
All you did is change the entries in the dictionary, the name of some of the variables (like sweardict becoming germandict) and put your name on it.
I also find it a bit of a coincidence that these scripts have recently appeared in a specific topic in the News Team forum, and you're part of the News Team...
Still 100% sure you made it?
(Heck, I should become an investigative journalist)
Re: nogerman.py
Posted: Tue Apr 09, 2013 9:22 pm
by cow
At least credit Influx for using his script as a base, you've only made a few minor changes at most.
Re: nogerman.py
Posted: Wed Apr 10, 2013 9:19 am
by LinktersHD
Yep it's copied, all he changed was the connection name, "Germandict" and replacing all Polish words with German words.
Re: nogerman.py
Posted: Thu Jul 04, 2013 12:33 pm
by Defero200
Dies ist ein English Speaking Server Bitte sprechen Englisch.
Lol thats in the script and it's wrong.
Change it to: "Dies ist ein Englischer Server. Bitte schreibe in Englisch!"
I'm german so I know it lol.
And add the following words to the german word "list":
'Wer'
'kann'
'von'
'euch'
'deutsch'
'ist'
So that would be good then.
The most guys just start with asking who german is
- Defero20
Your old friend :D
Re: nogerman.py
Posted: Thu Jul 04, 2013 5:57 pm
by matthew0901
Defero200 wrote:Dies ist ein English Speaking Server Bitte sprechen Englisch.
Lol thats in the script and it's wrong.
Change it to: "Dies ist ein Englischer Server. Bitte schreibe in Englisch!"
I'm german so I know it lol.
And add the following words to the german word "list":
'Wer'
'kann'
'von'
'euch'
'deutsch'
'ist'
So that would be good then.
The most guys just start with asking who german is
- Defero20
Your old friend :D
Hey old friend :D I updated the script since you know German :)
Re: nogerman.py
Posted: Sun Jul 21, 2013 10:24 pm
by Defero200
Ok thank you :3
What about if you join the Quakenet IRC again?
Join the channels:
#buildandshoot or #icecraft or #defero or #RisPas
Would be cool if you come again :3
Re: nogerman.py
Posted: Sat Jan 04, 2014 3:45 pm
by matthew0901
Making other language scripts atm
Re: nogerman.py
Posted: Sat Jan 04, 2014 4:24 pm
by matthew0901
Version 1.2 is out, I fixed some bugs