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:
@ -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):
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user