SomeoneElse37 / BattleBot

A Discord bot that rolls dice and stuff.
MIT License
0 stars 1 forks source link

added excel generation code #3

Closed lenscas closed 7 years ago

lenscas commented 7 years ago

This allows users to generate excel files(actually .ods files but whatever ) containing the characters The added module depends on https://github.com/eea/odfpy This is done using /excel

There also was a bug that prevented people from making characters which is now solved(not the same as issue #2 ). In short there was a place where you wanted (I think) the boolean false but forgot capitalization of the "f" thus python saw it as a variable and crashed. See stracktrace below

Traceback (most recent call last):
  File "battlebot.py", line 1631, in on_message
    reply = getReply(message.content, message)
  File "battlebot.py", line 1589, in getReply
    return makeChar(codex[1:], message.author)
  File "battlebot.py", line 1088, in makeChar
    createGuild(author.server)
  File "battlebot.py", line 1073, in createGuild
    database[guild.id] = Battle(guild)
  File "battlebot.py", line 792, in __init__
    self.moved = false      # True if the current character has /moved during their turn
NameError: name 'false' is not defined
SomeoneElse37 commented 7 years ago

Accepted and merged via console commands, because reasons