示例#1
0
            public Task <Result> Execute(CommandMetadata data)
            {
                string message;
                string suffix;

                if (ParentPlugin.TryNut(out message))
                {
                    suffix = $"You have made me nut {ParentPlugin.AddNutter(data.AuthorID)} time(s) now, be proud mortal.";
                }
                else
                {
                    suffix = "You have failed to make me nut. " + (ParentPlugin.IsPrecious(data.AuthorID) ? "But that's okay I still love you." : "You are worthless.");
                }
                return(TaskResult(message + "\n" + suffix, message + "\n" + suffix));
            }