1
0
mirror of https://gitlab.com/ddorn/tfjm-discord-bot.git synced 2025-07-03 20:42:50 +02:00

😂 joooookes

This commit is contained in:
ddorn
2020-04-30 00:53:57 +02:00
parent 3a8f388a94
commit 3623f6a66d
3 changed files with 80 additions and 6 deletions

View File

@ -81,7 +81,7 @@ class ErrorsCog(Cog):
# Here we just take advantage that the error is formatted this way:
# 'Command "NAME" is not found'
name = str(error).partition('"')[2].rpartition('"')[0]
return f"La commande {name} n'éxiste pas. Pour une liste des commandes, envoie `!help`."
return f"La commande {name} n'existe pas. Pour une liste des commandes, envoie `!help`."
@handles(MissingRole)
def on_missing_role(self, ctx, error):

View File

@ -6,7 +6,7 @@ from pprint import pprint
from time import time
import discord
from discord import Guild
from discord import Guild, Emoji
from discord.ext import commands
from discord.ext.commands import (
Cog,
@ -51,7 +51,10 @@ class MiscCog(Cog, name="Divers"):
jokes = f.read().split("\n\n\n")
msg = random.choice(jokes)
await ctx.send(msg)
message: discord.Message = await ctx.send(msg)
await message.add_reaction("😂")
await message.add_reaction("😭")
@command(name="status")
@commands.has_role(Role.CNO)