-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50a6c87
commit 146cdc7
Showing
24 changed files
with
19,983 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Contribute | ||
## Pull request | ||
Если вы решили впервые стать контрибьютером и помочь развитию open-source проекта, этот пункт для вас. | ||
1) Делается fork основного репозитория | ||
2) git clone https://github.com/ваш-логин/bot-golang.git | ||
3) Локальное изменение | ||
4) Сделайте ребейз на remote master ветку | ||
5) git push origin <ваш-логин> | ||
6) В удаленном репозитории нажать _compare&pull request_ | ||
|
||
Также рекомендуем ознакомиться с подробной инструкцией для контрибьютеров - <a href="https://github.com/firstcontributions/first-contributions">README.md</a> | ||
|
||
## Tests | ||
1) Если добавляется новая функциональность, то покрывайте ее тестами | ||
2) Следите за тем, чтобы тесты успешно выполнялись в PR перед мержем. | ||
|
||
## Merge | ||
Ветка будет смержена в мастер, когда: | ||
1) Все пайплайны пройдут успешно | ||
2) Новая функциональность будет покрыта тестами | ||
|
||
После выполнения всех пунктов один из сотрудников проверит в ближайшее время PR и смержит его. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
logging.config.fileConfig("logging.ini") | ||
|
||
TOKEN = "" #your token here | ||
TOKEN = "" # your token here | ||
|
||
bot = Bot(token=TOKEN, api_url_base="", is_myteam=True) | ||
|
||
|
@@ -17,7 +17,7 @@ def message_cb(bot, event): | |
bot.add_chat_members(chat_id=resp.json()['sn'], members=["[email protected]", "[email protected]", "[email protected]"]) | ||
bot.send_text(chat_id=resp.json()['sn'], text="Hello! And Goodbye!") | ||
bot.delete_chat_members(chat_id=resp.json()['sn'], members=["[email protected]", "[email protected]"]) | ||
bot.send_text(chat_id=event.from_chat, text="Bye!") | ||
bot.send_text(chat_id=event.from_chat, text="Bye!") | ||
|
||
|
||
bot.dispatcher.add_handler(MessageHandler(callback=message_cb)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.