Setting up your own splinterlands bot

@snackaholic · 2021-12-05 13:33 · splinterlands
While searching for a splinterlands bot I stumbled across the following github repository: https://github.com/alfficcadenti/splinterlands-bot The author of the project https://hive.blog/@a1492dc or https://hive.blog/@splinterlava has graciously made his project open source and thus created the possibility for all of us to let the computer do some of the DEC farming work for us. Here is a little documentation on how you can get this bot running locally too.
Auf der Suche nach einen Bot für Splinterlands bin ich über folgendes Github Repository gestolpert: https://github.com/alfficcadenti/splinterlands-bot Der Author des Projekts https://hive.blog/@a1492dc bzw. https://hive.blog/@splinterlava hat uns sein Projekt in Form von open source software zur Vergügung gestellt und somit für uns alle die Möglichkeit geschaffen, den Computer ein wenig für uns arbeiten zu lassen. Es folgt eine kleine Dokumentation wie auch ihr diesen Bot lokal auf euren Computer zum laufen bringen könnt.

Download the source code

Navigate to the terminal and execute the following command: git clone https://github.com/alfficcadenti/splinterlands-bot.git

Den Quellcode runterladen

Navigiere in das Terminal und führe folgenden Befehl aus: git clone https://github.com/alfficcadenti/splinterlands-bot.git
​![1.png](https://images.hive.blog/DQmQbvXTZzjnFGrkYJT6NNihEFjC2tDu64R4w45qLFe8x7G/1.png)


Install the dependencies

execute the following command cd splinterlands-bot/ npm install

Die Abhängigkeiten installieren

führe folgenden Befehl aus cd splinterlands-bot/ npm install
![2.png](https://images.hive.blog/DQmZ6Bw2nW4ciJHeztNpE3kXNRyuckhBVqfiRrLWTfYgjiK/2.png)

Configure the bot

execute the following command vim .env-example to open the configuration file. Change the values of account and password. Execute mv .env-example .env to rename the file to .env

Den Bot konfigurieren

führe folgenden Befehl aus: vim .env-example um die Konfigurationsdatei zu öffnen und ändere entsprechend die Werte von Account und Passwort. mv .env-example .env um diese umzubennen.
![4.png](https://images.hive.blog/DQmfPeZujXsBF6sS6jwvstUd8reofeNLystVb349hyAoiPq/4.png) ![5.png](https://images.hive.blog/DQmeBJk8HvBBZBXZNTzZ5H5cGgBGDFUer7bvE9K46yp4dqS/5.png)

Start the bot

execute the following command: node main.js

Den Bot starten

führe folgenden Befehl aus: node main.js

6.png

Hint: Hit ctrl + c to stop the bot.


Add splinterlands service

To start the bot automatically at system startup, the following steps are necessary

cd /etc/systemd/system vim splinterlands.service ![8.png](https://images.hive.blog/DQmRwP3ftLuKbF1pBV8CdBnLWVwndqxKK2tpuqYAVjGYcs5/8.png) inform the system about the new service systemctl daemon-reload start the new service systemctl start splinterland.service read the logs of the service journalctl -u splinterland.service -f to start the service after boot systemctl enable splinterland.service

Bot als Service bereitstellen

Um den Bot beim Systemstart automatisch mit zu starten, sind ein paar Handgriffe notwendig

cd /etc/systemd/system vim splinterlands.service ![8.png](https://images.hive.blog/DQmRwP3ftLuKbF1pBV8CdBnLWVwndqxKK2tpuqYAVjGYcs5/8.png) über den neuen Service informieren systemctl daemon-reload den Service starten systemctl start splinterland.service die logs des Services ansehen journalctl -u splinterland.service -f beim booten mitstarten systemctl enable splinterland.service

9.png 10.png

#linux #deutsch
Payout: 0.000 HBD
Votes: 18
More interactions (upvote, reblog, reply) coming soon.