Skip to content
Snippets Groups Projects
Commit ceb9b046 authored by Antoine Barbare's avatar Antoine Barbare
Browse files

Add discussions

parent c3653f80
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
import re
from mattermost_bot.bot import listen_to
......@@ -18,3 +21,9 @@ def thanks_comment(message):
@respond_to('help|aide')
def help(message):
message.comment('Salut je suis le bot de Picasoft\nPour le moment, je sais réduire des liens avec la commande `\link <url> [<affichage>]`')
@listen_to('.* a \xe9t\xe9 ajout\xe9 au canal par.*',re.IGNORECASE)
@respond_to('.* a \xe9t\xe9 ajout\xe9 au canal par.*',re.IGNORECASE)
def add_channel(message):
message.comment('Hey salut ! :wave:')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment