Comments (6)
Since I moved to Rails, I've really preferred using YAML. Python doesn't have a builtin Yaml parser, but it does have an INI parser. Check out this: http://docs.python.org/library/configparser.html
from logbot.
Yeah, YAML is a lovely format that's also one of my favourite formats. JSON would come close though.
ConfigParser looks nice, but it only supports strings and ints by the looks of it. Then again, using spaces as separators would work well enough for keeping the list of channels.
from logbot.
I found this for reading/writing arrays in INIs http://stackoverflow.com/questions/4097139/reading-array-from-config-file-in-python
from logbot.
Still not as clean as how they would be shown in YAML ;-)
I'll do some prototyping on a separate branch.
from logbot.
Looks like the project used to have config file support at some point? aaa7200
Any specific reason you didn't include that in your (second?) rewrite?
from logbot.
Just convenience actually. Was trying to focus on the bot itself rather than this. It felt unnecessary at the time so I didn't readd it.
Glad you found that. I was looking for it earlier but couldn't remember which project that was in. :)
from logbot.
Related Issues (20)
- Stuff to add! :D HOT 1
- Crash on FTP Timeout HOT 6
- Bot crash with ftp timeout.
- Configurable Log folder location
- Suggestion: Grouping logs by month/year HOT 1
- Links from chat are not clickable in web
- Strip ASCII color codes or replace them with HTML colors HOT 2
- Crash upon accessing files in empty log dir HOT 3
- Stuck on Uploading to FTP... HOT 7
- Upgrade to the latest IRClib
- Please add support for making the nickname and username of the bot different from each other.
- Channel key support HOT 3
- Crash on too many IRC modes (network-specific?) HOT 5
- password authentication for nickservs for ability to send Pms to users HOT 1
- Suggestion: creating main index file/checking logs on program startup HOT 3
- Error in the writing index file process HOT 2
- Suggestions: New/update features HOT 3
- Username and SSL Support HOT 3
- issues with timeout it appears HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logbot.