SomeoneElse37 / BattleBot

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

split into multiple files? #6

Open lenscas opened 7 years ago

lenscas commented 7 years ago

Currently battlebot.py is pretty large. Maybe we should give some things their own file? I personally was thinking of moving the help dictionary to its own file(s) as it is currently spanning from line 1713 to 2062. Some other candidates are

Should or shouldn't we do this? Also, if we do start to use multiple files are there other things that need their own file?

SomeoneElse37 commented 7 years ago

Yeah, probably not a bad idea. The main reason I didn't do anything like this in the past is that I wasn't entirely clear on how multiple-file programs in Python work. I know in Java, you normally just put each class in its own file, but that's not so much the case in Python (at least, according to the book I learned Python from); and in C/C++, including a header you wrote and including a header in the standard library use different syntax, so I just didn't bother.