示例#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
文件: Bot.cs 项目: sticks/weewar.net
 public Bot(ElizaApi eliza)
 {
   this.eliza = eliza;
 }