probably breaking
Pre-release
Pre-release
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.
⚠️ 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!
- if a new user ran
- 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 toshutdown.js
, and moved into anadmin
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 ofgit describe
, which should stopabout
from displayingv#.#-[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
, theosu
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.
- command usage will also not be counted, and its related fields in
- when an osu! api token is missing from
- 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
, andmessageText
. reply()
method takes in aMessage
and placeholders (replace text inembedDescription
, used indespacito.js
).- consistent color and footer for all errors, should be a bit better.
- replaces
returnError
function from v0.4.0.
- takes in an object with properties
- i should probably name this something else, or just consolidate a single "things.js".
- renamed
commandinfo.json
tocommandInfo.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.
- and also using
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!