Esempio n. 1
0
        static async Task MainAsync(string[] args)
        {
            var exeDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);

            System.IO.Directory.SetCurrentDirectory(exeDirectory);

            //Load config
            config = new BBBSettings();

            //Initialize BBB
            bbb = new BigBeautifulBot(config);

            _TickTimer = new Timer(Tick, null, config.TickInterval, config.TickInterval);


            //TODO: Move all this client stuff into their own classes

            //Setup client
            client                  = new DiscordSocketClient();
            client.Ready           += Client_Ready;
            client.JoinedGuild     += Client_JoinedGuild;
            client.LeftGuild       += Client_LeftGuild;
            client.MessageReceived += Client_MessageReceived;
            client.ReactionAdded   += Client_ReactionAdded;


            //Login and start
            await client.LoginAsync(Discord.TokenType.Bot, config.Token);

            await client.StartAsync();

            //Set Events for Reminder
            ReminderProcessor.StartTimers();

            //Setup socket client
            var tcpListener = new TcpListener(IPAddress.Parse("10.0.0.2"), 662); //Change to your localhost if you're not me

            tcpListener.Start();
            await ServiceClients(tcpListener);
        }
Esempio n. 2
0
 public FoodProcessor(BigBeautifulBot bot) : base(bot)
 {
 }
 public InputProcessorBase(BigBeautifulBot bot)
 {
     _Bot = bot;
 }
 public CommandProcessor(BigBeautifulBot bot) : base(bot)
 {
     Scales = new Scales(bot);
 }
Esempio n. 5
0
 public Scales(BigBeautifulBot bigBeautifulBot)
 {
     _Bot = bigBeautifulBot;
 }