SOBotics / Botpy

A python framework for creating chatbots on the StackExchange network.
Other
5 stars 1 forks source link

Document location.txt format #34

Open tripleee opened 4 years ago

tripleee commented 4 years ago

I get an error message that my location.txt is not valid, but I can't find any documentation to suggest what it should contain or how it ought to be formatted.

Looking at the source code, it seems that the file should have exactly two non-blank lines. Why is that? What should they contain?

I would have expected a single line to be acceptable, and simply be used verbatim.

double-fault commented 4 years ago

I've inspected the files of old bots on my computer, and looks like the first line is the user, while the second line is the name of the instance. Why it's so, ... well ... I don't really remember. If you'd want it to be changed to a single line, I can do that sometime later, should be a simple fix (IIRC).

So, just to be clear, currently, if you have an instance with location tripleee/EC2, your location.txt should be something like

tripleee
EC2