Skip to content
ilya trubnikov edited this page Feb 24, 2017 · 10 revisions

Welcome to the hydrogen-chat-bot-py wiki!

Setting up bot

Note: You must have python3, python3-pip, git and project requirements installed in your system!

On Ubuntu you can install it using:

$ sudo apt-get install -y python3 python3-pip git
$ sudo pip3 install -r requirements.txt

To Set up just clone it from Github using following command:

git clone https://github.com/ihydrogen/hydrogen-chat-bot-py.git

Starting bot

run "bot.py" file in project directory

./bot.py

or

python3 bot.py

Log in to your account

After you were logged in, run script again and select your account

Select your account

And start Long Pooling thread (you can also do it running script with -L arg)

Start long pool thread

You must see this:

You must see this

To check that everything is working properly, please send a message with the text "Ping" on account

You'll see "OK"

You must see this


Problems with installing and running

ImportError: No module named 'requests'

Use this:

pip3 install requests

ImportError: No module named 'vk'

To fix you need to install vk api wrapper for python using command:

pip3 install vk

ImportError: No module named 'termcolor'

install this package:

pip3 install termcolor