|
1 |
| -"""doc""" |
2 |
| -# pylint: disable=R0801 |
| 1 | +""" |
| 2 | +Python Wechaty - https://github.com/wechaty/python-wechaty |
| 3 | +Authors: Huan LI (李卓桓) <https://github.com/huan> |
| 4 | + Jingjing WU (吴京京) <https://github.com/wj-Mcat> |
| 5 | +2020 @ Copyright Wechaty Contributors <https://github.com/wechaty> |
| 6 | +Licensed under the Apache License, Version 2.0 (the 'License'); |
| 7 | +you may not use this file except in compliance with the License. |
| 8 | +You may obtain a copy of the License at |
| 9 | +http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an 'AS IS' BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +""" |
3 | 16 | import asyncio
|
4 | 17 | import logging
|
5 | 18 | from typing import Optional
|
6 | 19 |
|
| 20 | +# waiting for wechaty-puppet new version |
7 | 21 | from wechaty_puppet import ScanStatus # type: ignore
|
8 | 22 |
|
9 |
| -from wechaty import Wechaty, Contact |
10 |
| -from wechaty.user import Message |
| 23 | +from wechaty import ( |
| 24 | + Wechaty, Contact, Message |
| 25 | +) |
11 | 26 |
|
12 | 27 | logging.basicConfig(level=logging.INFO)
|
13 | 28 | log = logging.getLogger(__name__)
|
@@ -62,7 +77,6 @@ async def on_scan(self, status: ScanStatus, qr_code: Optional[str] = None,
|
62 | 77 |
|
63 | 78 | async def main():
|
64 | 79 | """doc"""
|
65 |
| - # pylint: disable=W0603 |
66 | 80 | global bot
|
67 | 81 | bot = MyBot()
|
68 | 82 | await bot.start()
|
|
0 commit comments