Skip to content

probably breaking

Pre-release
Pre-release
Compare
Choose a tag to compare
@12beesinatrenchcoat 12beesinatrenchcoat released this 06 Jul 17:17

trying a different way of formatting this changelog, instead of just "additions" and "removals". so...

changes and improvements to me

for a quick overview, here's a picture.

sl me [user] example, "not a tsundere" uses command "sl me @magic girl !!"

  • ⚠️ no more "compact ver." and "full ver.", and a small redesign of the embed.
    • this is quite broken on mobile, but... uhh... sorry? (i might add a user setting to have one or the other, we'll see.)
    • merged "most used command" and "commands run".
    • added nickname ("also known as nickname")
  • you can now specify a user to see the stats of! sl me [user]
  • slabbot handles new users a bit better. (#23)
    • if a new user ran sl me, the bot would return nothing. now it returns a little welcome message and a mostly blank embed. it's better!
  • i expect to do quite a bit more to this in the next update... watch this space!

unorganized minor stuff

  • consistency in help - all fields now use square brackets.
  • roll embeds are now colored based on how high or low the roll was (compared to the maximum / minimum).
  • cooldown messages delete themselves once the cooldown expires. (#33)
  • the osu command now caches results for 180 seconds. (#43)
  • admin.js has been renamed to shutdown.js, and moved into an admin folder.
    • admin commands get their own category, and are not shown in the help menu.
  • removed "stack overflow" from "powered by" section in about.
    • it's not really "powered by" stack overflow, and i also don't use it as much anymore... thanks mdn <3
  • added --exact-match to the end of git describe, which should stop about from displaying v#.#-[commit hash] as its version.
  • the level up message is now orange.
  • cooldowns have been modified a bit, global default cooldown has been raised to 3000ms (up from 2000ms), but cooldowns for some other commands have been reduced.
    • help uses the default cooldown (down from 10000ms).
    • the cooldown for me has been lowered to 15000ms (down from 30000ms).
    • the rate limit for osu has been raised to 4/30000ms (up from 3/30000ms).

code stuff

  • ⚠️ now using xo code style. at least, with a few exceptions.
    • strings still use double quotes (unless you have to use them in the string).
    • comments don't have to be capitalized (too professional!)
      • todo comments don't return warnings, we have a github bot for that.
    • no radix needed in randInt() (i only use decimal numbers...)
  • slabbot can now properly start when an osu! api token is missing, and when it cannot connect to mongodb. (#36)
    • when an osu! api token is missing from config.json, the osu command will not be loaded.
    • when slabbot cannot connect to mongodb (on startup), the exp system (and the me command) will not be loaded.
      • command usage will also not be counted, and its related fields in about will be excluded.
  • functions in things.functions.js are no longer named
    • felt a tad redundant when they were called by their export names...
  • new method of handling command errors (things.commandError.js).
    • CommandError is now a class.
      • takes in an object with properties embedTitle, embedDescription, and messageText.
      • reply() method takes in a Message and placeholders (replace text in embedDescription, used in despacito.js).
      • consistent color and footer for all errors, should be a bit better.
      • replaces returnError function from v0.4.0.
    • i should probably name this something else, or just consolidate a single "things.js".
  • renamed commandinfo.json to commandInfo.json, and moved to root directory.
    • and also using require.main.require, because it's cleaner. although it's a bit broken in vscode. please see microsoft/TypeScript#19117.
  • console.log() messages are a whole lot more colorful.
  • more READMEs.
  • more code cleanup and comments, as always.
  • updated dependencies.
    • added renovate bot to help deal with them!

for a version bump that adds practically nothing on the user-end, this is probably the longest changelog so far. finishing up this update and typing these notes while in an airport, waiting for a flight that was delayed by nearly 7 hours was… an experience.

next update is proper game stuff, and a bunch of things that feel very long overdue. see ya then!