mirror of
https://gitlab.com/ddorn/tfjm-discord-bot.git
synced 2024-12-24 18:22:23 +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:
|
||||
text += " - image non inclue - "
|
||||
|
||||
name = who.display_name if who else "Inconnu"
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user