Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- using System.Xml;
- using InstaBotConsole.Menus;
- using InstagramApiSharp.API;
- using InstagramApiSharp.Classes;
- using InstagramApiSharp.Enums;
- namespace InstaBotConsole.Menus{
- public class Bot{
- public static void Start(){
- Console.Clear();
- WriteWelcome.Write();
- XmlDocument config = new XmlDocument();
- XmlNode configNode = null;
- if (File.Exists("config.xml")){
- Logger.Log("asd");
- }
- try{
- config.LoadXml("config.xml");
- configNode = config.DocumentElement.SelectSingleNode("config");
- } catch (Exception e){
- Logger.Log(e.ToString(), "error");
- }
- var userSession = new UserSessionData
- {
- UserName = configNode.SelectSingleNode("username").InnerText,
- Password = configNode.SelectSingleNode("passwd").InnerText
- };
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement