scivity

2.5.1 • Public • Published

About

A library uses the Discord web hook to create premium bots with a name and image for each server without making real bots.

  • Beginner friendly
  • Easy to use
  • Ease of controlling bot information for each server
  • Ease of making premium commands
  • Easy to remove and add premium boots for each Server
  • 24 hour technical support
  • It's For Free

Installation

npm install scivity

Usage

const scivity = require("scivity")
const app = scivity.App()

Examples

events

// When the server takes premium
app.up("addPremiumServer", server => {
    console.log(`add ${server.id}`)
})

// When the server deletes Premium
app.up("removePremiumServer", server => {
    console.log(`remove ${server.id}`)
})

// When the name of the premium bot is changed
app.up("botNameChange", bot => {
    console.log(`change ${bot.username}`)
})

// When the avatar of the premium bot is changed
app.up("botAvatarChange", bot => {
    console.log(`change ${bot.avatar}`)
})

// When the bot is running
app.up("online", async bot => {
    bot.user.setActivity("Scivity Bot") // bot status change
    console.log(`Login With: ${bot.user.tag}`)

    // discord.js code 

    bot.on("message", message => {
        var check = app.check(message.guild.id) // Make sure that the server you are writing in has a premium
        if(!check) return
        if(!message.content.startsWith("!ping")) return
        const Embed1 = app.Embed() // Create Discord Embed
            .setTitle("Loading..")
            .setColor("YELLOW")
        const Embed2 = app.Embed() // Create Discord Embed
            .setTitle("Ping Pong")
            .setColor("BLUE")
        app.send(message.channel, {embeds:[Embed1]}).then(msg => { // Send a message from the server premium bot
            setTimeout(() => {
                app.edit(msg,{embeds: [Embed2]}) // Edit message
            },2000)
        })
    })


})

app.login("Bot Token") // Login with your bot token

methods

app.premium.guilds.array() // Get a list of all premium servers in the bot

app.premium.guilds.get("server-id") // Get server information

app.premium.guilds.add("server-id",'time-in-seconds') // Add premium server

app.premium.guilds.remove("server-id") // Remove server from premium

app.premium.guilds.get("server-id").bot.setName("bot-name") // Change bot name for a server

app.premium.guilds.get("server-id").bot.setAvatar("avatar-url") // Change bot avatar for a server

app.premium.guilds.get("server-id").bot.setEndTime('time-in-seconds') // Premium bot time change

app.check("server-id") // Ensure that the server has a premium

app.send(channel, {embeds: [embed], content: "message"}) // Send a message from the premium server bot

app.edit(message, {embeds: [edit_embed], content: "edit message"}) // Editing a message

Package Sidebar

Install

npm i scivity

Weekly Downloads

2

Version

2.5.1

License

ISC

Unpacked Size

13.5 kB

Total Files

3

Last publish

Collaborators

  • oliver.5906