/SpectreAssistant

SpectreAssistant

Primary LanguageTypeScriptMIT LicenseMIT

SpectreAssistant

Add to your code

const {SpectreAssistant} = require("spectreassistant");

// Creating an instance of Spectre Assistant
client.Spectre = new SpectreAssistant({ host: 'localhost', password: '' }); 
// ...
// Validating your action
message.channel.send("Hey!").then(m => client.Spectre.validate(m, "messageCreate"));

// Or
// Creating an instance of Spectre Assistant
const Spectre = new SpectreAssistant({ host: 'localhost', password: '' });
// ...
// Validating your action
message.channel.send("Hey!").then(m => Spectre.validate(m, "messageCreate"));