mirror of
https://github.com/nichkara/InfinitumBotty.git
synced 2026-06-11 06:36:24 +02:00
Manipulation of how Hangman is counting score.
This commit is contained in:
@@ -288,7 +288,5 @@ class HangmanObserver(PrivMsgObserverPrototype):
|
|||||||
|
|
||||||
def giveExtraPointsInTime(self, nick):
|
def giveExtraPointsInTime(self, nick):
|
||||||
delta = time.time()-self.time
|
delta = time.time()-self.time
|
||||||
if delta <30:
|
|
||||||
self.addToScore(nick, 5)
|
|
||||||
if delta <60:
|
if delta <60:
|
||||||
self.addToScore(nick, 5)
|
self.addToScore(nick,int((60-delta)/6))
|
||||||
@@ -25,7 +25,7 @@ class IntroductionObserver(PrivMsgObserverPrototype):
|
|||||||
if not self.authenticated(nick, connection):
|
if not self.authenticated(nick, connection):
|
||||||
connection.send_back("Für die Nutzung von .me ist es zwingend erforderlich, einen registrierten Nick zu "
|
connection.send_back("Für die Nutzung von .me ist es zwingend erforderlich, einen registrierten Nick zu "
|
||||||
"haben sowie eingeloggt zu sein. Wie dies geht, erfährst du unter "
|
"haben sowie eingeloggt zu sein. Wie dies geht, erfährst du unter "
|
||||||
"https://freenode.net/kb/answer/registration", data)
|
"https://libera.chat/guides/registration", data)
|
||||||
return
|
return
|
||||||
intro_provider = IntroductionProvider()
|
intro_provider = IntroductionProvider()
|
||||||
msg = msg.split('.me')[1].strip()
|
msg = msg.split('.me')[1].strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user