Closed johnbuluba closed 6 years ago
I never seen yawl, json makes more sense for me.
- Giveaway retweet:
lang:en
Why is there a :
after retweet? Is that because of the lang or is that included in the search?
@nivong In yaml when a line starts with - is a sequence and when it contains : its a mapping. The python analogies would be - for list and : for dictionary.
I selected this format so the user have more control over each query, adding option on per query base. So in this example the query is "Giveaway retweet" with an option lang=en
In the future it could be expanded with more options like this:
search:
queries:
- query without option
- query with language option:
lang: en
- query with age option:
max_age: 10
- query with both options:
lang:en
max_age:20
- query without option again
Omg that is amazing! yes that will be fantastic
So, in the last few days i changed the format of the config file, using yaml. The reason behind that is that some features that was requested need more settings and the json was already pretty messy.
Currently the new format is like
Also please check the new documentation https://yatcobot.readthedocs.io/en/dev/index.html
Any insight or opinion is welcome, before i merge it to master and becomes pretty much permanent