예제 #1
0
        static void Main(string[] args)
        {
            CommandRegister.Regist(new EchoCommand2());
            CommandRegister.Regist(new Echo());
            CommandRegister.Regist(new Filter("おちゃめ", ochame));
            CommandRegister.Regist(new Filter("んちゃめ", nchame));
            CommandRegister.Regist(new Filter("んもうだめ", nmoudame));
#if RAKUDALANG
            CommandRegister.Regist(new Rakuda());
#endif
            CommandRegister.Regist(new Pipe());
            CommandRegister.Regist(new Repeat());
            CommandRegister.Regist(new Plus());
            CommandRegister.Regist(new Minus());
            CommandRegister.Regist(new Mul());
            CommandRegister.Regist(new Div());
            CommandRegister.Regist(new Mod());
            CommandRegister.Regist(new otyaCommand());
            CommandRegister.Regist(new Gobi());
            CommandRegister.Regist(new AliasDefine());
            CommandRegister.Regist(new Replace());
            CommandRegister.Regist(new Append());
#if GOOGLETRANSLATE
            CommandRegister.Regist(new GoogleTranslate());
#endif
            CommandRegister.Regist(new EqualCommand2());
            CommandRegister.Regist(new Equal());
            CommandRegister.Regist(new Kao());
            CommandRegister.Regist(new CommandRandom());
            CommandRegister.Regist(new Array());
            CommandRegister.Regist(new Array2());
            CommandRegister.Regist(new ArrayAccess());
            CommandRegister.Regist(new CommandSubstr());
            CommandRegister.Regist(new CommandChr());
            CommandRegister.Regist(new CommandLen());
            CommandRegister.Regist(new Json());
#if MECAB
            CommandRegister.Regist(new SuperMecab());
#endif
            CommandRegister.Regist(new ArrayItem());
            CommandRegister.Regist(new StrLen());
            CommandRegister.Regist(new ArrayLen());
            CommandRegister.Regist(new If());
            CommandRegister.Regist(new GetLocal());
            CommandRegister.Regist(new SetLocal());
            CommandRegister.Regist(new HasLocal());
            CommandRegister.Regist(new RegexReplace());
            CommandRegister.Regist(new WGet());
            CommandRegister.Regist(new RegexIsMatch());
            CommandRegister.Regist(new BASIC.BASIC());
            //CommandRegister.Regist(new Browser());
            CommandRegister.Regist(new OnReaction());
            CommandRegister.Regist(new OnReactionRemoved());
            CommandRegister.Regist(new OnPosted());
            CommandRegister.Regist(new AddReaction());
            CommandRegister.Regist(new SetIconEmoji());
            CommandRegister.Regist(new Post());
            CommandRegister.Regist(new SetPost());
            CommandRegister.Regist(new GetPost());
            CommandRegister.Regist(new Edit());
            CommandRegister.Regist(new SetTimeout());
            CommandRegister.Regist(new GetReactionCount());

            AliasDefine.LoadAlias();
            if (args.Length == 0)
            {
                Console.WriteLine("token");
                return;
            }
            fuga(args[0]);
            //hoge(args[0]);
            Thread.Sleep(-1);
        }