Ajout de la commande avenir
This commit is contained in:
parent
bf2c0fd7b4
commit
0cb2a6b355
1 changed files with 15 additions and 1 deletions
|
@ -1,7 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
"""Main module."""
|
"""Main module."""
|
||||||
import discord
|
|
||||||
import random
|
import random
|
||||||
import discord
|
import discord
|
||||||
import os
|
import os
|
||||||
|
@ -262,6 +261,21 @@ class Mybot(commands.Cog):
|
||||||
if len(self.sounds_history) >5:
|
if len(self.sounds_history) >5:
|
||||||
self.sounds_history = self.sounds_history[:5]
|
self.sounds_history = self.sounds_history[:5]
|
||||||
|
|
||||||
|
@commands.command(help= "randomsur l'avenir des gens.")
|
||||||
|
async def avenir(self, ctx):
|
||||||
|
|
||||||
|
choix = random.choice(list_mot)
|
||||||
|
list_mot = ("tu seras curé, tu t'occuperas plus spécialement du catéchisme. ",
|
||||||
|
"tu seras animateur de soirées pour les gays pride. ",
|
||||||
|
"tu seras gynecologue dans une maison de retraite."
|
||||||
|
"tu iras vivre en thaïland à cause de ton job. car tu seras ladyboy dans un bar."
|
||||||
|
"tu sera DSI chez jacky et Michel"
|
||||||
|
"tu seras arroseur de plante aquatique.")
|
||||||
|
await ctx.channel.send(choix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_word(word_type):
|
def get_word(word_type):
|
||||||
content = []
|
content = []
|
||||||
with open("/home/mika/kabot/kabot/kabot/ressources/base_kml.xml", "r", encoding="ISO-8859-1") as file:
|
with open("/home/mika/kabot/kabot/kabot/ressources/base_kml.xml", "r", encoding="ISO-8859-1") as file:
|
||||||
|
|
Loading…
Reference in a new issue