<commit_before>import { db } from '..';
import { getTeamId, validTeamId, getTeam, createTeamEmbed } from '../vex';
import { decodeProgramEmoji } from '../dbinfo';

const yes = '✅';
const no = '❎';
const emojis = [yes, no];

export default async (message, args) => {
  if (message.guild) {
    return;
  }
  const teamId = getTeamId(message, args);
  if (!validTeamId(teamId)) {
    return message.reply('please provide a valid team ID, such as `24B` or `BNS`.').catch(console.error);
  }
  try {
    const team = (await getTeam(teamId))[0];
    let id, program, unsub, reply;
    if (team) {
      id = team._id.id;
      program = team._id.program;
    } else {
      id = teamId;
      program = isNaN(teamId.charAt(0)) ? 4 : 1;
    }
    const teamString = `${decodeProgramEmoji(program)} ${id}`;
    const teamSub = {
      _id: {<commit_msg>Fix bug in sub command<commit_after>import { db } from '..';
import { getTeamId, validTeamId, getTeam, createTeamEmbed } from '../vex';
import { decodeProgramEmoji } from '../dbinfo';

const yes = '✅';
const no = '❎';
const emojis = [yes, no];

export default async (message, args) => {
  if (!message.guild) {
    return;
  }
  const teamId = getTeamId(message, args);
  if (!validTeamId(teamId)) {
    return message.reply('please provide a valid team ID, such as `24B` or `BNS`.').catch(console.error);
  }
  try {
    const team = (await getTeam(teamId))[0];
    let id, program, unsub, reply;
    if (team) {
      id = team._id.id;
      program = team._id.program;
    } else {
      id = teamId;
      program = isNaN(teamId.charAt(0)) ? 4 : 1;
    }
    const teamString = `${decodeProgramEmoji(program)} ${id}`;
    const teamSub = {
      _id: {
{'fraction_non_alphanumeric': 0.1627497062279671, 'fraction_numerical': 0.007050528789659225, 'mean_word_length': 3.0070588235294116, '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': '6676379', 'n_tokens_mistral': 607, 'n_tokens_neox': 608, 'n_words': 164}