Catsack - A Discord bot for everything Tower Unite!

Pretty small update being pushed today, going to keep it as short as possible.

New command: Links!


A new ‘links’ command has been added. This will display a list of links relevant to Tower Unite stuff. If there’s something I’ve missed/you think might be useful to list there, let me know.

Daily Trello round-up

Daily Trello round-up has had another change. It now uses the ‘Next Updates’ list instead of a hard-coded list of cards. This means that things such as the Arcade will no longer be listed, but it will also mean that more relevant updates are being posted and I also don’t have to constantly change the list manually.
(In case you were wondering, this is the list i’m talking about)

Open Source

I’ve made more changes to the code to clean it up and make it more readable (my older code is still a bit of a mess). This is a benefit for me in case I ever need to change it, but also to those who might want to modify it. I’ve been thinking more recently about making the code to this bot public so that people can run it independently and customise the way the bot functions.

This is just a thought, though. I’m not even sure if there is anyone who would care to run the bot themselves. Whether I release the code or not, I will continue to run Catsack as long as it’s practical for me to do so (and as long as the bot is still useful). I’ve recently hit a roadblock where I feel limited with what else I can do with the bot, so updates will be less frequent from here on out.
I’ll probably be regularly pushing out bug fixes and small improvements but won’t post anything here unless it’s something new being added.
I’m still very interested in continuing to work on the bot, so (again) if you have anything at all you want to see added to the bot then please let me know.

Thanks. Sorry about having another wall of text for you to read.
I really do appreciate that people are still making use of the bot (even after almost a MONTH of it being available! Wow.)
:heart:

14 Likes

Thanks for your useful good deeds gamer

4 Likes


i dont think is meant to happen

3 Likes

Mac really be out here completing these tasks by the nanosecond

Awesome work devs :+1:

8 Likes

I cant even put into words how sorry I am. I know this must have made a mess of some peoples’ discord servers.

A bit of explanation: I went to sleep that night and the bot was offline due to issues with our VPS and I had given up trying to restart it.
While I was asleep, for some reason the VPS came back online, the bot reconnected and started reposting every single failed request. I’ll be making changes to the code today so that it wont ever happen again, Ill also hopefully have a command that will bulk delete all the spam that was made.

I’m so sorry this happened, I really have no idea why it did. :slightly_frowning_face:

5 Likes

Nah it’s all good
There were no problems to me or anything
It came as a good laugh and joke around that Mac couldn’t stop doing work
Keep up the great work :ok_hand:

4 Likes

Bit of an update, just got home and I’m working on adding a cleanup command that will delete all of the spam messages from the channel. I’m also fixing a few other bugs that have existed for a while. I’ll have the update out later tonight and will post a message through the bot once it’s ready. Thank you all :slight_smile:

3 Likes

Incredible job!

1 Like

Catsack let me know about the awesome Smooth Dirt update. 10/10 :+1:

2 Likes

We should take alexa memes and replace alexa with catsack.

would it be possible to have commands to pull information such as leader board ranks for ballrace and minigolf? I think those would be the only ones people would really use. I think the command could be cs!lb summit 1 for summit level one as an example

2 Likes

I actually was testing this a little while ago but I wasn’t sure how useful it was. Now that I know someone would actually like to have it, I can work on getting it added ASAP. :slight_smile:

I was also thinking of extending that functionality and possibly having some other stuff like notifications when your time on a certain level is beaten, etc.

6 Likes

If you’re too lazy to read this long post, the main thing to take away from this is that the bot has been updated and the leaderboard command has been added! I’m quite surprised at how quickly I was able to get it working (I definitely have a lot of code to clean up, but it works).

To use this command, runcs!leaderboard (or it’s alias, cs!lb) followed by any Ball Race map name + level to view the leaderboard for that level. Simple (example images attached below if you are confused)

Click to reveal example images.

https://o.lol-sa.me/nudcEfT.png
https://owo.whats-th.is/5cNX6CA.png

To view a person’s specific rank on that level, attach a link to their Steam profile at the end.
(I will be adding support for Steam IDs in the future which might be more convenient than an entire profile URL, and I also may add an option for you to link your own steam account with Catsack, so you don’t have to enter your profile every time.)

There are a few issues with this command, though:

  • Due to the method (the only method) of reading leaderboards, the bot will only be able to get your rank if you’re in the Top 200 for that level, far lower than what is displayed in game.
  • Bonus levels aren’t included at the moment because the script I have for importing levels currently doesn’t support them - while this isn’t an issue for most maps, it means GLXY’s bonus is not viewable. (I will be adding it in the future)

To get this whole command to work I had to get a list of all the maps and their levels, then match them up with their leaderboard ID. I have a script that automates it for me (there is no way I’m redoing it every time a new map is added), so if you’d like the list of IDs formatted in JSON then I’ve uploaded it here so other people can make use of it if they wish.

Thank you all, sorry for the long post. I really enjoy adding more stuff to the bot, so if you have any suggestions at all then please let me know. :smiley:

6 Likes

that was fast, thanks a lot! :sunglasses:

1 Like

I’m getting this error when using the command:

also it says “cannot not”

Whoops, that would be my fault. I forgot to remove the permission check, I’ll do it right now.

should be good now

1 Like

A bit off topic but woah what is that keyboard?

It’s called MessageEase. I use it because I type with my right thumb on my phone so it’s faster for me to use this instead of a regular keyboard. You can also make it so that there’s two side by side to use both thumbs but I haven’t tried it yet

You should add the ability to have a message show up when someone obtains a new top 10 in Ball Race.

Just an example I guess? I’m not a bot.

1 Like

Could have fooled me.

1 Like