mirror of
https://gitlab.com/ddorn/tfjm-discord-bot.git
synced 2025-02-06 03:33:02 +00:00
✨ add nix env
This commit is contained in:
parent
abb1f16129
commit
b8a9041e36
10
shell.nix
Normal file
10
shell.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ pkgs? import <nixpkgs> {}, ... }:
|
||||||
|
let
|
||||||
|
pythonEnv = pkgs.poetry2nix.mkPoetryEnv {
|
||||||
|
projectDir = ./.;
|
||||||
|
};
|
||||||
|
in pkgs.mkShell {
|
||||||
|
buildInputs = [ pythonEnv ];
|
||||||
|
|
||||||
|
PYTHONPATH = ".";
|
||||||
|
}
|
@ -628,8 +628,9 @@ class MiscCog(Cog, name="Divers"):
|
|||||||
if joke.file:
|
if joke.file:
|
||||||
text += " - image non inclue - "
|
text += " - image non inclue - "
|
||||||
|
|
||||||
|
name = who.display_name if who else "Inconnu"
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name=f"{i} - {who.display_name} - {len(joke.likes)}", value=text
|
name=f"{i} - {name} - {len(joke.likes)}", value=text
|
||||||
)
|
)
|
||||||
|
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user