mirror of
https://github.com/offu/WeRoBot.git
synced 2026-11-23 21:46:51 +08:00
22 lines
258 B
Python
22 lines
258 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import werobot
|
|
|
|
robot = werobot.WeRoBot(token='tokenhere')
|
|
|
|
|
|
@robot.filter("帮助")
|
|
def show_help(message):
|
|
return """
|
|
帮助
|
|
XXXXX
|
|
"""
|
|
|
|
|
|
@robot.text
|
|
def hello_world(message):
|
|
return 'Hello World!'
|
|
|
|
|
|
robot.run()
|