Closed throwaway-30964 closed 5 years ago
Sorry for bothering you, it was some local glitch. I had used -I <path to my local clone of API::DIscord
on the command line. Even though it was a fresh checkout of the repo and didn't have local changes, that somehow blew it (maybe cached compiled code or something). Installing the module with zef install .
and running the bot without the -I
flag fixed the problem.
I built P6 from the master using this script:
cd ~/source/rakudo && git checkout master && git pull &&\n git checkout $(git describe --abbrev=0 --tags) &&\n perl Configure.pl --gen-moar --gen-nqp --backends=moar &&\n make && make install
(Sadly I don't know when I did that last time, but it was definitely also 2018.12 built from master.) After that, my bot that worked fine before starting throwing some errors on startup:
Also
API::Discord.messages
does not trigger anymore, no matter what's happening in the chat. Other things like.trigger-typing
still seem to work, although those are triggered by a timer, not as reaction to some discord event. The whole bot can be found here: https://github.com/throwaway-30964/infinite-garbage/blob/master/bot.p6 (it basically takes an input file with text and generates random messages based on it.) Interestingly the basic example from the README (https://github.com/shuppet/p6-api-discord/blob/master/examples/echo-server.p6) seems to work just fine, so maybe some of the other things in the script might cause the problems, although I don't see how and it worked before the update, so maybe a bug in rakudo itself?