Skip to content
/ vk-bot Public

Chat bot for VK social network that is able to perform simple tasks

License

Notifications You must be signed in to change notification settings

xlammer/vk-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vk-bot

Chat bot for VK social network that is able to perform simple tasks via plugins.

How it works

You provide login and password that are used to authenticate the application allowing access to messages and other stuff. Application listens to every event happening with specified account (currently only chat messages are handled). Bot answers in private or group chat to specific commands.

Currently supported features

  1. Tubmlr - posts random picture from specified tumblr blog. /t command.
  2. Giphy - post random gif (or matching given keyword) from Giphy service. /g <keyword> command.
  3. Stickers - posts random sticker from owned and predefined collection. /s command.

Setting up the bot

Requirements

  1. Register a standalone application in VK
  2. Install Chrome driver and specify it's location in application.properties file.
  3. Create secret.properties file with following content
bot.client.id=<application id given by vk when registering an app>
bot.secret.key=<secret key given by vk when registering an app>
vk.user.email=<bot's email or phone>
vk.user.password=<bot's password>

Optional

  1. Register Tumblr app to get secret and consumer keys and add tumblr blog.
  2. Get Giphy API key or use beta key dc6zaTOxFJmzC
  3. Add following to the secret.properties file
tumblr.consumer.secret=<tumblr secret>
tumblr.consumer.key=<tumblr customer key>
tumblr.photo.source.blog=xxx.tumblr.com

giphy.api.key=<giphy api key>

About

Chat bot for VK social network that is able to perform simple tasks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages