Comments (14)
Edit the service file so it has the flags you need.
/etc/systemd/system/discord-stock-ticker.service
from discord-stock-ticker.
from discord-stock-ticker.
yes but, the path for your db looks wrong, just make it -db=./discordbottickers.db
from discord-stock-ticker.
Thanks. Do I have to stop the bot and make the tickers again or will this save the tickers that I have already?
from discord-stock-ticker.
Thanks. Do I have to stop the bot and make the tickers again or will this save the tickers that I have already?
be sure and do systemctl daemon-reload
after every change to the systemd file, otherwise the changes wont take affect.
once the service has been started with the -db
flag, any bots added will be stored in the DB. If you have bots running now added before you added the flag, they will need to be created again after restarting the service with the flag.
you can verify the DB is being using if you see this log line when you start the service INFO[0000] Will be storing state in ./discordbottickers.db
you can see logs with journalctl -f -u discord-stock-ticker
from discord-stock-ticker.
Thank you very much for this
from discord-stock-ticker.
Thank you very much for this
Anytime! I think the best way to make documentation is just to write stuff down when you teach someone new. 9740d88
from discord-stock-ticker.
Thank you very much for this
Anytime! I think the best way to make documentation is just to write stuff down when you teach someone new. 9740d88
Is this correct?
from discord-stock-ticker.
you must have an error in your systemd file, share it here and ill take a look.
from discord-stock-ticker.
you must have an error in your systemd file, share it here and ill take a look.
I use
systemctl edit discord-stock-ticker.service
To edit
from discord-stock-ticker.
that isnt my template, what you should have is:
https://github.com/rssnyder/discord-stock-ticker/blob/master/discord-stock-ticker.service
[Unit]
Description=discord-stock-ticker
Wants=basic.target
After=basic.target network.target
Before=sshd.service
[Service]
SyslogIdentifier=discord-stock-ticker
StandardOutput=syslog
StandardError=syslog
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/etc/discord-stock-ticker/discord-stock-ticker -db=./discordbottickers.db
Restart=always
[Install]
WantedBy=multi-user.target
from discord-stock-ticker.
Will the db file create itself or do I have to make one first?
from discord-stock-ticker.
Will the db file create itself or do I have to make one first?
do not create it first it will create the file itself.
from discord-stock-ticker.
I just copied and pasted the one you sent.
from discord-stock-ticker.
Related Issues (20)
- Can't DELETE crypto ticker after having just started it HOT 1
- Anyone can help me? HOT 1
- ALL Public Bots Offline?
- GME price tracker bot for discord HOT 1
- [BUG] GME bot seems to be down HOT 1
- [BUG] - Floor ERRO[1627] Error getting floor rates: invalid character '<' looking for beginning of value HOT 1
- Solanart floor bot show 0.00000 HOT 2
- [BUG] Ticker stop update HOT 6
- Magic eden floor price ticker returns `Bad data` error HOT 2
- [BUG] Update docker-compose.yml file HOT 2
- [BUG] docker compose file does not save and persist the tickers in the db HOT 2
- [BUG] does not allow adding SPY bot. HOT 1
- [BUG] Price displayed in USD instead of EUR HOT 1
- [BUG] - ERROR NFT TICKER HOT 1
- [BUG] Delete floor doesn't work HOT 1
- [BUG] HOT 1
- [NEW Release] Create a new release HOT 4
- Market HOT 1
- [BUG] XRP Ticker HOT 1
- [BUG] Fetching stock prices from Yahoo does not work HOT 4
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 discord-stock-ticker.