ackwell / ninjabot

Ninjabot is not 'Just Another Bot'
10 stars 8 forks source link

dice.py error #64

Closed ackwell closed 11 years ago

ackwell commented 11 years ago
Traceback (most recent call last):
  File "ninjabot.py", line 367, in message_recieved
    self.on_incoming(msg)
  File "ninjabot.py", line 378, in on_incoming
    self.handle_command(msg)
  File "ninjabot.py", line 402, in handle_command
    self.triggers[command](msg)
  File "C:\Users\kyouko\Documents\Code\python\ninjabot\plugins\misc\dice.py", line 82, in trigger_dice
    self.bot.privmsg(msg.channel, '{:s}: {:r} (total {:d})'.format(msg.nick, numbers, sum(numbers)))
ValueError: Unknown format code 'r' for object of type 'str'
Mause commented 11 years ago

Any good arguments for providing a type with the new syntax?