Jump to content

Recommended Posts

Hello,

After a long day of messing with Lua files and trying to learn things I knew nothing about, I finally got it working! 😄

This little tool reads data from a Don't Starve Together server and sends a status update to Discord every 60 seconds. It shows info like the season, number of players, and more—just like in the screenshot.

I know it’s a small thing, but I’m really happy it works. What do you think? Any ideas for what else I could add?

 

Screenshot_11.png

  • Like 1
Link to comment
https://forums.kleientertainment.com/forums/topic/165773-discord-status-modbot/
Share on other sites

On 5/22/2025 at 6:06 AM, thegrimspirit said:

Hello,

After a long day of messing with Lua files and trying to learn things I knew nothing about, I finally got it working! 😄

This little tool reads data from a Don't Starve Together server and sends a status update to Discord every 60 seconds. It shows info like the season, number of players, and more—just like in the screenshot.

I know it’s a small thing, but I’m really happy it works. What do you think? Any ideas for what else I could add?

 

Screenshot_11.png

Looks interesting, if it's just for status display I hope to add features like notification of how long it will take for the boss to respawn or be killed, advanced features like chat-bridge, admin panel are also worth considering

  • Health 1
On 23/05/2025 at 11:24, Haruhi Kawaii said:

Looks interesting, if it's just for status display I hope to add features like notification of how long it will take for the boss to respawn or be killed, advanced features like chat-bridge, admin panel are also worth considering

About the boss respawn or killed timers — that’s quite tricky for me, but I will look for solutions.
I already added a second script that sends a warning message to the chat when a boss respawns and also tells how many days until the next hound attack (from DST).
I’m working on the chat bridge now, so it should be ready in a few days.
As for the admin panel, maybe at the end, when all features are done and working well.

10 hours ago, thegrimspirit said:

About the boss respawn or killed timers — that’s quite tricky for me, but I will look for solutions.
I already added a second script that sends a warning message to the chat when a boss respawns and also tells how many days until the next hound attack (from DST).
I’m working on the chat bridge now, so it should be ready in a few days.
As for the admin panel, maybe at the end, when all features are done and working well.

You can use this code to return the respawn time of the Dragonfly boss
 

AddPrefabPostInit("dragonfly_spawner", function(inst)
    if not GLOBAL.TheWorld.ismastersim then
        return
    end
    inst:DoPeriodicTask(1, function()
        if inst.components.worldsettingstimer then
            if inst.components.worldsettingstimer:TimerExists("regen_dragonfly") then
                local time_left = inst.components.worldsettingstimer:GetTimeLeft("regen_dragonfly")
                if time_left ~= nil then
                    print("Dragonfly will respawn in " .. time_left)
                else
                    print("Drafonfly alive")
                end
            end
        end
    end)
end)

 

On 5/21/2025 at 8:06 PM, thegrimspirit said:

Hello,

After a long day of messing with Lua files and trying to learn things I knew nothing about, I finally got it working! 😄

This little tool reads data from a Don't Starve Together server and sends a status update to Discord every 60 seconds. It shows info like the season, number of players, and more—just like in the screenshot.

Hello!

Do you have any plans to make this public? I spent some hours messing with luas and discord bots and creating custom mods to figure it out how to make something similar, and while trying to figure out why can't dst communicate with discord, I just found out your post. i'm running a dedicated linux server atm.

On 10/27/2025 at 1:22 AM, Rowlz said:

Hello!

Do you have any plans to make this public? I spent some hours messing with luas and discord bots and creating custom mods to figure it out how to make something similar, and while trying to figure out why can't dst communicate with discord, I just found out your post. i'm running a dedicated linux server atm.

It is possible that this update is causing the problem

 

On 26/10/2025 at 18:22, Rowlz said:

Hello!

Do you have any plans to make this public? I spent some hours messing with luas and discord bots and creating custom mods to figure it out how to make something similar, and while trying to figure out why can't dst communicate with discord, I just found out your post. i'm running a dedicated linux server atm.

sure

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...