sopel/modules/echo.py
2017-11-22 19:26:40 -05:00

14 lines
239 B
Python
Executable File

#! /usr/bin/env python3
#-*- coding:utf-8 -*-
"""
Echo.
"""
import module
@module.commands('echo')
@module.example('.echo balloons')
def echo(bot, trigger):
"""Echos the given string."""
if trigger.group(2):
bot.say(trigger.group(2))