Browse Source

Added help class.

Added Command class.
tags/3.0.0
Teknikode 4 years ago
parent
commit
5d3cddbd1c
3 changed files with 44 additions and 2 deletions
  1. 22
    0
      Combot/Command.cs
  2. 18
    0
      Combot/Help.cs
  3. 4
    2
      Combot/Modules/Module.cs

+ 22
- 0
Combot/Command.cs View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Combot
{
public class Command
{
public string Name { get; set; }
public string Value { get; set; }
public List<CommandArgument> Arguments { get; set; }
}

public class CommandArgument
{
public string Name { get; set; }
public string Value { get; set; }
public bool Required { get; set; }
}
}

+ 18
- 0
Combot/Help.cs View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Combot
{
public class Help
{
private Bot _Bot;

public Help(Bot bot)
{
_Bot = bot;
}
}
}

+ 4
- 2
Combot/Modules/Module.cs View File

@@ -6,8 +6,10 @@ using System.Threading.Tasks;

namespace Combot.Modules
{
public class Module
abstract internal class Module
{
internal virtual void Initialize() { }
abstract public List<Command> Commands { get; set; }

abstract internal void Initialize() { }
}
}

Loading…
Cancel
Save