<commit_before>var db = require('../dbAccess.js')

this.info = {
  aliases: [
    'Notes',
    'Message'
  ],
  helpInfo: {
    show: true,
    category: 'ACCF',
    name: 'Template',
    usage: 'temp [template]',
    desc: 'Templates a template'
  }
}

this.Command = function (data) {
  try {
    if (data.args.length === 0) {
      let usr = data.user
      let usrinfo = db.getUserInfo(usr.id)
      if (usrinfo.Note != null) {
        return usr.username + "'s Note is: `" + usrinfo.Note + '`'
      } else {
        return ' ' + usr.username + ' has not set a Note yet'
      }
    } else if (data.message.mentions.users.first() == null && data.args.length > 0) {
      db.setUserInfo(data.user.id, {'Note': data.args.join('')})
      return ' Your Note is now `' + data.args.join(' ') + '`'<commit_msg>Fixed whitespaces that causes !note to not whitespaced correctly.<commit_after>var db = require('../dbAccess.js')

this.info = {
  aliases: [
    'Notes',
    'Message'
  ],
  helpInfo: {
    show: true,
    category: 'ACCF',
    name: 'Template',
    usage: 'temp [template]',
    desc: 'Templates a template'
  }
}

this.Command = function (data) {
  try {
    if (data.args.length === 0) {
      let usr = data.user
      let usrinfo = db.getUserInfo(usr.id)
      if (usrinfo.Note != null) {
        return usr.username + "'s Note is: `" + usrinfo.Note + '`'
      } else {
        return ' ' + usr.username + ' has not set a Note yet'
      }
    } else if (data.message.mentions.users.first() == null && data.args.length > 0) {
      db.setUserInfo(data.user.id, {'Note': data.args.join(' ')})
      return ' Your Note is now `' + data.args.join(' ') + '`'
{'fraction_non_alphanumeric': 0.17474566128067026, 'fraction_numerical': 0.0023937761819269898, 'mean_word_length': 2.391480730223124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6289138', 'n_tokens_mistral': 601, 'n_tokens_neox': 593, 'n_words': 142}