mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 03:40:11 +01:00
chore: ruff fix
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import aiohttp
|
||||
import re
|
||||
import json
|
||||
|
||||
|
||||
def codepreview_command():
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import aiohttp
|
||||
|
||||
|
||||
@@ -38,7 +37,7 @@ def dictionary_command():
|
||||
}
|
||||
except aiohttp.ClientError:
|
||||
return {"success": False, "error": "Network error occurred"}
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
return {"success": False, "error": "An unexpected error occurred"}
|
||||
|
||||
@commands.hybrid_command(
|
||||
@@ -124,7 +123,7 @@ def dictionary_command():
|
||||
meanings = entry.get("meanings", [])
|
||||
|
||||
embed = discord.Embed(
|
||||
title=f"Dictionary",
|
||||
title="Dictionary",
|
||||
description=f"**```{word_title}```**",
|
||||
color=0x7289DA,
|
||||
)
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import aiohttp
|
||||
import asyncio
|
||||
import re
|
||||
import json
|
||||
import urllib.parse
|
||||
|
||||
|
||||
languages = {
|
||||
|
||||
Reference in New Issue
Block a user