<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ThreadedIRCBot
{
    class Ning : Module
    {
        public Ning(IRC ircNet) : base(ircNet) { }

        public override void Start()
        {
            throw new NotImplementedException();
        }

        public override void Stop()
        {
            throw new NotImplementedException();
        }

        public override void Save()
        {
            throw new NotImplementedException();
        }

        public override void InterpretCommand(string[] command, Events.MessageReceivedEventArgs e)
        {
            if(DateTime.Now.Hour => 12 && DateTime.Now.Hour <= 17)
            {
                irc.Send(new IRCMessage("PRIVMSG", e.Message.MessageTarget, "Afternooning."));
                return;
            }
            if(DateTime.Now.Hour > 17)
                irc.Send(new IRCMessage("PRIVMSG", e.Message.MessageTarget, "Evening."));
            else
                irc.Send(new IRCMessage("PRIVMSG", e.Message.MessageTarget, "Morning."));
        }

        public override string Help()
        {
            return "Sends the current <?>ning";
        }
    }
}<commit_msg>Made ning include a follow up, so that it can be directed `$ning foo` => `Morning foo.`<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ThreadedIRCBot
{
    class Ning : Module
    {
        public Ning(IRC ircNet) : base(ircNet) { }

        public override void Start()
        {
            throw new NotImplementedException();
        }

        public override void Stop()
        {
            throw new NotImplementedException();
        }

        public override void Save()
        {
            throw new NotImplementedException();
        }

        public override void InterpretCommand(string[] command, Events.MessageReceivedEventArgs e)
        {
	    string msg = "";
	    if (command.Length > 2)
            {
                for (int i = 2; i < command.Length; i++)
                    msg += command[i].Replace("\r\n", " ") + " ";
            }
	    msg = msg.Trim();

            if(DateTime.Now.Hour >= 12 && DateTime.Now.Hour <= 17)
            {
                irc.Send(new IRCMessage("PRIVMSG", e.Message.MessageTarget, "Afternooning " + msg + "."));
                return;
            }
            if(DateTime.Now.Hour > 17)
                irc.Send(new IRCMessage("PRIVMSG", e.Message.MessageTarget, "Evening " + msg + "."));
            else
                irc.Send(new IRCMessage("PRIVMSG", e.Message.MessageTarget, "Morning " + msg + "."));
        }

        public override string Help()
        {
            return "Sends the current <?>ning";
        }
    }
}
{'fraction_non_alphanumeric': 0.11441893830703014, 'fraction_numerical': 0.005021520803443328, 'mean_word_length': 1.731635651322233, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 11, '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': '3602568', 'n_tokens_mistral': 800, 'n_tokens_neox': 749, 'n_words': 182}