17 lines
408 B
Python
17 lines
408 B
Python
|
class MatrixModule:
|
||
|
def matrix_start(self, bot):
|
||
|
print("Echo start!")
|
||
|
|
||
|
def matrix_stop(self, bot):
|
||
|
print("Echo stop!")
|
||
|
|
||
|
async def matrix_message(self, bot, room, event):
|
||
|
args = event.body.split()
|
||
|
args.pop(0)
|
||
|
|
||
|
# Echo what they said back
|
||
|
await bot.send_text(room, ' '.join(args))
|
||
|
|
||
|
def help(self):
|
||
|
return('Echoes back what user has said')
|