Comments (4)
Hey @vlp-git, as shown in sample_config.yaml, you'll need to put database_filepath
(and store_filepath
) under a storage
key. Else the code won't be able to find them :)
from nio-template.
hi @anoadragon453 !
First, thanks for your job !
I juste tried to run it out of the box with a basic config: homeserver + user + passwd and there is an error:
Traceback (most recent call last): File "main.py", line 104, in <module> asyncio.get_event_loop().run_until_complete(main()) File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File "main.py", line 34, in main config = Config(config_filepath) File "/home/vlp/nio-template/config.py", line 45, in __init__ self.database_filepath = self._get_cfg(["storage", "database_filepath"], required=True) File "/home/vlp/nio-template/config.py", line 89, in _get_cfg raise ConfigError(f"Config option {'.'.join(path)} is required") errors.ConfigError: Config option storage.database_filepath is required
I just modified the config file for the db as below:
storage:
database_filepath: "bot.db"
store_filepath: "/home/vlp/nio-template/store
I have posted it here because that could help to build the quickstart guide.
Thanks again !
from nio-template.
Thanks for the quick answer !
What do you mean by "storage key" ! I think that I have missed smth...
from nio-template.
The options need to be prefaced by storage:
nio-template/sample.config.yaml
Lines 22 to 27 in a49c789
from nio-template.
Related Issues (14)
- Homeserver flood with sync messages HOT 3
- Factor out YAML config file reading
- If e2e dependencies are not installed, login will fail with Error logging in: No store class was provided in the config. HOT 6
- Add docs for installing encryption deps and enabling encryption HOT 3
- Add testing examples
- Timeout errors HOT 1
- Does not work with Synapse v1.38+
- Misleading in the way it fires `invite` events HOT 1
- ClientConnectionError HOT 1
- Don't (try to) react to messages older than max(session creation, room join)
- Pills aren't spec compliant HOT 1
- Include an message when bot doesn't support encrypted rooms but is in one
- Bot re-execute all commands after re-joining the room
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 nio-template.