예제 #1
0
파일: program.cs 프로젝트: zhimaqiao51/docs
        static void Main(string[] args)
        {
            XMLWrite test = new XMLWrite();

            test.WriteXML();
            XMLRead test2 = new XMLRead();

            test2.ReadXML();
            Console.ReadLine();
        }
예제 #2
0
        public async Task johnAsync()
        {
            List <string> rndJohn = new List <string>();

            rndJohn.Add("Here is a recent picture of @Rolfokvar - http://i.imgur.com/kfWjfcq.png");
            rndJohn.Add("John has a unique view on Ascended Chest drops - http://i.imgur.com/1B3RAkp.png");
            rndJohn.Add("Johns favourite song is - https://www.youtube.com/watch?v=5NV6Rdv1a3I&feature=youtu.be");

            Random rnd = new Random();

            string johnMessage = rndJohn[rnd.Next(0, rndJohn.Count)];

            XMLWrite.ReadThenWrite(commandName, clickAmount);
            XMLRead.ReadXML(commandName);
            int newAmount = XMLRead.commandAmountRead;

            await ReplyAsync(johnMessage + " This command has been called " + newAmount + " times.");

            return;
        }