DiscordWebHooks 1.0

Sends posts to webhooks in your discord channel

Tags:
  1. ice cold
    Fougerite Compatibility:
    All
    Plugin's Engine:
    • C# (Modules)
    DISCORD WEB HOOKS!!

    With this plugin you can send contents to your discord webhooks



    DOCS!!

    Python!!
    Code (Python):
    import clr

    clr.AddReferenceByPartialName("Fougerite")
    clr.AddReferenceByPartialName("DiscordWebHooks")
    import Fougerite

    try:
        import DiscordWebHooks
    except ImportError:
        raise ImportError("Failed to import DiscordWebHooks")


    class MyClass:

        def On_Command(Player, cmd, args):
            DiscordWebHooks.API.Send(false, "A command has been executed", "MyWebhookName", "MyWebHook URL");

    C#

    Code (C#):
    using Fougerite;
    using DiscordWebHooks;

    namespace MyPlugin
    {
        public class MyClass : Fougerite.Module
        {
            public void On_Command(Fougerite.Player player, string cmd, string[] args)
            {
                DiscordWebHooks.API.Send(false, "A command has been executed", "MyWebhookName", "MyWebHook URL");
            }
        }
    }

    HOW TO CREATE A WEBHOOK?

    Go to your channel server settings
    then click WebHooks and create a new webhook
    Then click on Copy URL ( This is the url that you need to implement in the Send hook)

    Images

    1. Knipsel.JPG

Recent Reviews

  1. SILVA
    SILVA
    5/5,
    Version: 1.0
    Nice plugin !!