add nix env

This commit is contained in:
ddorn 2020-06-01 13:43:49 +02:00
parent abb1f16129
commit b8a9041e36
3 changed files with 13 additions and 1 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use_nix

10
shell.nix Normal file
View File

@ -0,0 +1,10 @@
{ pkgs? import <nixpkgs> {}, ... }:
let
pythonEnv = pkgs.poetry2nix.mkPoetryEnv {
projectDir = ./.;
};
in pkgs.mkShell {
buildInputs = [ pythonEnv ];
PYTHONPATH = ".";
}

View File

@ -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)