Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/regidf12/Vedmenko_vk_bot
ðĪðŽVK bot to facilitate work
https://github.com/regidf12/Vedmenko_vk_bot
assistant bot python vk
Last synced: 22 days ago
JSON representation
ðĪðŽVK bot to facilitate work
- Host: GitHub
- URL: https://github.com/regidf12/Vedmenko_vk_bot
- Owner: regidf12
- License: apache-2.0
- Created: 2022-07-28T14:45:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-11T22:13:45.000Z (over 1 year ago)
- Last Synced: 2024-07-30T21:00:07.091Z (4 months ago)
- Topics: assistant, bot, python, vk
- Language: Python
- Homepage:
- Size: 59.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vkontakte_bot :robot:
The bot facilitates the work of Vedmenko production employees.## Installation :gear:
If you are cloning a project, run it first, otherwise you can download the source on the release page and skip this step.git clone https://github.com/White-prince/Vedmenko_vk_bot.git
You will need to install the libraries before starting the assistantpip install vk_api
You will also need a token to run your bot## Usege :information_source:
The token can be obtained in the community settings, you can also log in through your profile. Insert the token into the config file.TOKEN = ''
To send notifications to admins, use their idadmin_id = ''
Write the command in the terminal:
python vk_bot.py
## About the code :electron:
- The file config.py contains login informationTo send messages we use:
def send_some_msg(id_user, message, keyboard=None):
post = {'user_id': id_user, 'message': message, 'random_id': 0}
if keyboard is not None:
post['keyboard'] = keyboard.get_keyboard()
else:
pass
session.method("messages.send", post)Code base :
if __name__ == '__main__':
All other features are pretty standard.Hope this code helps you