This your main Everlife.ai avatar node. You can use it to set up your personal avatar and connect it to the Everlife network.
The Avatar Node comes in two flavors:
- A Docker version that can be deployed on any VPS or Mac or Linux machine
- A non-docker Windows version (Docker is hard to install on Windows)
This document contains instructions for setting up and running your Everlife avatar on your own machines.
Windows 10
- Install NodeJS (install all the options including Python and the dotnet framework required by node-gyp
- Install Yarn
Windows 7 Ensure all the following are installed:
- Donet framework 4.5.2
- VC++ 2017
- Python 2.7
- NodeJS 8+
- Windows 7 (Service Pack One)
- Yarn (latest)
In order to get a working avatar with a wallet, you need to set it up and configure it.
- Unzip the avatar into your
$HOME
directory - Go to the command prompt and navigate to your node directory
run setup
In order to safeguard the wallet, it is password protected. So that the user does not need to type in this password again and again it needs to be saved once. In order to do this the setup will ask you for a password.
When prompted for the password, pick a good password that you are comfortable with. PLEASE REMEMBER THIS PASSWORD AS IT CANNOT BE RECOVERED.
In order to get a working avatar with a wallet, you need to set it up and configure it. First you need to set up the required docker containers. Perform the following steps:
- Unzip the avatar into your
$HOME
directory - Go to the command prompt and navigate to your node directory
./run.sh setup
In order to safeguard the wallet, it is password protected. So that the user does not need to type in this password again and again it needs to be saved once. In order to do this you need to do the following:
-
Load the node
$> ./run.sh enter
-
Go to the Stellar Server
# cd services/elife-stellar
-
Run the password manager
# node pw
When prompted for the password, pick a good password that you are comfortable with. PLEASE REMEMBER THIS PASSWORD AS IT CANNOT BE RECOVERED.
In order to start chatting with your avatar, you can use the built-in chatbot. To start this use:
Windows:
C:\Users\John\elife> run gui
Docker:
$> ./run.sh gui
This will launch a GUI which you can use to chat with your avatar.
To chat with your bot 'on the go' (on your mobile phone for example) you can use the excellent Telegram application. The avatar has a communication channel that integrates with Telegram. The steps for doing this are as follows:
-
Go to Telegram to create a bot by typing
/newbot
command to create your telegram bot.
-
The BotFather will ask you for a name and username, then generate an authorization token for your new bot. The token is a string along the lines of 110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw.
-
We now need to link this new telegram bot with your avatar. To do this, simply save the telegram token in
elife.data/cfg.env
(in Windows this is simplycfg.env
in your local directory)
If you have installed a node earlier than version 3.0.0, you will need to migrate your stellar wallet to be compatible with the latest version.
Steps to do this:
-
Make a backup of your existing password file. You will find this hidden file in your
elife.data
folder with the name.luminate-pw
:mv elife.data/.luminate-pw <some backup location>
-
Regenerate your Stellar Wallet password by using the same steps above. You must use the same password you have used when setting up the node.
#> ./run.sh enter # cd services/elife-stellar # node pw
-
Download lu-migrate
-
Point it to your stellar account. You will find your account in the
elife.data/stellar/
directory. The filename will end with.stellar
yarn start --to v2 /path/to/elife.data/stellar/wallet-...
-
Start your node and you're ready to go
The avatar's data always lives in the folder elife.data
(for Docker)
and C:\data
(for Windows). It is recommended that you backup this
folder as it contains your Everchain
, your database
, and your
Stellar
wallet.
Now that your avatar is set up you can start him up by running
C:\Users\John\elife> run avatar (Windows)
$> ./run.sh avatar (Docker)
Now you can go to your interface of choice (Telegram or QWERT) and start chatting!
Simply type Ctrl+C
in the terminal window to stop your avatar from
running.
Your avatar will keep running in the background and is expected to run even after you restart your machine. To stop the avatar please run:
$> ./run.sh stop
-
Join the Everlife network through an Avatar Hub.Contact our support channel in discord to get your invite code to join the hub and inform your avatar that you would like to join this Avatar Hub by saying
/use_invite xxxx
-
Install and try out various skills
/help /install calculator /install what-wine
Feel free to provide us your feedback and issues in our discord support channel.