Commit ef3737ac by xxlv

Add core core logic

parent 84f607ca
*.py[cod]
*.so
*.egg
*.egg-info
dist
build
#!/usr/bin/python
#-*- coding:utf-8 -*-
class Bot():
def __init__(self,bot):
self.bot=bot
self.__init()
def handle(self):
pass
def __init(self):
self.bot.auto_login()
#!/usr/bin/python
#-*- coding:utf-8 -*-
import Bot
class XiaoLingBot(Bot.Bot):
def handle(self):
self.bot..send('Hello, filehelper', toUserName='filehelper')
#!/usr/bin/python
#-*- coding:utf-8 -*-
import itchat
from bot import XiaoLingBot
def main():
bot =XiaoLingBot.XiaoLingBot(itchat)
bot.handle()
if __name__ == '__main__':
main()
certifi==2018.4.16
chardet==3.0.4
gyp==0.1
idna==2.6
itchat==1.3.10
mercurial==4.5.3
Pygments==2.2.0
pypng==0.0.18
PyQRCode==1.2.1
requests==2.18.4
urllib3==1.22
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment