public GeobieBandsModule(GeobieBands bands, DiscordSocketClient client)
        {
            _bands  = bands;
            _client = client;

            EmbedFieldBuilder GeobieHelpCommandField = new EmbedFieldBuilder();

            GeobieHelpCommandField.Name  = "Goebiebands Commands";
            GeobieHelpCommandField.Value = "`-s <world> <type> <user>`\n`-dead <world>`\n`-removeworld <world>`";
            GeobieHelpCommandField.WithIsInline(true);
            EmbedFieldBuilder GeobieHelpDescriptionField = new EmbedFieldBuilder();

            GeobieHelpDescriptionField.Name     = "Description";
            GeobieHelpDescriptionField.IsInline = true;
            GeobieHelpDescriptionField.Value    = "Registers a scout. Types: a, f, w.\nMark a world dead.\nRemoves a world from the list.";
            EmbedFieldBuilder worlds = new EmbedFieldBuilder();

            worlds.Name  = "World Information";
            worlds.Value = "Early spawn worlds: 12, 14, 15, 30, 37, 49, 50, 51, 65, 83, 84\n" +
                           "Early spawn worlds spawn at: 02 and die at: 22\n" +
                           "All other worlds spawn at: 05 and die at: 25";


            eb1.AddField(GeobieHelpCommandField);
            eb1.AddField(GeobieHelpDescriptionField);
            eb1.AddField(worlds);
        }
예제 #2
0
 public GeobieResetTimer(DiscordSocketClient client, GeobieBands bands)
 {
     _bands  = bands;
     _client = client;
     //Console.WriteLine("Timer started.");
     StartTimer();
 }
예제 #3
0
 public TimerContainer(IServiceProvider services)
 {
     _client     = services.GetService <DiscordSocketClient>();
     _bands      = services.GetService <GeobieBands>();
     _fc         = services.GetService <FriendsChat>();
     geobieTimer = new GeobieResetTimer(_client, _bands); //start the timer
     dailyTimer  = new DailyReset(_client, _fc);
 }