Skip to content

Hookscord npm package, collegato all'app HOOKSCORD

Notifications You must be signed in to change notification settings

Bulcanolol/Hookscord.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

hookscord.js

Hookscord.js is an npm package that allows you to send webhooks to Discord (same functions as hookscord app) is compatible with discord.js

Installation

npm i hookscord.js

Simple Example

const Hookscord = require("hookscord.js")
const client = new Hookscord.Webhook();

client.login("WebhookURL") //login in the webhook

client.channel.send({ content: "Hello World!" })

Other Examples

const Hookscord = require("hookscord.js")
const client = new Hookscord.Webhook();
const file = new Hookscord.File();

client.login("WebhookURL") //login in the webhook

client.channel.send({ content: "Hello World!" })

file.create("Untitled", "PATH") //create a ".hok" file in the selected path
file.json.make("Untitled", "PATH")
file.env.make("Untitled", "PATH")

Use with Discord.js

const Hookscord = require("hookscord.js")
const client = new Hookscord.Webhook();
const Discord = require("discord.js")


client.login("WebhookURL") //login in the webhook

let embed = new Discord.MessageEmbed()
.setTitle("Hello World!")

client.channel.send({ content: "Hello World!", embeds: [embed] }) //cant send only embed, require content

About

Hookscord npm package, collegato all'app HOOKSCORD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published