Premier (et surement dernier) commit

This commit is contained in:
Romain de Laage 2020-11-06 18:20:00 +01:00
commit 2b9158bc32
Signed by: rdelaage
GPG Key ID: 534845FADDF0C329
3 changed files with 26 additions and 0 deletions

9
README.md Normal file
View File

@ -0,0 +1,9 @@
# Bot du channel Préau
RIP le channel préau, vive l'équipe préau !
Pour rediriger les utilisateurs au bon endroit, ce bot est idéal.
Il faut avoir python 3 et installer mmpy_bot : `pip install mmpy_bot`. Voir [ici](https://github.com/attzonko/mmpy_bot).
Licence WTFPL.

5
mmpy_bot_settings.py Normal file
View File

@ -0,0 +1,5 @@
SSL_VERIFY = True
BOT_URL = 'faut y mettre l\'url en commencant par https:// et termiannt par /api/v4'
BOT_TOKEN = 'faut y mettre le token du compte de bot'
BOT_TEAM = 'picasoft'

12
run.py Normal file
View File

@ -0,0 +1,12 @@
from mmpy_bot.bot import Bot
import re
from mmpy_bot.bot import listen_to
from mmpy_bot.bot import respond_to
@listen_to('.*')
def tu_fais_quoi_la(message):
message.reply('Qu\'est-ce que tu fais encore là ? Maintenant ça se passe [ici](https://team.picasoft.net/signup_user_complete/?id=m4oyu1k38bnybempo4iow3b8ph)')
if __name__ == "__main__":
Bot().run()