nogerman.py

Intended for use on live public servers.
17 posts Page 1 of 2 First unread post
matthew0901
Deuced Up
Posts: 105
Joined: Wed Nov 21, 2012 12:23 pm


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.
Last edited by matthew0901 on Sun Dec 21, 2014 7:01 pm, edited 9 times in total.
Buffet_of_Lies
Mapper
Mapper
Posts: 402
Joined: Tue Nov 20, 2012 11:25 am


Stops the people that talk in german to talk in english.
Sounds like you could use a lesson or two in English yourself.
matthew0901
Deuced Up
Posts: 105
Joined: Wed Nov 21, 2012 12:23 pm


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
Buffet_of_Lies
Mapper
Mapper
Posts: 402
Joined: Tue Nov 20, 2012 11:25 am


Finally, someone who appreciates my rapier wit!
TB_
Post Demon
Post Demon
Posts: 998
Joined: Tue Nov 20, 2012 6:59 pm


Might want to remove "Hallo". It's a very generic word that isn't special only for German.
LinktersHD
Deuced Up
Posts: 124
Joined: Thu Nov 01, 2012 12:27 pm


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....
matthew0901
Deuced Up
Posts: 105
Joined: Wed Nov 21, 2012 12:23 pm


I did make it?
Influx
Mapper
Mapper
Posts: 163
Joined: Sat Dec 15, 2012 5:11 pm


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)
cow
Deuced Up
Posts: 56
Joined: Mon Nov 05, 2012 7:40 pm


At least credit Influx for using his script as a base, you've only made a few minor changes at most.
LinktersHD
Deuced Up
Posts: 124
Joined: Thu Nov 01, 2012 12:27 pm


Yep it's copied, all he changed was the connection name, "Germandict" and replacing all Polish words with German words.
Defero200
Deuce
Posts: 8
Joined: Tue Apr 16, 2013 1:07 pm


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
matthew0901
Deuced Up
Posts: 105
Joined: Wed Nov 21, 2012 12:23 pm


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 :)
Defero200
Deuce
Posts: 8
Joined: Tue Apr 16, 2013 1:07 pm


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
matthew0901
Deuced Up
Posts: 105
Joined: Wed Nov 21, 2012 12:23 pm


Making other language scripts atm
matthew0901
Deuced Up
Posts: 105
Joined: Wed Nov 21, 2012 12:23 pm


Version 1.2 is out, I fixed some bugs
17 posts Page 1 of 2 First unread post
Return to “Completed Releases”

Who is online

Users browsing this forum: No registered users and 4 guests