Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
AidarAzizov committed Apr 8, 2024
1 parent 667b654 commit f39a0ac
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

jobs:


build:
runs-on: ubuntu-latest
steps:
Expand All @@ -26,3 +27,9 @@ jobs:

- name: Test
run: make test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
files: cover.out
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
5) git push origin <ваш-логин>
6) В удаленном репозитории нажать _compare&pull request_

Также рекомендуем ознакомиться с подробной инструкцией для контрибьютеров -- README.md
Также рекомендуем ознакомиться с подробной инструкцией для контрибьютеров - <a href="https://github.com/firstcontributions/first-contributions">README.md</a>

## Tests
1) Если добавляется новая функциональность, то покрывайте ее тестами
Expand All @@ -19,4 +19,5 @@
1) Все пайплайны пройдут успешно
2) Новая функциональность будет покрыта тестами

После выполнения всех пунктов один из сотрудников проверит в ближайшее время PR и смержит его.
После выполнения всех пунктов один из сотрудников проверит в ближайшее время PR и смержит его.

18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
<img src="https://github.com/mail-ru-im/bot-python/blob/master/logo.png" width="100" height="100">
<img src="logo_bot.png" width="100" height="100">

# VK Teams Bot API for Golang
![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)
[![CircleCI](https://circleci.com/gh/mail-ru-im/bot-golang.svg?style=svg)](https://circleci.com/gh/mail-ru-im/bot-golang)
[![Go](https://github.com/mail-ru-im/bot-golang/actions/workflows/go.yml/badge.svg)](https://github.com/mail-ru-im/bot-golang/actions/workflows/go.yml)
[![codecov](https://codecov.io/github/mail-ru-im/bot-golang/graph/badge.svg?token=0HX8DY24SR)](https://codecov.io/github/mail-ru-im/bot-golang)
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/mail-ru-im/bot-golang)
![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)



## API specification:
### [<img src="https://is3-ssl.mzstatic.com/image/thumb/Purple123/v4/e8/4f/1b/e84f1b57-206f-7750-ac5a-27f93ff4a0d8/icons-bundle.png/460x0w.png" width="16"> VK Teams ](https://teams.vk.com/botapi/)
### [<img src="logo_msg.png" width="16"> VK Teams ](https://teams.vk.com/botapi/)

## Getting started

* Create your own bot by sending the _/newbot_ command to _Metabot_ and follow the instructions.
>Note: a bot can only reply after the user has added it to his contact list, or if the user was the first to start a dialogue.
* You can configure the domain that hosts your VK Teams server. When instantiating the Bot class, add the address of your domain.
* An example of how to use the framework can be seen in _example/main.go_

## Install
```bash
Expand Down
2 changes: 1 addition & 1 deletion api_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func (h *MockHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
case r.URL.Path == "/events/get":
h.GetEvents(w)
return
case r.URL.Path == "/chats/getInfo":
case r.URL.Path == "/self/get":
h.SelfGet(w, r)
return
default:
Expand Down
Binary file added logo_bot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logo_msg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f39a0ac

Please sign in to comment.