discord-systems

1.1.5 • Public • Published

🔧 Installation

npm install discord-systems

💡 Versions

  • 1.0.0, Discord.js: 13.0.1-14.7.1 and Canvas: ^2.9.3

  • 1.0.1, [Fixes]

  • 1.0.2, [Update] (+2, /1, -0)

  • 1.0.3, [Fixes] (+0, /1, -0)

  • 1.0.4, [Update] (+8, /0, -0)

  • 1.0.5, [Beta] (+3, /0, -0)

  • 1.0.6, [Update] (+0, /2, -0)

  • 1.0.7, [Update] (+1, /0, -1)

  • 1.0.8, [Update] (+1, /1, -0)

  • 1.0.9, [Update] (+4, /1, -0)

  • 1.1.1, [Fixes] (+0, /2, -0)

  • 1.1.2, [Update] (+2, /1, -0)

  • 1.1.3, [Update] (+1, /0, -0)

  • 1.1.4, [Update] (+0, /3, -0)

  • 1.1.5, [Update] (+1, /2, -1)

📁 Required packages

🧷 Links

Example Usage

client.on('messageCreate', async (message) => {
    const { levelRank, Tvpis, Triggered, Suggest, Lyrics } = require('discord-systems')

    if (message.content == 'triggered') {
        new Triggered({
            message: {
                msg: message, // MESSAGE/INTERACTION OBJECT,
                //tts: '', // BOOLEAN
                //mention: '', // BOOLEAN, Only for .reply()
            },
            //embed: {
            //  title: '', // STRING
            //  color: '', // HEX
            //  description: '', // STRING
            //  timestamp: '', // BOOLEAN
            //  footer: {
            //    text: '', // STRING
            //    iconURL: '', // URL
            //  }
            //},
            member: message.author,
        })<send/reply>()

    if (message.content == 'tvpis') {
        new Tvpis({
            message: {
                msg: message, // MESSAGE/INTERACTION OBJECT,
                //tts: '', // BOOLEAN
                //mention: '', // BOOLEAN, Only for .reply()
            },
            text: '', // STRING
            style: '' // NUMBER <1/2>
        }).<send/reply>()
    }

    if (message.content == 'level') {
        new levelRank({
            message: {
                msg: message, // MESSAGE/INTERACTION OBJECT,
                //tts: '', // BOOLEAN
                //mention: '', // BOOLEAN, Only for .reply()
            },
            //embed: {
            //  title: '', // STRING
            //  color: '', // HEX
            //  description: '', // STRING
            // timestamp: '', // BOOLEAN
            //  footer: {
            //    text: '', // STRING
            //    iconURL: '', // URL
            //  }
            //},
		    //background: '', // https://i.imgur.com/IMGCODE
            //member: message.user, // USER OBJECT
            exp: '', // NUMBER
            maxexp: '', // NUMBER
            level: '', // NUMBER
            //text: '', // HEX
            //avatarborder: '', // HEX
            //avatarbackground: '', // HEX
            //bar: '', // HEX
            //barbackground: '', // HEX
            //border: '', // HEX
            //blur: '', // NUMBER
	    }).<send/reply>()
    }

    if (message.content.includes('!lyrics')) {
        const music = await Lyrics.search(message.content.split('!lyrics')[1])
        message.reply({ content: music.lyrics })
    }
    
    if (message.channel.id == '') {
    new Suggest({
      suggest: message.content, // STRING
      guild: message.guild, // GUILD OBJECT
      member: message.member, // MEMBER OBJECT
      message: message, // MESSAGE/INTERACTION OBJECT
      client: client // CLIENT OBJECT
    }).start()
    }
}
})

client.on('guildMemberAdd', async (member) => {
    const { joinCard } = require('discord-systems')
    const channel = member.guild.channels.cache.get('CHANNEL-ID')
    new joinCard({
        channel: channel, // CHANNEl OBJECT
        member: member, // MEMBER OBJECT
        middle: ``, // STRING
        name: ``, // STRING
        bottom: ``, // STRING
        //embed: {
        //  title: '', // STRING
        //  color: '', // HEX
        //  description: '', // STRING
        // timestamp: '', // BOOLEAN
        //  footer: {
        //   text: '', // STRING
        //   iconURL: '', // URL
        //  }
        //},
        // captcha: true, // BOOLEAN
        // role: '' // ROLE ID, ONLY FOR CAPTCHA = TRUE
        // client: client, // CLIENT OBJECT, REQUIRED FOR CAPTCHA
        // language: '', <pl/eng>, FOR CAPTCHA
        // text: '', // HEX
        // avatarborder: '', // HEX
        // avatarbg: '', // HEX
        // background: '' // https://i.imgur.com/IMGCODE
    }).send()
})

client.on('guildMemberRemove', async (member) => {
    const { leaveCard } = require('discord-systems')
    const channel = member.guild.channels.cache.get('CHANNEL-ID')
    new leaveCard({
        channel: channel, // CHANNEl OBJECT
        member: member.user, // USER OBJECT
        middle: ``, // STRING
        name: ``, // STRING
        bottom: ``, // STRING
        //embed: {
        //title: '', // STRING
        //color: '', // HEX
        //description: '', // STRING
        //timestamp: '', // BOOLEAN
        //footer: {
        //   text: '', // STRING
        //   iconURL: '', // URL
        //  }
        //},
        // text: '', // HEX
        // avatarborder: '', // HEX
        // avatarbg: '', // HEX
        // background: '' // https://i.imgur.com/IMGCODE
    }).send()
})

client.on('interactionCreate', async (interaction) => {
  if (interaction.customId == 'dcsys-yes') {
    const { SuggestsYes } = require('discord-systems')
    new SuggestsYes({
        interaction: interaction, // INTERACTION OBJECT
        language: '' // PL/ENG
    }).start()
  } else if (interaction.customId == 'dcsys-no') {
    const { SuggestsNo } = require('discord-systems')
    new SuggestsNo({
        interaction: interaction, // INTERACTION OBJECT
        language: '' // PL/ENG
    }).start()
  }
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.5
    2
    • latest

Version History

Package Sidebar

Install

npm i discord-systems

Weekly Downloads

9

Version

1.1.5

License

MIT

Unpacked Size

2.05 MB

Total Files

34

Last publish

Collaborators

  • gotowka