Update bot - move webhook server to main bot
This commit is contained in:
parent
2345db0da0
commit
58e593c898
6 changed files with 366 additions and 2 deletions
25
WebHookServer/WebhookAttribs.cs
Normal file
25
WebHookServer/WebhookAttribs.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
|
||||
Copyright © 2019 Tara Piccari (Aria; Tashia Redrose)
|
||||
Licensed under the GPLv2
|
||||
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Bot.WebHookServer
|
||||
{
|
||||
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
|
||||
public class WebhookAttribs : Attribute
|
||||
{
|
||||
public string Path = "";
|
||||
public MethodInfo AssignedMethod = null;
|
||||
public string HTTPMethod = "GET";
|
||||
public WebhookAttribs(string WebPath)
|
||||
{
|
||||
Path = WebPath;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue