Search found 804 matches

by demonnic
Wed Jun 22, 2022 1:31 pm
Forum: Help Forum
Topic: Is there a Lua function to identify which computer I'm using?
Replies: 3
Views: 52

Re: Is there a Lua function to identify which computer I'm using?

Taken and modified slightly from https://gist.github.com/h1k3r/089d43771bdf811eefe8 to assume instead that 'hostname' is in the path function getHostname() local f = io.popen ("hostname") local hostname = f:read("*a") or "" f:close() hostname =string.gsub(hostname, &quo...
by demonnic
Tue Jun 07, 2022 4:38 pm
Forum: Help Forum
Topic: Help with labels
Replies: 4
Views: 343

Re: Help with labels

I'm not sure I'm following what it is you're wanting to have it do in the end. *Edit: it seems like you want to set its behaviour based on something, but I'm not following the what or how you're asking for. If you can get on the discord it may be easier to help in real time than the slower back and ...
by demonnic
Thu Jun 02, 2022 5:04 am
Forum: Help Forum
Topic: tempLineTrigger help
Replies: 5
Views: 390

Re: tempLineTrigger help

I'm not sure tempLineTriggers have an expire after, though I see one listed in the docs. It doesn't make sense in this case, as it's literally a trigger whose only purpose is to fire on lines X through Y. It already self-expires, unlike other temp* trigger types which did not ship with expireAfter f...
by demonnic
Wed Jun 01, 2022 4:08 pm
Forum: Help Forum
Topic: Help with labels
Replies: 4
Views: 343

Re: Help with labels

Have you looked over the Geyser manual on the wiki? It has a section specifically on labels and how to use them: https://wiki.mudlet.org/w/Manual:Geyser#Geyser.Label
by demonnic
Wed Jun 01, 2022 4:06 pm
Forum: Help Forum
Topic: tempLineTrigger help
Replies: 5
Views: 390

Re: tempLineTrigger help

It seems to be working for me.
tempLineTrigger.png
the longer first line is line 0, it fires on lines 1-3 (the next 3 lines), and then does not on line 4.
by demonnic
Fri May 20, 2022 1:02 am
Forum: Scripts & Packages
Topic: Busted test framework repackaged for use in Windows Mudlet
Replies: 0
Views: 150

Busted test framework repackaged for use in Windows Mudlet

Get it here: https://github.com/demonnic/MudletBusted/releases/latest Installing the busted testing framework isn't too bad on Linux or MacOS, but it's a right pain on Windows. So I made a Mudlet package you can install which includes busted and all of its dependencies for windows. I even included a...
by demonnic
Fri May 20, 2022 12:59 am
Forum: Scripts & Packages
Topic: GitHub action for running Busted tests in Mudlet
Replies: 0
Views: 92

GitHub action for running Busted tests in Mudlet

I got into more detail on my blog at https://demonnic.com/?p=223 but the tl;dr is this GitHub Action will download the latest version of Mudlet and configure it for running tests, then runs the tests inside Mudlet itself, allowing you to test using Mudlet's full API in its actual running environment...
by demonnic
Wed May 18, 2022 11:01 pm
Forum: Scripts & Packages
Topic: Busted testing framework
Replies: 0
Views: 138

Busted testing framework

I repackaged the excellent Busted testing framework from Olivine Labs for Mudlet. It's the Lua testing framework we use for testing Mudlet's Lua API, and it's got a lot of nice features.

Check a look: https://github.com/demonnic/MudletBuste ... tag/v2.0.0
by demonnic
Thu May 05, 2022 6:25 pm
Forum: Scripts & Packages
Topic: Copy Color as BBCode
Replies: 3
Views: 340

Re: Copy Color as BBCode

I would maybe recommend changing the function name to something which speaks to what it does. copyAsBBCode or some such. otherwise you might clash with everyone else who started by copying it from the wiki but didn't change the function name =)
by demonnic
Thu Feb 17, 2022 2:24 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: Howto: Get Mudlet on a raspberry pi!
Replies: 3
Views: 8056

Re: Howto: Get Mudlet on a raspberry pi!

try sudo luarocks install lua-yajl YAJL_LIBDIR=/usr/lib/arm-linux-gnueabihf/ YAJL_INCDIR=/usr/include It's looking for the 64bit binary by default. https://wiki.mudlet.org/w/Compiling_Mudlet?pk_vid=2c05c591c47b77941645107767c19f4c#Compiling_on_Raspberry_Pi_OS is I believe the most recent set of inst...