Premier (et surement dernier) commit
This commit is contained in:
commit
2b9158bc32
|
@ -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.
|
|
@ -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'
|
||||||
|
|
|
@ -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()
|
Reference in New Issue