<commit_before>const imperialTimer = require('../util/imperialTimer');

let delivery = {
  command: '皇室',
  help: '告訴你當前時段的皇室納貢/皇室釣魚的更新分流',
  func: (bot, message, args) => {
    let time = imperialTimer.delivery.time;
    let text = imperialTimer.delivery.channel;
    let arr = text.replace(/<li>/g, "").split(/<\/li>/g);

    message.channel.send(`皇室納貢/皇室釣魚的更新\n${time}\n${arr}`);<commit_msg>fixed error when text is undefined<commit_after>const imperialTimer = require('../util/imperialTimer');

let delivery = {
  command: '皇室',
  help: '告訴你當前時段的皇室納貢/皇室釣魚的更新分流',
  func: (bot, message, args) => {
    let time = imperialTimer.delivery.time;
    let text = imperialTimer.delivery.channel;
    try {
      let arr = text.replace(/<li>/g, "").split(/<\/li>/g);
      message.channel.send(`皇室納貢/皇室釣魚的更新\n${time}\n${arr}`);
    } catch(err) {
      message.channel.send(`皇室納貢/皇室釣魚的更新\n${time}\n目前沒有更新唷!!`);
    }
{'fraction_non_alphanumeric': 0.19209659714599342, 'fraction_numerical': 0.0, 'mean_word_length': 3.7253886010362693, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '2316462', 'n_tokens_mistral': 405, 'n_tokens_neox': 430, 'n_words': 55}