1.1.5 • Published 12 months ago

zyper v1.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

NPM URL: https://www.npmjs.com/package/zyper?activeTab=readme

Installation

1

npm i zyper

2

Go to where your Discord bot is started where your client is and put on_bot(client) there

3

You are now finished and can use Zyper

Basic Code

const { Client, GatewayIntentBits, ChannelType } = require('discord.js');
const { on_bot } = require("../dist/index.js");
const BlacklistBanManager = require("../dist/BlacklistBanManager.js");

const LanguageLoder = require("../dist/LanguageLoder.js");
const dotenv = require('dotenv');
dotenv.config();

const client = new Client({ intents: [GatewayIntentBits.Guilds] });

const banManager = new BlacklistBanManager(client);
on_bot(client);



client.once('ready', () => {

if(!banManager.isBanned('1290676510306467873', '1079419675949142168')) {
    banManager.addBan('1290676510306467873', '1079419675949142168', 'Testing ban');
    }
    
    if (banManager.isBanned('1290676510306467873', '1079419675949142168')) {
        console.log('User is banned');
    }
    console.log(LanguageLoder.getTranslation('ready', 'en'));
    console.log( banManager.listBans('1290676510306467873'));
    
});


client.login(process.env.TOKEN);
1.1.5

12 months ago

1.1.4

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago

1.1.1

12 months ago

1.0.18

12 months ago

1.0.17

12 months ago

1.0.15

12 months ago

1.0.14

12 months ago

1.0.13

12 months ago

1.0.12

12 months ago

1.0.11

12 months ago

1.0.10

12 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago