I tried searching everywhere but i cant find a way that works or i just couldnt do the thing i found beacause i dont know how, so, how do you install Discordia into your repl?
lit install SinisterRectus/discordia
nope, also im pretty sure i have tried this before but yeah, this is the err i got when i ran
~/SLSystems$ lit install SinisterRectus/discordia
lit: /nix/store/p9kr8499w8f05ivxwm2c2nnrfsvk5l5n-lit-14.0.0/lib/python3.10/site-packages/lit/discovery.py:132: warning: unable to find test suite for ‘install’
lit: /nix/store/p9kr8499w8f05ivxwm2c2nnrfsvk5l5n-lit-14.0.0/lib/python3.10/site-packages/lit/discovery.py:281: warning: input ‘install’ contained no tests
lit: /nix/store/p9kr8499w8f05ivxwm2c2nnrfsvk5l5n-lit-14.0.0/lib/python3.10/site-packages/lit/discovery.py:132: warning: unable to find test suite for ‘SinisterRectus/discordia’
lit: /nix/store/p9kr8499w8f05ivxwm2c2nnrfsvk5l5n-lit-14.0.0/lib/python3.10/site-packages/lit/discovery.py:281: warning: input ‘SinisterRectus/discordia’ contained no tests
error: did not discover any tests for provided path(s)
tho do i just somehow need to enable / install or something the function lit? again, not really an expert
Can you send me a link to your Repl?
yea here you go, bear in mind that there is not much there + i tihnk the code for it is a little outdated (it was copied) but i would get to fixing and custumizing it if u know… the first step worked
i did tho start a project for the same thing just this time in python even tho i have basicaly never scripted in python, im much more familiar with lua. the python project for 2 reasons:
- i cant seem to install discordia on this project
- i think discordia might be a little outdated / broken because i did try to do all this in vscode before i came to here and when i managed to install it on there, there were dozens of errs coming from it
if it is not broken tho and i can manage to install it on here then i would much rathere work with lua and thats why i made this post
lit package on Nix is not a package manager for Lua. By adding
pkgs.luajitPackages.luarocks to your
replit.nix file (see docs), you can use
luarocks install discordia.
Let me know if that worked.
imma try it real quick and let ya know
wait but how do i access the replit.nix file when its a lua project? i thought those only show if you create a nix project
All Repls require a .replit file and a replit.nix file. You can access the files by clicking on the three dots in the upper-right corner of the file tree > Show hidden files.
oh okay, so, i added it into the file and rand the command, didnt work tho, here is a screenshot of the
replit.nix file and the shell terminal
Try it again, but add
--local to the end of the command.
~/SLSystems$ luarocks install discordia --local
Warning: Illegal date format for -z, --time-cond (and not a file name).
Warning: Disabling time condition. See curl_getdate(3) for valid date syntax.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 58312 0 58312 0 0 87883 0 --:–:-- --:–:-- --:–:-- 90970
Error: No results matching query were found for Lua 5.1.
To check if it is available for other Lua versions, use --check-lua-versions.
sooo… any ideas anyone?
well i guess ill just continue working in python, at least ill learn a new language
You need to install luvit using the instructions on https://luvit.io then install discordia like this
./lit install SinisterRectus/discordia
Then you can run your discord bot with
./ is important since the commands will be installed in your project’s directory)
Thnak you, finally it works… now… i need to code the bot itslef
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.