Dusk 💛 💜Yeah, you may want to serialize that in the future
In the future, I would do it as described above, probably put it in a real database. I figure in this case, since I only really have one use for it, being able to look up IDs by username is more elegant than looking up usernames by ID, and there's never an urgent need to kick someone who hasn't posted in a while.
Sorry. You have HTTPS = blah at the top of bot.lua. You then say HTTPS = blah again in utilities.lua. Because that file is loaded and ran at the point it's called and HTTPS is global in both places, you now have overwritten the original bot.lua HTTPS variable. This can cause problems with some libraries that keep state throughout a file.
I guess I'm mostly worried about global pollution. Now that I think about it, the require keeps it from being actually overwritten in the dofile. So it's up to you. I think locals are cleaner, and prevent you from feeling pain if somewhere in a plugin you use JSON as a variable name. I imagine you shouting cased them to make them not collide, but locals do that too.