Пример #1
0
 public SticksBot(ElizaApi eliza)
   : base(eliza)
 {
 }
Пример #2
0
 static void _Main(string[] args)
 {
   string user = ConfigurationManager.AppSettings["user"];
   string token = ConfigurationManager.AppSettings["token"];
   string elizaUrl = ConfigurationManager.AppSettings["elizaUrl"];
   ElizaApi eliza = new ElizaApi(elizaUrl, user, token);
   SticksBot bot = new SticksBot(eliza);
   Thread worker = new Thread(bot.DoWork);
   worker.Start();
   while (!worker.IsAlive) ; // loop till he's not there
   Thread.CurrentThread.Join();
 }
Пример #3
0
 public Bot(ElizaApi eliza)
 {
   this.eliza = eliza;
 }