Kaynağa Gözat

updated karma

tBKwtWS 7 yıl önce
ebeveyn
işleme
ca174d5d06
3 değiştirilmiş dosya ile 7 ekleme ve 4 silme
  1. 1 1
      commands/common.py
  2. 2 2
      commands/games.py
  3. 4 1
      commands/public.py

+ 1 - 1
commands/common.py

@@ -164,7 +164,7 @@ class GameHelpers():
             joins = 1
         if total_messages < 1:
             total_messages = 1
-        karma = ((((messages / 30) - joins) / 5) + ((total_words / 10) - total_messages) / 40) - (given * received)
+        karma = (((messages / 30) - joins) + ((total_words / 10) - total_messages) / 100) - (given * received)
         return userrecord[1], xp, userrecord[0], karma
 
 class StatisticsHelpers():

+ 2 - 2
commands/games.py

@@ -20,7 +20,7 @@ def do_command(self, connection, event):
     
     if command == "cmd" or command == "cmds" or command == "commands":
         if cmdtype == "cmd":
-            connection.privmsg(replyto, grey + "Games: " + CH.ccc(self, "8ball") + CH.ccc(self, "dice") + CH.ccc(self, "players") + CH.ccc(self, "levelup")[:-2] + ".")
+            connection.privmsg(replyto, grey + "Games: " + CH.ccc(self, "8ball") + CH.ccc(self, "dice") + CH.ccc(self, "player") + CH.ccc(self, "levelup")[:-2] + ".")
     
     elif command.split()[0] == "8ball":
         if cmdtype == "help":    #Display help text.
@@ -127,7 +127,7 @@ def do_command(self, connection, event):
             else:   # Invalid amount of arguments.
                 connection.privmsg(replyto, "Too many arguments. For help type: " + blue + self.helpchar + "dice" + reset + ".")
     
-    elif command.split()[0] == "players":
+    elif command.split()[0] == "player":
         if cmdtype == "help":    #Display help text.
             connection.privmsg(replyto, "Displays a users game info. User optional.")
         elif cmdtype == "cmd":

+ 4 - 1
commands/public.py

@@ -17,6 +17,8 @@ def do_command(self, connection, event):
         return
     
     # The actual commands:
+    print(command)
+    print(command.split()[0])
     if command == "test":
         if cmdtype == "help":    #Display help text.
             if len(command.split()) is not 1:
@@ -50,6 +52,7 @@ def do_command(self, connection, event):
             connection.privmsg(replyto, "Replace the " + italic + "! " + reset + "prefix of any comand with " + italic + self.helpchar + " " + reset + "for help with a specific command. Request the command list with: " + blue + "!cmd")
             connection.privmsg(replyto, grey + "Example: " + reset + blue + self.helpchar + "help")
     
+    
     elif command.split()[0] == "stopgreet":
         if cmdtype == "help":    #Display help text.
             if len(command.split()) is not 1:
@@ -128,7 +131,7 @@ def do_command(self, connection, event):
             if len(command.split()) is not 1:
                 return
             connection.privmsg(replyto, "Sets you away, optionally with reason. Affects the !seen command.")
-            connection.privmsg(replyto, grey + "Usage: " + blue + "!away " + reset + italic + "rreason")
+            connection.privmsg(replyto, grey + "Usage: " + blue + "!away " + reset + italic + "reason")
             
         elif cmdtype == "cmd":
             queries.create_ifnot_onrecord(self, event.source.nick)