|
@@ -164,7 +164,7 @@ def do_command(self, connection, event):
|
|
|
level, xp, xpspent, totalxp, karma, coin, coinspent, coingiven, ap, apspent = GameHelpers.get_info(self, user)
|
|
level, xp, xpspent, totalxp, karma, coin, coinspent, coingiven, ap, apspent = GameHelpers.get_info(self, user)
|
|
|
if ap < 0:
|
|
if ap < 0:
|
|
|
ap = 0
|
|
ap = 0
|
|
|
- connection.privmsg(replyto, message + "Level: " + str(level) + grey + ", " + reset + "XP: " + grey + str(xpspent) + "/" + reset + str(round(xp, 4)) + grey + ", " + reset + "AP: " + str(int(ap)) + grey + ", " + reset + "coin: " + str(coin) + grey + "[S " + str(coinspent) + ", G " + str(coingiven) + "], " + reset + "karma: " + str(round(karma, 4)))
|
|
|
|
|
|
|
+ connection.privmsg(replyto, message + "Level: " + str(level) + grey + ", " + reset + "XP: " + grey + str(xp) + "/" + reset + str(round(totalxp, 4)) + grey + ", " + reset + "AP: " + str(int(ap)) + grey + ", " + reset + "coin: " + str(coin) + grey + "[S " + str(coinspent) + ", G " + str(coingiven) + "], " + reset + "karma: " + str(round(karma, 4)))
|
|
|
|
|
|
|
|
elif command.split()[0] == "levelup":
|
|
elif command.split()[0] == "levelup":
|
|
|
if cmdtype == "help": #Display help text.
|
|
if cmdtype == "help": #Display help text.
|
|
@@ -218,7 +218,7 @@ def do_command(self, connection, event):
|
|
|
return
|
|
return
|
|
|
elif not event.target == connection.get_nickname():
|
|
elif not event.target == connection.get_nickname():
|
|
|
if not command.split()[1] in self.channels[event.target].users():
|
|
if not command.split()[1] in self.channels[event.target].users():
|
|
|
- connection.privmsg(replyto, red + trigger.split()[2] + reset + " is not present.")
|
|
|
|
|
|
|
+ connection.privmsg(replyto, red + trigger.split()[1] + reset + " is not present.")
|
|
|
return
|
|
return
|
|
|
|
|
|
|
|
level, xp, xpspent, totalxp, karma, coin, coinspent, coingiven, ap, apspent = GameHelpers.get_info(self, event.source.nick)
|
|
level, xp, xpspent, totalxp, karma, coin, coinspent, coingiven, ap, apspent = GameHelpers.get_info(self, event.source.nick)
|