Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Hello.cs
1using System.Threading.Tasks;
2
4{
9 {
13 public Hello()
14 {
15 }
16
20 public override string Name => "Hello";
21
25 public override string[] Aliases => new string[] { "Hi", "Hej", "Hola" };
26
34 public override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
35 {
36 await ResponseCallback("Hello.\n\nType `help` for instructions on how to access the chat interface.", string.Empty);
37 }
38
42 public override string[] HelpParagraphs => new string[] { "Displays a greeting message." };
43 }
44}
An administrative command with no parameters.
override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
Executes the command.
Definition: Hello.cs:34
override string[] Aliases
Optional set of aliases. Can be null.
Definition: Hello.cs:25
override string[] HelpParagraphs
Markdown description of syntax.
Definition: Hello.cs:42
override string Name
Command name
Definition: Hello.cs:20
delegate Task< string > ResponseCallbackHandler(string Markdown, string MessageId)
Delegate for response callback handler methods.