« first day (5076 days earlier)      last day (97 days later) » 

07:32
shit - i am so sorry i fucked up badly here in the james.js code i was using eval instead of require, thats exactly how malware gets spread, i feel soo bad
my thinking was i was expecting anyone who might be interested to actually read through the code and make changes before running it, and i guess in the majority of cases thats not going to happen
let me assure everyone who might have looked at anything ive posted there has never been any ill intent, but as @BenFortune said earlier "eval! are you insane"
im going to flag all for moderation to be removed
 
1 hour later…
08:39
Posting code that is wrong is not a reason for moderators to remove those chat messages.
Anyone who blindly copy-pastes and runs code from somewhere on the Internet without reviewing it first deserves any security risks that result. It's not moderators' job to go around removing everything that might be a security risk.
If your credentials or something are still in there, then ping me, and I'll be happy to take care of that, but I'm not inclined to mass mod-delete a bunch of chat messages because the code is poor quality.
cc @matt ^^
 
3 hours later…
11:22
@CodyGray I 100% agree with you. It's not the moderators' fault if someone carelessly copy/pastes a whole entire file without checking it, and then runs it.
 
12 hours later…
23:41
@matt thanks matt. here's my function for making sure the slash is always between the directory and the file name
/**
 * Adds strings onto the end of other strings.
 * Separator is space by default but can be any character
 * @param {String} separator
 * @param {Array} strings
 **/
export function addStrings(separator=" ", ...strings: any[]) {
   var character = "";
   var value = "";
   if (separator==null) separator = " ";

   var numberOfStrings = strings ? strings.length : 0;

   for (let i = 0; i < numberOfStrings; i++) {
      var nextString = strings[i];

      if (nextString!=null) {
         character = value.charAt(value.length-1);
Then you use it:

addStrings(path.sep, dir, filename);
Whether you have a separator or not it will check for you

« first day (5076 days earlier)      last day (97 days later) »