static void Main(string[] args) { MelenchBot mlbot = new MelenchBot(); mlbot.onMessageReceveid += Mlbot_onMessageReceveid; mlbot.connect(); Console.ReadKey(); mlbot.stop(); }
public MelenchBotDBInterractions(MelenchBot theMelenchBot) { melenchBot = theMelenchBot; dbWarningCommunication = new DBWarningCommunication(); lsWarnings = dbWarningCommunication.getWarnings(); dbStatusCommunication = new DBStatusCommunication(); lsStatus = dbStatusCommunication.getStatuss(); dbUserCommunication = new DBUserCommunication(); lsUsers = dbUserCommunication.getUsers(lsStatus); foreach (KeyValuePair <string, User> u in lsUsers.list) { dbUserCommunication.setUserWarnings(u.Value); } }
public CommandsMelenchBot(MelenchBot theMelenchBot) { melenchBot = theMelenchBot; citationsMorsay = new CitationsMorsay(); }