RceBot group bot repository https://vk.com/rce_bot | FAQ
- VK API self-written library
- SauceNAO image reverse search support
- Agromonitoring support
- Openweathermap support
- Allow to create custom keyboards
- JDK 8
- MySQL Server
-h --help
- Show help
-c --config [PATH_TO_CONFIG]
- Path to the configuration file (default bot.ini|../bot.ini|../../bot.ini|config/bot.ini)
-t --token [TOKEN]
- Group token (Permissions: messages, offline) (can be specified in bot.ini)
-lp --longpoll
- Use Long Polling to receive a messages (Default)
-cb --callback [TOKEN]
- Use Call Back to receive a message
-cd --confirmcode [value]
- Confirmation to add server to the CallBack API (get value from the group API administration panel in VK)
-tm --test --testmode
- Test Mode, don't sends logs, reply only to admin
-n --names [PATH_TO_FILE]
Path to file with the names (regex) that the bot responds to, separated by commas
-aid --adminid [ADMIN_ID]
- Admin ID (e.g. your VK page's ID)
-v --apiversion [VERSION]
- set VK API version (default 5.130)
- Install pre-requisites, MySQL and JDK8 or JRE8
- Download the latest release from the Releases tab
- Unpack the release
- Specify your options in config/bot.ini
- If your database is not running yet, start now
- Start the bot by running:
java -jar RceBot-*-RELEASE.jar
- If you don't have docker, install it
- Download the latest docker release from the Releases tab (DockerHub will be implemented at a later date)
- Unpack the release
- Specify your options in config/bot.ini
- Get and start the database container (this is optional, you can run it directly on the host)
docker run -d \
--env MYSQL_PORT=3306 \
--env MYSQL_ROOT_PASSWORD=${ROOT_PASSWORD_HERE} \
--env MYSQL_ROOT_HOST=% \
--env MYSQL_USER=${USERNAME_HERE} \
--env MYSQL_PASSWORD=${USER_PASSWORD_HERE} \
mysql:latest
- Load the rce-bot-vk container
docker load < rce-bot-vk_docker.tar.gz
- Start the container (append
-tm
to the LAUNCH_ARGS to start in test mode (only responds to admin's messages))
docker run -d \
--env JMX_HOST=0.0.0.0
--env JMX_PORT=9010
--env LAUNCH_ARGS= -lp -aid ${ADMIN_ID_HERE}
-v "$PWD/config:/app/config"
- If you don't have docker, install it
- Download the latest docker release from the Releases tab (DockerHub will be implemented at a later date)
- Unpack the release
- Specify your options in config/bot.ini and docker-compose
- Run it with:
docker-compose up -d
NOTE: you can check the logs via: docker-compose logs
while in the project folder
- Install Maven
- Clone repostitory and move into the directory
git clone https://github.com/petya136900/rce-bot-vk.git
cd rce-bot-vk
- Build the project
mvn clean package
- Maven will now build and output the app into
./target
Apache License